https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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 ()
 
TaddObject (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.
 
const FunctionName _fn_name_negative
 Tested function name for the "negative" hump tests.
 
const Real _hump_center_position
 Hump center position.
 
const Real _hump_width
 Hump width.
 
const Real _hump_begin_value
 Value before and after hump.
 
const Real _hump_center_value_positive
 Value at center of hump for the "positive" hump tests.
 
const Real _hump_center_value_negative
 Value at center of hump for the "negative" hump tests.
 
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),
26 {
28 }
const Real _hump_begin_value
Value before and after hump.
const Real _hump_center_position
Hump center position.
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_width
Hump width.
const Real _hump_center_value_negative
Value at center of hump for the "negative" hump tests.
const Real _hump_center_value_positive
Value at center of hump for the "positive" hump tests.

Member Function Documentation

◆ buildObjects()

void CosineHumpFunctionTest::buildObjects ( )
inlineprotected

Definition at line 31 of file CosineHumpFunctionTest.h.

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 }
InputParameters getValidParams(const std::string &name) const
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by CosineHumpFunctionTest().

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: