https://mooseframework.inl.gov
EquationSystemProblemOperator.C
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 
13 
14 namespace Moose::MFEM
15 {
16 void
18 {
22 }
23 
24 void
26 {
28 
29  auto * const es = GetEquationSystem();
31 
32  es->SetTrialVariablesFromTrueVectors(_true_x);
33 }
34 
35 void
37 {
40 }
41 
42 } // namespace Moose::MFEM
43 
44 #endif
std::vector< std::string > _test_var_names
virtual EquationSystem * GetEquationSystem() const override
Returns a pointer to the operator&#39;s equation system.
std::vector< std::string > _trial_var_names
Vector of names of state gridfunctions used in formulation, ordered by appearance in block vector dur...
virtual void SetGridFunctions() override
void FormSystem(mfem::BlockVector &trueX, mfem::BlockVector &trueRHS)
Assemble the linear part of the operator, assemble the right-hand side, apply essential and eliminate...
virtual void BuildEquationSystem()
Build all forms comprising this EquationSystem.
const std::vector< std::string > & GetTrialVarNames() const
void SolveWithOperator(EquationSystem &equation_system, const mfem::Vector &rhs, mfem::Vector &x)
Solve the current equation system/operator using the configured nonlinear solver or linear solver for...
const std::vector< std::string > & GetTestVarNames() const
void BuildEquationSystemOperator()
Add kernels/bcs and assemble the linear part of the equation system.
Utilities for converting between vector(s) of libMesh Points and MFEM Vector(s).