Loading [MathJax]/jax/output/HTML-CSS/config.js
Cantera  3.2.0a1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

ConnectorNode objects connect zero-dimensional reactors. More...

Collaboration diagram for Connectors:

Detailed Description

ConnectorNode objects connect zero-dimensional reactors.

ConnectorNode objects should be instantiated via the newConnectorNode() function, for example:

shared_ptr<ConnectorNode> valve = newConnectorNode("Valve", r0, r1, "my_valve");
shared_ptr< ConnectorNode > newConnectorNode(const string &model, shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name)
Create a ConnectorNode object of the specified type.

where r0 and r1 are reactor objects.

Since
New in Cantera 3.2.

Classes

class  ConnectorNode
 Base class for walls and flow devices connecting reactors. More...
 
class  MassFlowController
 A class for mass flow controllers. More...
 
class  PressureController
 A class for flow controllers where the flow rate is equal to the flow rate of a primary mass flow controller plus a correction proportional to the pressure difference between the inlet and outlet. More...
 
class  Valve
 Supply a mass flow rate that is a function of the pressure drop across the valve. More...
 
class  FlowDevice
 Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors. More...
 
class  WallBase
 Base class for 'walls' (walls, pistons, etc.) connecting reactors. More...
 
class  Wall
 Represents a wall between between two ReactorBase objects. More...
 

Functions

shared_ptr< ConnectorNodenewConnectorNode (const string &model, shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name="(none)")
 Create a ConnectorNode object of the specified type.
 
shared_ptr< FlowDevicenewFlowDevice (const string &model, const string &name="(none)")
 Create a FlowDevice object of the specified type.
 
shared_ptr< FlowDevicenewFlowDevice (const string &model, shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name="(none)")
 Create a FlowDevice object of the specified type.
 
shared_ptr< WallBasenewWall (const string &model, const string &name="(none)")
 Create a WallBase object of the specified type.
 
shared_ptr< WallBasenewWall (const string &model, shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name="(none)")
 Create a WallBase object of the specified type.
 

Function Documentation

◆ newConnectorNode()

shared_ptr< ConnectorNode > newConnectorNode ( const string &  model,
shared_ptr< ReactorBase r0,
shared_ptr< ReactorBase r1,
const string &  name = "(none)" 
)

Create a ConnectorNode object of the specified type.

Parameters
modelString specifying reactor type.
r0First reactor.
r1Second reactor.
nameName of the connector.
Since
New in Cantera 3.2.

Definition at line 47 of file ConnectorFactory.cpp.

◆ newFlowDevice() [1/2]

shared_ptr< FlowDevice > newFlowDevice ( const string &  model,
const string &  name = "(none)" 
)

Create a FlowDevice object of the specified type.

Since
Starting in Cantera 3.1, this method returns a shared_ptr<FlowDevice>
Deprecated:
To be removed after Cantera 3.2. Use version that provides reactors as parameter instead.

Definition at line 68 of file ConnectorFactory.cpp.

◆ newFlowDevice() [2/2]

shared_ptr< FlowDevice > newFlowDevice ( const string &  model,
shared_ptr< ReactorBase r0,
shared_ptr< ReactorBase r1,
const string &  name = "(none)" 
)

Create a FlowDevice object of the specified type.

Parameters
modelString specifying reactor type.
r0First reactor.
r1Second reactor.
nameName of the connector.
Since
New in Cantera 3.2.

Definition at line 55 of file ConnectorFactory.cpp.

◆ newWall() [1/2]

shared_ptr< WallBase > newWall ( const string &  model,
const string &  name = "(none)" 
)

Create a WallBase object of the specified type.

Since
Starting in Cantera 3.1, this method returns a shared_ptr<WallBase>
Deprecated:
To be removed after Cantera 3.2. Use version that provides reactors as parameter instead.

Definition at line 88 of file ConnectorFactory.cpp.

◆ newWall() [2/2]

shared_ptr< WallBase > newWall ( const string &  model,
shared_ptr< ReactorBase r0,
shared_ptr< ReactorBase r1,
const string &  name = "(none)" 
)

Create a WallBase object of the specified type.

Parameters
modelString specifying reactor type.
r0First reactor.
r1Second reactor.
nameName of the connector.
Since
New in Cantera 3.2.

Definition at line 75 of file ConnectorFactory.cpp.