https://mooseframework.inl.gov
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CosineHumpFunctionTest Class Reference

#include <CosineHumpFunctionTest.h>

Inheritance diagram for CosineHumpFunctionTest:
[legend]

Public Member Functions

 CosineHumpFunctionTest ()
 

Protected Member Functions

void buildObjects ()
 
T & addObject (const std::string &type, const std::string &name, InputParameters &params)
 

Protected Attributes

const FunctionName _fn_name_positive
 Tested function name for the "positive" hump tests. More...
 
const FunctionName _fn_name_negative
 Tested function name for the "negative" hump tests. More...
 
const Real _hump_center_position
 Hump center position. More...
 
const Real _hump_width
 Hump width. More...
 
const Real _hump_begin_value
 Value before and after hump. More...
 
const Real _hump_center_value_positive
 Value at center of hump for the "positive" hump tests. More...
 
const Real _hump_center_value_negative
 Value at center of hump for the "negative" hump tests. More...
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 14 of file CosineHumpFunctionTest.h.

Constructor & Destructor Documentation

◆ CosineHumpFunctionTest()

CosineHumpFunctionTest::CosineHumpFunctionTest ( )
inline

Definition at line 17 of file CosineHumpFunctionTest.h.

18  : MooseObjectUnitTest("ThermalHydraulicsApp"),
19  _fn_name_positive("positive_hump"),
20  _fn_name_negative("negative_hump"),
22  _hump_width(2.0),
23  _hump_begin_value(5.0),
26  {
27  buildObjects();
28  }
const Real _hump_center_value_positive
Value at center of hump for the "positive" hump tests.
const Real _hump_begin_value
Value before and after hump.
MooseObjectUnitTest(const std::string &app_name)
const FunctionName _fn_name_positive
Tested function name for the "positive" hump tests.
const FunctionName _fn_name_negative
Tested function name for the "negative" hump tests.
const Real _hump_center_value_negative
Value at center of hump for the "negative" hump tests.
const Real _hump_width
Hump width.
const Real _hump_center_position
Hump center position.

Member Function Documentation

◆ buildObjects()

void CosineHumpFunctionTest::buildObjects ( )
inlineprotected

Definition at line 31 of file CosineHumpFunctionTest.h.

Referenced by CosineHumpFunctionTest().

32  {
33  // positive hump
34  {
35  const std::string class_name = "CosineHumpFunction";
36  InputParameters params = _factory.getValidParams(class_name);
37  params.set<MooseEnum>("axis") = "y";
38  params.set<Real>("hump_center_position") = _hump_center_position;
39  params.set<Real>("hump_width") = _hump_width;
40  params.set<Real>("hump_begin_value") = _hump_begin_value;
41  params.set<Real>("hump_center_value") = _hump_center_value_positive;
42  _fe_problem->addFunction(class_name, _fn_name_positive, params);
43  }
44 
45  // negative hump
46  {
47  const std::string class_name = "CosineHumpFunction";
48  InputParameters params = _factory.getValidParams(class_name);
49  params.set<MooseEnum>("axis") = "y";
50  params.set<Real>("hump_center_position") = _hump_center_position;
51  params.set<Real>("hump_width") = _hump_width;
52  params.set<Real>("hump_begin_value") = _hump_begin_value;
53  params.set<Real>("hump_center_value") = _hump_center_value_negative;
54  _fe_problem->addFunction(class_name, _fn_name_negative, params);
55  }
56  }
const Real _hump_center_value_positive
Value at center of hump for the "positive" hump tests.
std::shared_ptr< FEProblem > _fe_problem
const Real _hump_begin_value
Value before and after hump.
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
const FunctionName _fn_name_positive
Tested function name for the "positive" hump tests.
const FunctionName _fn_name_negative
Tested function name for the "negative" hump tests.
const Real _hump_center_value_negative
Value at center of hump for the "negative" hump tests.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _hump_width
Hump width.
const Real _hump_center_position
Hump center position.

Member Data Documentation

◆ _fn_name_negative

const FunctionName CosineHumpFunctionTest::_fn_name_negative
protected

Tested function name for the "negative" hump tests.

Definition at line 61 of file CosineHumpFunctionTest.h.

Referenced by buildObjects().

◆ _fn_name_positive

const FunctionName CosineHumpFunctionTest::_fn_name_positive
protected

Tested function name for the "positive" hump tests.

Definition at line 59 of file CosineHumpFunctionTest.h.

Referenced by buildObjects().

◆ _hump_begin_value

const Real CosineHumpFunctionTest::_hump_begin_value
protected

Value before and after hump.

Definition at line 67 of file CosineHumpFunctionTest.h.

Referenced by buildObjects().

◆ _hump_center_position

const Real CosineHumpFunctionTest::_hump_center_position
protected

Hump center position.

Definition at line 63 of file CosineHumpFunctionTest.h.

Referenced by buildObjects().

◆ _hump_center_value_negative

const Real CosineHumpFunctionTest::_hump_center_value_negative
protected

Value at center of hump for the "negative" hump tests.

Definition at line 71 of file CosineHumpFunctionTest.h.

Referenced by buildObjects().

◆ _hump_center_value_positive

const Real CosineHumpFunctionTest::_hump_center_value_positive
protected

Value at center of hump for the "positive" hump tests.

Definition at line 69 of file CosineHumpFunctionTest.h.

Referenced by buildObjects().

◆ _hump_width

const Real CosineHumpFunctionTest::_hump_width
protected

Hump width.

Definition at line 65 of file CosineHumpFunctionTest.h.

Referenced by buildObjects().


The documentation for this class was generated from the following file: