https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMCoordinateTransformations.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 "MFEMProblem.h"
15
28{
29public:
31
33 virtual ~MFEMCoordinateTransformations() = default;
34
35 const MooseEnum & coordType() const { return _coord_type; }
36 mfem::real_t invREps() const { return _inv_r_eps; }
37
38protected:
40
46 const mfem::real_t _inv_r_eps;
47};
48
49#endif
Base class for function objects.
Definition Function.h:30
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Function object that declares MFEM coordinate-dependent coefficients.
MFEMProblem & _mfem_problem
Reference to the MFEMProblem instance.
virtual ~MFEMCoordinateTransformations()=default
const MooseEnum _coord_type
Coordinate system type.
const mfem::real_t _inv_r_eps
Regularization parameter used in inv_r = 1/sqrt(r^2 + eps^2)
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55