https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
17class MMSTestFunc : public Function
18{
19public:
22
23 using Function::value;
24 virtual Real value(Real t, const Point & p) const override;
25
26protected:
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};
const Real p
virtual Real value(Real t, const Point &p) const
Function of RHS for manufactured solution in scalar_complex_helmholtz test.
Definition MMSTestFunc.h:18
const Real _g_0_imag
Imaginary component of DirichletBC, where x = 0.
Definition MMSTestFunc.h:34
const Real _length
Length of 1D test domain, where 0 < x < L.
Definition MMSTestFunc.h:28
virtual Real value(Real t, const Point &p) const override
Definition MMSTestFunc.C:44
static InputParameters validParams()
Definition MMSTestFunc.C:17
const Real _g_l_real
Real component of DirichletBC, where x = L.
Definition MMSTestFunc.h:37
const MooseEnum _component
Enum signifying the component of the function being calculated.
Definition MMSTestFunc.h:43
const Real _g_l_imag
Imaginary component of DirichletBC, where x = L.
Definition MMSTestFunc.h:40
const Real _g_0_real
Real component of DirichletBC, where x = 0.
Definition MMSTestFunc.h:31
const InputParameters & parameters() const