Base class for 'walls' (walls, pistons, etc.) connecting reactors. More...
#include <Wall.h>
Base class for 'walls' (walls, pistons, etc.) connecting reactors.
Public Member Functions | |
WallBase (shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name="(none)") | |
string | type () const override |
String indicating the connector implemented. | |
virtual double | expansionRate () |
Rate of volume change (m^3/s) for the adjacent reactors at current reactor network time. | |
virtual double | heatRate () |
Heat flow rate through the wall (W) at current reactor network time. | |
double | area () |
Area in (m^2). | |
virtual void | setArea (double a) |
Set the area [m^2]. | |
bool | install (ReactorBase &leftReactor, ReactorBase &rightReactor) |
Install the wall between two reactors or reservoirs. | |
virtual void | initialize () |
Called just before the start of integration. | |
virtual bool | ready () |
True if the wall is correctly configured and ready to use. | |
ReactorBase & | left () const |
Return a reference to the Reactor or Reservoir to the left of the wall. | |
ReactorBase & | right () |
Return a reference to the Reactor or Reservoir to the right of the wall. | |
void | setSimTime (double time) |
Set current reactor network time. | |
ConnectorNode (const string &name="(none)") | |
Transitional constructor. | |
ConnectorNode (shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name="(none)") | |
Instantiate a ConnectorNode object with associated ReactorBase objects. | |
ConnectorNode (const ConnectorNode &)=delete | |
![]() | |
ConnectorNode (const string &name="(none)") | |
Transitional constructor. | |
ConnectorNode (shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name="(none)") | |
Instantiate a ConnectorNode object with associated ReactorBase objects. | |
ConnectorNode (const ConnectorNode &)=delete | |
ConnectorNode & | operator= (const ConnectorNode &)=delete |
virtual string | type () const |
String indicating the connector implemented. | |
string | name () const |
Retrieve connector name. | |
void | setName (const string &name) |
Set connector name. | |
void | setDefaultName (map< string, int > &counts) |
Set the default name of a connector. Returns false if it was previously set. | |
Protected Attributes | |
ReactorBase * | m_left = nullptr |
ReactorBase * | m_right = nullptr |
double | m_time = 0.0 |
current reactor network time | |
double | m_area = 1.0 |
![]() | |
pair< shared_ptr< ReactorBase >, shared_ptr< ReactorBase > > | m_nodes |
Pair of reactors forming end points of the connector. | |
string | m_name |
ConnectorNode name. | |
bool | m_defaultNameSet = false |
true if default name has been previously set. | |
WallBase | ( | shared_ptr< ReactorBase > | r0, |
shared_ptr< ReactorBase > | r1, | ||
const string & | name = "(none)" |
||
) |
|
inlineoverridevirtual |
String indicating the connector implemented.
Usually corresponds to the name of the derived class.
Reimplemented from ConnectorNode.
|
inlinevirtual |
Rate of volume change (m^3/s) for the adjacent reactors at current reactor network time.
This method is called by Reactor::evalWalls(). Base class method does nothing (that is, constant volume), but may be overloaded.
Reimplemented in Wall.
|
inlinevirtual |
Heat flow rate through the wall (W) at current reactor network time.
This method is called by Reactor::evalWalls(). Base class method does nothing (that is, an adiabatic wall), but may be overloaded.
Reimplemented in Wall.
bool install | ( | ReactorBase & | leftReactor, |
ReactorBase & | rightReactor | ||
) |
Install the wall between two reactors or reservoirs.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Transitional constructor.
Definition at line 32 of file ConnectorNode.h.
|
inline |
Instantiate a ConnectorNode object with associated ReactorBase objects.
r0 | First reactor. |
r1 | Second reactor. |
name | Name of the connector. |
Definition at line 38 of file ConnectorNode.h.
|
protected |
|
protected |