chemmisol 0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
chemmisol::FixedChemicalComponent Class Reference

#include <species.h>

Inheritance diagram for chemmisol::FixedChemicalComponent:
Inheritance graph
[legend]
Collaboration diagram for chemmisol::FixedChemicalComponent:
Collaboration graph
[legend]

Public Member Functions

 FixedChemicalComponent (FixedChemicalSpecies *species, std::size_t index)
 
virtual bool isFixed () const override
 
- Public Member Functions inherited from chemmisol::ChemicalComponent
 ChemicalComponent (ChemicalSpecies *species, std::size_t index, double total_quantity)
 
ChemicalSpeciesgetSpecies ()
 
const ChemicalSpeciesgetSpecies () const
 
std::size_t getIndex () const
 
double getTotalQuantity () const
 
void setTotalQuantity (double quantity)
 
void setTotalConcentration (double concentration)
 

Detailed Description

ChemicalComponent implementation for a fixed component.

Notice that calling setTotalQuantity() on a FixedChemicalComponent is valid.

However, fixing the quantity of the associated species is not handled by the FixedChemicalComponent itself, but by the ChemicalSystem::fixComponent() method.

See also
ChemicalSystem::fixComponent()

Constructor & Destructor Documentation

◆ FixedChemicalComponent()

chemmisol::FixedChemicalComponent::FixedChemicalComponent ( FixedChemicalSpecies species,
std::size_t  index 
)
inline

Defines a FixedChemicalComponent.

The total quantity of the fixed component is initialized from the quantity of the associated fixed species.

Parameters
speciesThe fixed chemical species instance associated to this component.
indexIndex used to retrieve the component in data structures used internally by the ChemicalSystem. The index can also be used to uniquely identify each component of a system.

Member Function Documentation

◆ isFixed()

virtual bool chemmisol::FixedChemicalComponent::isFixed ( ) const
inlineoverridevirtual

Returns true if this component is fixed. Returns false by default, but can be overridden by subclasses.

Reimplemented from chemmisol::ChemicalComponent.


The documentation for this class was generated from the following file: