https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMComplexVariable.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
14#include "MFEMFESpace.h"
15#include "MFEMObject.h"
16
21{
22public:
24
26
28 std::shared_ptr<mfem::ParComplexGridFunction> getComplexGridFunction() const
29 {
31 }
32
34 const MFEMFESpace & getFESpace() const { return _fespace; }
35
36 // Declare default coefficients associated with this complex gridfunction.
38
39protected:
41
42private:
44 const std::shared_ptr<mfem::ParComplexGridFunction> buildComplexGridFunction();
45
47 const std::shared_ptr<mfem::ParComplexGridFunction> _cmplx_gridfunction{nullptr};
48};
49
50#endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Constructs and stores an mfem::ParComplexGridFunction object.
std::shared_ptr< mfem::ParComplexGridFunction > getComplexGridFunction() const
Returns a shared pointer to the constructed gridfunction.
const MFEMFESpace & getFESpace() const
Returns a reference to the fespace used by the gridfunction.
const MFEMFESpace & _fespace
const std::shared_ptr< mfem::ParComplexGridFunction > buildComplexGridFunction()
Constructs the gridfunction.
const std::shared_ptr< mfem::ParComplexGridFunction > _cmplx_gridfunction
Stores the constructed gridfunction.
static InputParameters validParams()
Constructs and stores an mfem::ParFiniteElementSpace object.
Definition MFEMFESpace.h:21
Thin base for MFEM objects backed directly by MooseObject instead of UserObject.
Definition MFEMObject.h:30
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131