#include <sourceCalculator.hpp>
Classes | |
struct | ChemistryConstraints |
hold a struct that can be used for chemistry constraints More... | |
Public Types | |
enum class | ReactorType { ConstantPressure , ConstantVolume } |
Public Member Functions | |
SourceCalculator (const std::vector< domain::Field > &fields, std::shared_ptr< TChem > tChemEos, ChemistryConstraints constraints, const ablate::domain::Range &cellRange) | |
void | ComputeSource (const ablate::domain::Range &cellRange, PetscReal time, PetscReal dt, Vec globalSolution) override |
void | AddSource (const ablate::domain::Range &cellRange, Vec localXVec, Vec localFVec) override |
public class to to compute the source for each specified node
Allow the user of TChem to set the reactor type
ablate::eos::tChem::SourceCalculator::SourceCalculator | ( | const std::vector< domain::Field > & | fields, |
std::shared_ptr< TChem > | tChemEos, | ||
ChemistryConstraints | constraints, | ||
const ablate::domain::Range & | cellRange | ||
) |
create a batch source for this size specified in cellRange
tChemEos | |
constraints | |
cellRange |
tune tolerance
|
overridevirtual |
The compute source can be used as a prestep allowing the add source to be used at each stage without reevaluating Adds the source that was computed in the ComputeSource to the supplied vector
Implements ablate::eos::ChemistryModel::SourceCalculator.
|
overridevirtual |
The compute source can be used as a prestep allowing the add source to be used at each stage without reevaluating
Implements ablate::eos::ChemistryModel::SourceCalculator.