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

#include <TimeRampFunctionTest.h>

Inheritance diagram for TimeRampFunctionTest:
[legend]

Public Member Functions

 TimeRampFunctionTest ()
 

Protected Member Functions

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

Protected Attributes

const Real _initial_value
 
const Real _final_value
 
const Real _ramp_duration
 
const Real _initial_time
 
const FunctionName _fn_name
 
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 TimeRampFunctionTest.h.

Constructor & Destructor Documentation

◆ TimeRampFunctionTest()

TimeRampFunctionTest::TimeRampFunctionTest ( )
inline

Definition at line 17 of file TimeRampFunctionTest.h.

18  : MooseObjectUnitTest("ThermalHydraulicsApp"),
19 
20  _initial_value(1.0),
21  _final_value(2.0),
22  _ramp_duration(6.0),
23  _initial_time(2.0),
24 
25  _fn_name("tested_function")
26  {
27  buildObjects();
28  }
MooseObjectUnitTest(const std::string &app_name)
const FunctionName _fn_name

Member Function Documentation

◆ buildObjects()

void TimeRampFunctionTest::buildObjects ( )
inlineprotected

Definition at line 31 of file TimeRampFunctionTest.h.

Referenced by TimeRampFunctionTest().

32  {
33  // tested function
34  {
35  const std::string class_name = "TimeRampFunction";
36  InputParameters params = _factory.getValidParams(class_name);
37  params.set<Real>("initial_value") = _initial_value;
38  params.set<Real>("final_value") = _final_value;
39  params.set<Real>("ramp_duration") = _ramp_duration;
40  params.set<Real>("initial_time") = _initial_time;
41  _fe_problem->addFunction(class_name, _fn_name, params);
42  }
43  }
std::shared_ptr< FEProblem > _fe_problem
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const FunctionName _fn_name

Member Data Documentation

◆ _final_value

const Real TimeRampFunctionTest::_final_value
protected

Definition at line 46 of file TimeRampFunctionTest.h.

Referenced by buildObjects().

◆ _fn_name

const FunctionName TimeRampFunctionTest::_fn_name
protected

Definition at line 49 of file TimeRampFunctionTest.h.

Referenced by buildObjects().

◆ _initial_time

const Real TimeRampFunctionTest::_initial_time
protected

Definition at line 48 of file TimeRampFunctionTest.h.

Referenced by buildObjects().

◆ _initial_value

const Real TimeRampFunctionTest::_initial_value
protected

Definition at line 45 of file TimeRampFunctionTest.h.

Referenced by buildObjects().

◆ _ramp_duration

const Real TimeRampFunctionTest::_ramp_duration
protected

Definition at line 47 of file TimeRampFunctionTest.h.

Referenced by buildObjects().


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