Line data Source code
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 "ProblemOperatorInterface.h" 16 : #include "MFEMProblemSolve.h" 17 : #include "EquationSystemProblemOperator.h" 18 : #include "ComplexEquationSystemProblemOperator.h" 19 : 20 : class MFEMSteady : public Executioner, public Moose::MFEM::ProblemOperatorInterface 21 : { 22 : public: 23 : static InputParameters validParams(); 24 : 25 : explicit MFEMSteady(const InputParameters & params); 26 : 27 : virtual void init() override; 28 : virtual void execute() override; 29 : 30 : /// Check if last solve converged. 31 1087 : virtual bool lastSolveConverged() const override { return _last_solve_converged; }; 32 : 33 : private: 34 : MFEMProblem & _mfem_problem; 35 : MFEMProblemData & _mfem_problem_data; 36 : MFEMProblemSolve _mfem_problem_solve; 37 : 38 : // Time variables used for consistency with MOOSE, needed for outputs. 39 : // Important for future synchronisation of solves in MultiApps 40 : Real _system_time; 41 : int & _time_step; 42 : Real & _time; 43 : 44 : /// Flag showing if the last solve converged 45 : bool _last_solve_converged; 46 : }; 47 : 48 : #endif