ABLATE Source Documentation  0.12.33
ablate::eos::tChem::SourceCalculator Class Reference

#include <sourceCalculator.hpp>

+ Inheritance diagram for ablate::eos::tChem::SourceCalculator:

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
 

Detailed Description

public class to to compute the source for each specified node

Member Enumeration Documentation

◆ ReactorType

Allow the user of TChem to set the reactor type

Constructor & Destructor Documentation

◆ SourceCalculator()

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

Parameters
tChemEos
constraints
cellRange

tune tolerance

Member Function Documentation

◆ AddSource()

void ablate::eos::tChem::SourceCalculator::AddSource ( const ablate::domain::Range cellRange,
Vec  localXVec,
Vec  localFVec 
)
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.

◆ ComputeSource()

void ablate::eos::tChem::SourceCalculator::ComputeSource ( const ablate::domain::Range cellRange,
PetscReal  time,
PetscReal  dt,
Vec  globalSolution 
)
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.


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