Cantera  3.2.0a4
Loading...
Searching...
No Matches

Zero-dimensional objects representing stirred reactors. More...

Collaboration diagram for Reactors:

Detailed Description

Zero-dimensional objects representing stirred reactors.

Reactors simulate time-dependent behavior considering gas-phase chemistry. Reactor objects should be instantiated via the newReactor() function, for example:

shared_ptr<ReactorBase> r1 = newReactor("IdealGasReactor");
shared_ptr< ReactorBase > newReactor(const string &model, shared_ptr< Solution > contents, const string &name)
Create a Reactor object of the specified type and contents.

Classes

class  ConstPressureMoleReactor
 ConstPressureMoleReactor is a class for constant-pressure reactors which use a state of moles. More...
 
class  ConstPressureReactor
 Class ConstPressureReactor is a class for constant-pressure reactors. More...
 
class  FlowReactor
 Adiabatic flow in a constant-area duct with homogeneous and heterogeneous reactions. More...
 
class  IdealGasConstPressureMoleReactor
 IdealGasConstPressureMoleReactor is a class for ideal gas constant-pressure reactors which use a state of moles. More...
 
class  IdealGasConstPressureReactor
 Class ConstPressureReactor is a class for constant-pressure reactors. More...
 
class  IdealGasMoleReactor
 IdealGasMoleReactor is a class for ideal gas constant-volume reactors which use a state of moles. More...
 
class  IdealGasReactor
 Class IdealGasReactor is a class for stirred reactors that is specifically optimized for ideal gases. More...
 
class  MoleReactor
 MoleReactor is meant to serve the same purpose as the reactor class but with a state vector composed of moles. More...
 
class  Reactor
 Class Reactor is a general-purpose class for stirred reactors. More...
 
class  ReactorBase
 Base class for reactor objects. More...
 
class  ReactorDelegator< R >
 Delegate methods of the Reactor class to external functions. More...
 
class  ReactorSurface
 A surface where reactions can occur that is in contact with the bulk fluid of a Reactor. More...
 
class  Reservoir
 A source or sink whose state remains constant regardless of any flows or other interactions with other Reactor objects. More...
 

Functions

shared_ptr< ReactorBasenewReactorBase (const string &model, shared_ptr< Solution > contents, bool clone=true, const string &name="(none)")
 Create a ReactorBase object of the specified type and contents.
 
shared_ptr< ReactorBasenewReactor (const string &model, shared_ptr< Solution > contents, const string &name="(none)")
 Create a Reactor object of the specified type and contents.
 
shared_ptr< ReactornewReactor4 (const string &model, shared_ptr< Solution > contents, bool clone=true, const string &name="(none)")
 Create a Reactor object of the specified type and contents.
 
shared_ptr< ReservoirnewReservoir (shared_ptr< Solution > contents, bool clone=true, const string &name="(none)")
 Create a Reservoir object with the specified contents.
 
shared_ptr< ReactorSurfacenewReactorSurface (shared_ptr< Solution > contents, const vector< shared_ptr< ReactorBase > > &reactors, bool clone=true, const string &name="(none)")
 Create a ReactorSurface object with the specified contents and adjacent reactors participating in surface reactions.
 

Function Documentation

◆ newReactorBase()

shared_ptr< ReactorBase > newReactorBase ( const string &  model,
shared_ptr< Solution contents,
bool  clone = true,
const string &  name = "(none)" 
)

Create a ReactorBase object of the specified type and contents.

Since
New in Cantera 3.2.

Definition at line 101 of file ReactorFactory.cpp.

◆ newReactor()

shared_ptr< ReactorBase > newReactor ( const string &  model,
shared_ptr< Solution contents,
const string &  name = "(none)" 
)

Create a Reactor object of the specified type and contents.

Since
Starting in Cantera 3.1, this method requires a valid Solution object and returns a shared_ptr<ReactorBase> instead of a ReactorBase*.
Deprecated:
Behavior changes after Cantera 3.2, when a shared_ptr<Reactor> will be returned. For new behavior, see newReactor4.

Definition at line 108 of file ReactorFactory.cpp.

◆ newReactor4()

shared_ptr< Reactor > newReactor4 ( const string &  model,
shared_ptr< Solution contents,
bool  clone = true,
const string &  name = "(none)" 
)

Create a Reactor object of the specified type and contents.

Parameters
modelReactor type to be created. See this list of reactor types for available options.
contentsSolution object to model the thermodynamic properties and reactions occurring in the reactor
cloneDetermines whether to clone sol so that the internal state of this reactor is independent of the original Solution object and any Solution objects used by other reactors in the network.
nameName of the reactor.
Since
New in Cantera 3.2. Transitional method returning a Reactor object.

Definition at line 120 of file ReactorFactory.cpp.

◆ newReservoir()

shared_ptr< Reservoir > newReservoir ( shared_ptr< Solution contents,
bool  clone = true,
const string &  name = "(none)" 
)

Create a Reservoir object with the specified contents.

Parameters
contentsSolution object to model the contents of this reservoir
cloneDetermines whether to clone sol so that the internal state of this reservoir is independent of the original Solution object and any Solution objects used by other reactors in the network.
nameName of the reservoir.
Since
New in Cantera 3.2.

Definition at line 132 of file ReactorFactory.cpp.

◆ newReactorSurface()

shared_ptr< ReactorSurface > newReactorSurface ( shared_ptr< Solution contents,
const vector< shared_ptr< ReactorBase > > &  reactors,
bool  clone = true,
const string &  name = "(none)" 
)

Create a ReactorSurface object with the specified contents and adjacent reactors participating in surface reactions.

Parameters
contentsSolution (Interface) object to model the thermodynamic properties and reactions occurring in the reactor
reactorsList of Reactors adjacent to this surface, whose contents participate in reactions occurring on this surface.
cloneDetermines whether to clone sol so that the internal state of this surface is independent of the original Interface object and any Solution objects used by other reactors in the network except those in the reactors list.
nameName of the reactor surface.
Since
New in Cantera 3.2.

Definition at line 144 of file ReactorFactory.cpp.