https://mooseframework.inl.gov
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 #include "Executioner.h"
15 #include "MFEMProblemSolve.h"
17 
19 {
20 public:
22 
23  explicit MFEMSteady(const InputParameters & params);
24 
25  virtual void init() override;
26  virtual void execute() override;
27 
29  virtual bool lastSolveConverged() const override { return _last_solve_converged; };
30 
31 private:
35 
36  // Time variables used for consistency with MOOSE, needed for outputs.
37  // Important for future synchronisation of solves in MultiApps
39  int & _time_step;
41 
44 };
45 
46 #endif
Real _system_time
Definition: MFEMSteady.h:38
Base problem data struct.
int & _time_step
Definition: MFEMSteady.h:39
MFEMProblemData & _mfem_problem_data
Definition: MFEMSteady.h:33
MFEMSteady(const InputParameters &params)
Definition: MFEMSteady.C:28
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MFEMProblem & _mfem_problem
Definition: MFEMSteady.h:29
Real & _time
Definition: MFEMSteady.h:40
static InputParameters validParams()
Definition: MFEMSteady.C:19
virtual bool lastSolveConverged() const override
Check if last solve converged.
Definition: MFEMSteady.h:29
Executioners are objects that do the actual work of solving your problem.
Definition: Executioner.h:30
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MFEMProblemSolve _mfem_problem_solve
Definition: MFEMSteady.h:34
virtual void init() override
Initialize the executioner.
Definition: MFEMSteady.C:49
virtual void execute() override
Pure virtual execute function MUST be overridden by children classes.
Definition: MFEMSteady.C:68
Interface required for MFEM executioners to add and get ProblemOperators:
bool _last_solve_converged
Flag showing if the last solve converged.
Definition: MFEMSteady.h:43