1 #ifndef ABLATELIBRARY_ZERORK_SOURCECALCULATOR_HPP
2 #define ABLATELIBRARY_ZERORK_SOURCECALCULATOR_HPP
4 #include "eos/chemistryModel.hpp"
5 #include "zerork/mechanism.h"
6 #include "zerork/utilities.h"
7 #include "zerork_cfd_plugin.h"
9 namespace ablate::eos {
13 namespace ablate::eos::zerorkeos {
27 double relTolerance = 1.0E-6;
28 double absTolerance = 1.0E-10;
33 double stepLimiter = 1.0E200;
51 int maxiteration = 10000;
54 int cvode_num_retries = 5;
57 double cvode_retry_absolute_tolerance_adjustment = 0.1;
60 double cvode_retry_relative_tolerance_adjustment = 0.1;
66 bool sparseJacobian =
false;
69 bool timinglog =
false;
72 ReactorType reactorType = ReactorType::ConstantVolume;
75 double thresholdTemperature = 0.0;
79 bool dumpreactor =
false;
81 void Set(
const std::shared_ptr<ablate::parameters::Parameters>&);
103 std::vector<double> sourceZeroRKAtI;
104 zerork_handle zrm_handle;
110 std::shared_ptr<eos::zerorkEOS> eos;
112 const size_t numberSpecies;
118 PetscInt densityYiId;
Definition: chemistryModel.hpp:30
Definition: sourceCalculatorZeroRK.hpp:18
ReactorType
Definition: sourceCalculatorZeroRK.hpp:23
void AddSource(const ablate::domain::Range &cellRange, Vec localXVec, Vec localFVec) override
Definition: sourceCalculatorZeroRK.cpp:332
void ComputeSource(const ablate::domain::Range &cellRange, PetscReal time, PetscReal dt, Vec globalSolution) override
Definition: sourceCalculatorZeroRK.cpp:141
SourceCalculator(const std::vector< domain::Field > &fields, std::shared_ptr< zerorkEOS > zerorkEos, ablate::eos::zerorkeos::SourceCalculator::ChemistryConstraints constraints, const ablate::domain::Range &cellRange)
Definition: sourceCalculatorZeroRK.cpp:33
Definition: loggable.hpp:9
hold a struct that can be used for chemistry constraints
Definition: sourceCalculatorZeroRK.hpp:26