https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMComplexExteriorProductAux.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
15
25{
26public:
28
30 ~MFEMComplexExteriorProductAux() override = default;
31
32 void execute() override;
33
34protected:
36 const std::complex<mfem::real_t> _scale_factor;
37
39 mfem::VectorCoefficient & _u_coef_real;
40 mfem::VectorCoefficient & _u_coef_imag;
41 mfem::VectorCoefficient & _v_coef_real;
42 mfem::VectorCoefficient & _v_coef_imag;
43
44 mfem::VectorCrossProductCoefficient _cross_ur_vr;
45 mfem::VectorCrossProductCoefficient _cross_ur_vi;
46 mfem::VectorCrossProductCoefficient _cross_ui_vr;
47 mfem::VectorCrossProductCoefficient _cross_ui_vi;
48
50 mfem::VectorSumCoefficient _final_coef_real;
51 mfem::VectorSumCoefficient _final_coef_imag;
52};
53
54#endif // MOOSE_MFEM_ENABLED
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Class to construct an auxiliary solver used to update a complex auxvariable.
Project onto a complex vector MFEM auxvariable.
mfem::VectorCrossProductCoefficient _cross_ui_vr
mfem::VectorCrossProductCoefficient _cross_ur_vr
const std::complex< mfem::real_t > _scale_factor
Scaling factor applied on the resulting field.
mfem::VectorSumCoefficient _final_coef_real
Final coefficient that sums the crossproduct terms.
void execute() override
Perform the main work for this object.
mfem::VectorSumCoefficient _final_coef_imag
~MFEMComplexExteriorProductAux() override=default
mfem::VectorCrossProductCoefficient _cross_ur_vi
mfem::VectorCoefficient & _u_coef_real
Coefficient wrappers.
mfem::VectorCrossProductCoefficient _cross_ui_vi
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131