https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMSteady.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#ifdef MOOSE_MFEM_ENABLED
11
12#pragma once
13
14#include "Executioner.h"
15#include "MFEMProblemSolve.h"
16
17class MFEMSteady : public Executioner
18{
19public:
21
22 explicit MFEMSteady(const InputParameters & params);
23
24 virtual void init() override;
25 virtual void execute() override;
26
28 virtual bool lastSolveConverged() const override { return _last_solve_converged; };
29
30private:
33
34 // Time variables used for consistency with MOOSE, needed for outputs.
35 // Important for future synchronisation of solves in MultiApps
38 Real & _time;
39
42};
43
44#endif
Executioners are objects that do the actual work of solving your problem.
Definition Executioner.h:37
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
virtual void execute() override
Pure virtual execute function MUST be overridden by children classes.
Definition MFEMSteady.C:48
MFEMProblemSolve _mfem_problem_solve
Definition MFEMSteady.h:32
bool _last_solve_converged
Flag showing if the last solve converged.
Definition MFEMSteady.h:41
int & _time_step
Definition MFEMSteady.h:37
static InputParameters validParams()
Definition MFEMSteady.C:18
MFEMProblem & _mfem_problem
Definition MFEMSteady.h:31
virtual void init() override
Initialize the executioner.
Definition MFEMSteady.C:41
Real _system_time
Definition MFEMSteady.h:36
Real & _time
Definition MFEMSteady.h:38
virtual bool lastSolveConverged() const override
Check if last solve converged.
Definition MFEMSteady.h:28