https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14namespace Moose::MFEM
15{
16void
23
24void
26{
28
29 auto * const es = GetEquationSystem();
31
32 es->SetTrialVariablesFromTrueVectors(_true_x);
33}
34
35void
40
41} // namespace Moose::MFEM
42
43#endif
void FormEquationSystemOperator()
Form equation-system state used by Solve().
virtual EquationSystem * GetEquationSystem() const override
Returns a pointer to the operator's equation system.
const std::vector< std::string > & GetTrialVarNames() const
const std::vector< std::string > & GetTestVarNames() const
void FormSystem(mfem::BlockVector &trueX, mfem::BlockVector &trueRHS)
Build all weak-form components via BuildEquationSystem(), form the constrained linear part of the sys...
void SolveWithOperator(mfem::Operator &system_operator, mfem::Operator &linear_operator, const mfem::Vector &rhs, mfem::Vector &x)
Solve the current system operator using the configured nonlinear and linear solvers.
std::vector< std::string > _trial_var_names
Vector of names of state gridfunctions used in formulation, ordered by appearance in block vector dur...
std::vector< std::string > _test_var_names
virtual void SetGridFunctions() override
Utilities for converting between vector(s) of libMesh Points and MFEM Vector(s).