https://mooseframework.inl.gov
MMSTestFunc.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 #pragma once
11 
12 #include "Function.h"
13 
17 class MMSTestFunc : public Function
18 {
19 public:
22 
23  using Function::value;
24  virtual Real value(Real t, const Point & p) const override;
25 
26 protected:
28  const Real _length;
29 
31  const Real _g_0_real;
32 
34  const Real _g_0_imag;
35 
37  const Real _g_l_real;
38 
40  const Real _g_l_imag;
41 
44 };
static InputParameters validParams()
Definition: MMSTestFunc.C:17
const Real _g_l_real
Real component of DirichletBC, where x = L.
Definition: MMSTestFunc.h:37
Function of RHS for manufactured solution in scalar_complex_helmholtz test.
Definition: MMSTestFunc.h:17
const Real _length
Length of 1D test domain, where 0 < x < L.
Definition: MMSTestFunc.h:28
MMSTestFunc(const InputParameters &parameters)
Definition: MMSTestFunc.C:32
const Real _g_0_imag
Imaginary component of DirichletBC, where x = 0.
Definition: MMSTestFunc.h:34
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _g_l_imag
Imaginary component of DirichletBC, where x = L.
Definition: MMSTestFunc.h:40
const InputParameters & parameters() const
virtual Real value(Real t, const Point &p) const override
Definition: MMSTestFunc.C:44
virtual Real value(Real t, const Point &p) const
const Real _g_0_real
Real component of DirichletBC, where x = 0.
Definition: MMSTestFunc.h:31
const MooseEnum _component
Enum signifying the component of the function being calculated.
Definition: MMSTestFunc.h:43