https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMMixedSesquilinearFormKernel.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
15
18{
21 "Base class for mixed sesquilinear form kernels, allowing different trial and test "
22 "variables. Transposition of each component is controlled individually via the `transpose` "
23 "parameter on each `RealComponent`/`ImagComponent` sub-block.");
24 params.addParam<VariableName>(
25 "trial_variable",
26 "The trial variable this kernel is acting on and which will be solved for. If empty "
27 "(default), it will be the same as the test variable.");
28 return params;
29}
30
32 : MFEMComplexKernel(parameters),
33 _trial_var_name(isParamValid("trial_variable") ? getParam<VariableName>("trial_variable")
34 : _test_var_name)
35{
36}
37
38const VariableName &
43
44#endif
registerMooseObject("MooseApp", MFEMMixedSesquilinearFormKernel)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
static InputParameters validParams()
Class to construct an MFEM mixed sesquilinear form integrator to apply to the equation system.
virtual const VariableName & getTrialVariableName() const override
Get name of the trial variable (gridfunction) the kernel acts on.
MFEMMixedSesquilinearFormKernel(const InputParameters &parameters)
const VariableName _trial_var_name
Name of the trial variable that the kernel is applied to.