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 
14 #include "Executioner.h"
16 #include "MFEMProblemSolve.h"
19 
21 {
22 public:
24 
25  explicit MFEMSteady(const InputParameters & params);
26 
27  virtual void init() override;
28  virtual void execute() override;
29 
31  virtual bool lastSolveConverged() const override { return _last_solve_converged; };
32 
33 private:
37 
38  // Time variables used for consistency with MOOSE, needed for outputs.
39  // Important for future synchronisation of solves in MultiApps
41  int & _time_step;
43 
46 };
47 
48 #endif
Real _system_time
Definition: MFEMSteady.h:40
Base problem data struct.
int & _time_step
Definition: MFEMSteady.h:41
MFEMProblemData & _mfem_problem_data
Definition: MFEMSteady.h:35
MFEMSteady(const InputParameters &params)
Definition: MFEMSteady.C:31
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MFEMProblem & _mfem_problem
Definition: MFEMSteady.h:31
Real & _time
Definition: MFEMSteady.h:42
static InputParameters validParams()
Definition: MFEMSteady.C:22
virtual bool lastSolveConverged() const override
Check if last solve converged.
Definition: MFEMSteady.h:31
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:36
virtual void init() override
Initialize the executioner.
Definition: MFEMSteady.C:75
virtual void execute() override
Pure virtual execute function MUST be overridden by children classes.
Definition: MFEMSteady.C:98
Interface required for MFEM executioners to add and get ProblemOperators:
bool _last_solve_converged
Flag showing if the last solve converged.
Definition: MFEMSteady.h:45