#include <sourceCalculatorZeroRK.hpp>
Classes | |
struct | ChemistryConstraints |
hold a struct that can be used for chemistry constraints More... | |
Public Types | |
enum class | ReactorType { ConstantVolume , ConstantPressure } |
Public Member Functions | |
SourceCalculator (const std::vector< domain::Field > &fields, std::shared_ptr< zerorkEOS > zerorkEos, ablate::eos::zerorkeos::SourceCalculator::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 to set the reactor type
ablate::eos::zerorkeos::SourceCalculator::SourceCalculator | ( | const std::vector< domain::Field > & | fields, |
std::shared_ptr< zerorkEOS > | zerorkEos, | ||
ablate::eos::zerorkeos::SourceCalculator::ChemistryConstraints | constraints, | ||
const ablate::domain::Range & | cellRange | ||
) |
create a batch source for this size specified in cellRange
zerorkEos | |
constraints | |
cellRange |
|
overridevirtual |
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.