12 #ifndef CD_MeshODEStepper_H
13 #define CD_MeshODEStepper_H
21 #include <CD_NamespaceHeader.H>
137 writeCheckpointData(HDF5Handle& a_handle,
const int a_lvl)
const override;
147 readCheckpointData(HDF5Handle& a_handle,
const int a_lvl)
override;
160 virtual Vector<std::string>
173 const std::string a_outputRealm,
174 const int a_level)
const override;
188 advance(
const Real a_dt)
override;
213 preRegrid(
const int a_lmin,
const int a_oldFinestLevel)
override;
222 regrid(
const int a_lmin,
const int a_oldFinestLevel,
const int a_newFinestLevel)
override;
260 std::function<std::array<Real, N>(
const std::array<Real, N> y, Real t)>
m_rhsFunction;
265 std::function<std::array<Real, N>(
const RealVect& a_position)>
m_initialData;
309 #include <CD_NamespaceFooter.H>
Encapsulation of an ODE solver on the mesh.
Implementation of CD_MeshODEStepper.H.
IntegrationAlgorithm
Various supported integration algorithms.
Definition: CD_MeshODEStepper.H:30
Declaration of main (abstract) time stepper class.
Implementation of TimeStepper for solving an ODE on a mesh. N is the number of variables.
Definition: CD_MeshODEStepper.H:41
virtual void advanceEuler(const Real a_dt)
Advance using the explicit Euler rule.
Definition: CD_MeshODEStepperImplem.H:411
RefCountedPtr< MeshODESolver< N > > m_solver
Tracer particle solvers.
Definition: CD_MeshODEStepper.H:255
virtual Real advance(const Real a_dt) override
Advancement method. Swaps between various kernels.
Definition: CD_MeshODEStepperImplem.H:279
void registerOperators() override
Register operators.
Definition: CD_MeshODEStepperImplem.H:120
virtual void writePlotData(LevelData< EBCellFAB > &a_output, int &a_icomp, const std::string a_outputRealm, const int a_level) const override
Write plot data to output holder.
Definition: CD_MeshODEStepperImplem.H:252
void parseRuntimeOptions() override
Parse runtime options.
Definition: CD_MeshODEStepperImplem.H:146
MeshODEStepper & operator=(const MeshODEStepper< N > &&)=delete
Move assignment operator. Disallowed.
virtual Vector< std::string > getPlotVariableNames() const override
Get plot variable names.
Definition: CD_MeshODEStepperImplem.H:240
MeshODEStepper(const MeshODEStepper< N > &&)=delete
Move constructor. Disallowed.
phase::which_phase m_phase
Phase (gas/solid) where the solver lives.
Definition: CD_MeshODEStepper.H:250
std::function< std::array< Real, N >const std::array< Real, N > y, Real t)> m_rhsFunction
Encapsulation of f = f(y,t)
Definition: CD_MeshODEStepper.H:260
std::function< std::array< Real, N >const RealVect &a_position)> m_initialData
Initial data function.
Definition: CD_MeshODEStepper.H:265
virtual void advanceRK2(const Real a_dt)
Advance using a second-order Runge-Kutta method.
Definition: CD_MeshODEStepperImplem.H:429
MeshODEStepper & operator=(const MeshODEStepper< N > &)=delete
Copy assignment operator. Disallowed.
virtual void regrid(const int a_lmin, const int a_oldFinestLevel, const int a_newFinestLevel) override
Time stepper regrid method.
Definition: CD_MeshODEStepperImplem.H:344
std::string m_realm
Realm where solver and m_velocity lives.
Definition: CD_MeshODEStepper.H:245
virtual void parseIntegrator()
Parse integrator.
Definition: CD_MeshODEStepperImplem.H:369
void initialData() override
Fill problem with initial data.
Definition: CD_MeshODEStepperImplem.H:73
void allocate() override
Allocate storage for solvers and time stepper.
Definition: CD_MeshODEStepperImplem.H:61
virtual void synchronizeSolverTimes(const int a_step, const Real a_time, const Real a_dt) override
Synchronize solver times and time steps.
Definition: CD_MeshODEStepperImplem.H:317
virtual ~MeshODEStepper()
Destructor.
Definition: CD_MeshODEStepperImplem.H:35
virtual void parseVerbosity()
Parse chattiness.
Definition: CD_MeshODEStepperImplem.H:397
virtual void printStepReport() override
Print a step report.
Definition: CD_MeshODEStepper.H:204
virtual void parseProblem()
Parse the problem type.
Definition: CD_MeshODEStepperImplem.H:161
void setupSolvers() override
Instantiate the ODE solver.
Definition: CD_MeshODEStepperImplem.H:45
virtual void advanceRK4(const Real a_dt)
Advance using a fourth order Runge-Kutta method.
Definition: CD_MeshODEStepperImplem.H:454
virtual void preRegrid(const int a_lmin, const int a_oldFinestLevel) override
Perform pre-regrid operations.
Definition: CD_MeshODEStepperImplem.H:332
void postCheckpointSetup() override
Post checkpoint operations.
Definition: CD_MeshODEStepperImplem.H:96
virtual int getNumberOfPlotVariables() const override
Get the number of plot variables for this time stepper.
Definition: CD_MeshODEStepperImplem.H:228
void registerRealms() override
Register realms. Primal is the only realm we need.
Definition: CD_MeshODEStepperImplem.H:108
MeshODEStepper(const MeshODEStepper< N > &)=delete
Copy constructor. Disallowed.
void parseOptions()
Parse options.
Definition: CD_MeshODEStepperImplem.H:132
IntegrationAlgorithm m_algorithm
Integration algorithm.
Definition: CD_MeshODEStepper.H:235
virtual void postRegrid() override
Perform post-regrid operations.
Definition: CD_MeshODEStepperImplem.H:356
Real m_dt
Time step to use.
Definition: CD_MeshODEStepper.H:240
void postInitialize() override
Perform any post-initialization steps.
Definition: CD_MeshODEStepperImplem.H:86
MeshODEStepper()
Constructor. Does nothing.
Definition: CD_MeshODEStepperImplem.H:23
virtual Real computeDt() override
Compute a time step to be used by Driver.
Definition: CD_MeshODEStepperImplem.H:267
Base class for advancing equations.
Definition: CD_TimeStepper.H:30
Name containing various physics models for running chombo-discharge code.
Definition: CD_AdvectionDiffusion.H:15