Reaktoro
A unified framework for modeling chemically reactive systems
Composition Class Reference

A type that describes temperature in units of K. More...

#include <ChemicalVector.hpp>

Inheritance diagram for Composition:
[legend]
Collaboration diagram for Composition:
[legend]

Public Types

using Base = ChemicalVectorBase< VectorConstRef, decltype(zeros(0)), decltype(zeros(0)), decltype(identity(0, 0))>
 Auxiliary base type.
 

Public Member Functions

 Composition (VectorConstRef n)
 Construct a Composition instance with given composition vector.
 
auto operator[] (Index irow) const -> ChemicalScalarBase< double, decltype(unitrow(val.size(), irow))>
 Return a ChemicalScalarBase with const reference to the chemical scalar in a given row.
 
- Public Member Functions inherited from ChemicalVectorBase< VectorConstRef, decltype(zeros(0)), decltype(zeros(0)), decltype(identity(0, 0))>
 ChemicalVectorBase ()
 Construct a default ChemicalVectorBase instance.
 
 ChemicalVectorBase (Index nspecies)
 Construct a ChemicalVectorBase instance with number of rows equal to given number of species. More...
 
 ChemicalVectorBase (Index nrows, Index nspecies)
 Construct a ChemicalVectorBase instance with given number of rows and species. More...
 
 ChemicalVectorBase (Index nrows, Index nspecies, double val)
 Construct a ChemicalVectorBase instance with given number of rows and species, and a constant value. More...
 
 ChemicalVectorBase (const VectorConstRef &val, const decltype(zeros(0)) &ddT, const decltype(zeros(0)) &ddP, const decltype(identity(0, 0)) &ddn)
 Construct a ChemicalVectorBase instance with given values and derivatives. More...
 
 ChemicalVectorBase (ChemicalVectorBase< VR, TR, PR, NR > &other)
 Construct a ChemicalVectorBase instance from another.
 
 ChemicalVectorBase (const ChemicalVectorBase< VR, TR, PR, NR > &other)
 Construct a ChemicalVectorBase instance from another.
 
auto size () const -> Index
 Return the number of rows in this ChemicalVectorBase instance.
 
auto resize (Index nrows, Index nspecies) -> void
 Resize this ChemicalVectorBase instance with new number of rows and number of species. More...
 
auto resize (Index nspecies) -> void
 Resize this ChemicalVectorBase instance with number of rows equal the number of species. More...
 
auto fill (const ChemicalScalarBase< VR, NR > &other) -> void
 Assign a ChemicalScalarBase instance to this.
 
auto fill (const ThermoScalarBase< VR > &other) -> void
 Assign a ThermoScalarBase instance to this.
 
auto fill (double value) -> void
 Assign a scalarsto this.
 
auto operator= (const ChemicalVectorBase< VR, TR, PR, NR > &other) -> ChemicalVectorBase &
 Assign another ChemicalVectorBase instance to this.
 
auto operator= (const ChemicalScalarBase< VR, NR > &other) -> ChemicalVectorBase &
 Assign a ChemicalScalarBase instance to this.
 
auto operator= (const ThermoScalarBase< VR > &other) -> ChemicalVectorBase &
 Assign a ThermoScalarBase instance to this.
 
auto operator= (double other) -> ChemicalVectorBase &
 Assign a scalar to this.
 
auto operator+= (const ChemicalVectorBase< VR, TR, PR, NR > &other) -> ChemicalVectorBase &
 Assign-addition of a ChemicalVectorBase instance to this.
 
auto operator+= (const ThermoVectorBase< VR, TR, PR > &other) -> ChemicalVectorBase &
 Assign-addition of a ThermoVectorBase instance to this.
 
auto operator+= (const ThermoScalarBase< VR > &other) -> ChemicalVectorBase &
 Assign-addition of a ThermoScalarBase instance to this.
 
auto operator+= (double other) -> ChemicalVectorBase &
 Assign-addition of a scalar to this.
 
auto operator-= (const ChemicalVectorBase< VR, TR, PR, NR > &other) -> ChemicalVectorBase &
 Assign-subtraction of a ChemicalVectorBase instance to this.
 
auto operator-= (const ThermoVectorBase< VR, TR, PR > &other) -> ChemicalVectorBase &
 Assign-subtraction of a ThermoVectorBase instance to this.
 
auto operator-= (const ThermoScalarBase< VR > &other) -> ChemicalVectorBase &
 Assign-subtraction of a ThermoScalarBase instance to this.
 
auto operator-= (double other) -> ChemicalVectorBase &
 Assign-subtraction of a scalar to this.
 
auto operator*= (const ChemicalVectorBase< VR, TR, PR, NR > &other) -> ChemicalVectorBase &
 Assign-multiplication of a ChemicalVectorBase instance to this.
 
auto operator*= (double other) -> ChemicalVectorBase &
 Assign-multiplication of a scalar to this.
 
auto operator/= (double other) -> ChemicalVectorBase &
 Assign-division of a scalar to this.
 
auto operator[] (Index irow) -> ChemicalScalarBase< decltype(val[irow]), decltype(ddn.row(irow))>
 Return a ChemicalScalarBase with reference to the chemical scalar in a given row.
 
auto operator[] (Index irow) const -> ChemicalScalarBase< decltype(val[irow]), decltype(ddn.row(irow))>
 Return a ChemicalScalarBase with const reference to the chemical scalar in a given row.
 
auto view (Index irow, Index nrows) -> ChemicalVectorRef
 Return a view of an interval of the ChemicalVectorBase instance. More...
 
auto view (Index irow, Index nrows) const -> ChemicalVectorConstRef
 Return a view of an interval of the ChemicalVectorBase instance. More...
 
auto view (Index irow, Index icol, Index nrows, Index ncols) -> ChemicalVectorRef
 Return a view of an interval of the ChemicalVectorBase instance. More...
 
auto view (Index irow, Index icol, Index nrows, Index ncols) const -> ChemicalVectorConstRef
 Return a view of an interval of the ChemicalVectorBase instance. More...
 
 operator Vector () const
 Explicitly converts this ChemicalVector instance into a Vector.
 

Additional Inherited Members

- Public Attributes inherited from ChemicalVectorBase< VectorConstRef, decltype(zeros(0)), decltype(zeros(0)), decltype(identity(0, 0))>
VectorConstRef val
 The vector of chemical scalars.
 
decltype(zeros(0)) ddT
 The vector of partial temperature derivatives of the chemical scalars.
 
decltype(zeros(0)) ddP
 The vector of partial pressure derivatives of the chemical scalars.
 
decltype(identity(0, 0)) ddn
 The matrix of partial mole derivatives of the chemical scalars.
 

Detailed Description

A type that describes temperature in units of K.


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