23 params.
addParam<
Real>(
"start_time", 0.0,
"The start time of the simulation");
24 params.
addParam<
Real>(
"end_time", 1.0e30,
"The end time of the simulation");
25 params.
addParam<
Real>(
"dt", 1.,
"The timestep size between solves");
27 "visualisation_steps", 1,
"The number of timesteps in a transient run");
33 _t_step(getParam<
Real>(
"dt")),
34 _t_initial(getParam<
Real>(
"start_time")),
35 _t_final(getParam<
Real>(
"end_time")),
36 _t(_mfem_problem.time()),
38 _vis_steps(params.
get<unsigned
int>(
"visualisation_steps")),
50 auto problem_operator =
51 std::make_unique<Moose::MFEM::TimeDomainEquationSystemProblemOperator>(
_problem_data);
90 getParam<MooseEnum>(
"assembly_level").getEnum<mfem::AssemblyLevel>());
120 TIME_SECTION(
"final", 1,
"Executing Final Objects");
static InputParameters validParams()
virtual void preExecute()
Override this for actions that should take place before execution.
virtual void postExecute()
Method called at the end of the simulation.
std::unique_ptr< Moose::MFEM::TimeDomainProblemOperator > _problem_operator
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
const ExecFlagType EXEC_MULTIAPP_FIXED_POINT_END
void finishMultiAppStep(ExecFlagType type, bool recurse_through_multiapp_levels=false)
Finish the MultiApp time step (endStep, postStep) associated with the ExecFlagType.
const ExecFlagType EXEC_TIMESTEP_END
std::unique_ptr< mfem::ODESolver > ode_solver
Moose::MFEM::FESpaces fespaces
virtual void init() override
Initialize the executioner.
virtual void execute(const ExecFlagType &exec_type)
Convenience function for performing execution of MOOSE systems.
const ExecFlagType EXEC_TIMESTEP_BEGIN
const ExecFlagType EXEC_PRE_MULTIAPP_SETUP
void constructProblemOperator() override
Virtual method to construct the ProblemOperator. Call for default problems.
virtual void postExecute()
Override this for actions that should take place after execution.
virtual void initialSetup() override
MFEMTransient(const InputParameters ¶ms)
MooseApp & _app
The MOOSE application this is associated with.
void step(double dt, int it) const
MFEMProblemData & _problem_data
std::shared_ptr< Moose::MFEM::EquationSystem > eqn_system
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ExecFlagType EXEC_MULTIAPP_FIXED_POINT_BEGIN
virtual void transient(bool trans)
virtual void execute() override
Pure virtual execute function MUST be overridden by children classes.
bool execMultiApps(ExecFlagType type, bool auto_advance=true)
Execute the MultiApps associated with the ExecFlagType.
registerMooseObject("MooseApp", MFEMTransient)
static InputParameters validParams()
Moose::MFEM::GridFunctions gridfunctions
MFEMProblem & _mfem_problem
const ExecFlagType EXEC_FINAL
void ErrorVector unsigned int
virtual void outputStep(ExecFlagType type)
Output the current step.
void setStartTime(Real time)
Set the starting time for the simulation.
const ExecFlagType EXEC_INITIAL