21 "Trips a boolean based on the evaluation of a parsed condition expression");
25 "The condition that this trip unit uses to determine its state.");
28 "Determines if the output of this control stays true after the trip went " 29 "from false to true.");
36 _condition(verifyFunction(getParam<
std::string>(
"condition"))),
37 _state(declareComponentControlData<bool>(
"state")),
38 _latch(getParam<bool>(
"latch")),
50 tid = getParam<THREAD_ID>(
"_tid");
70 getControlDataByName<Real>(ctrl_name->name());
72 getControlDataByName<bool>(ctrl_name->name());
87 else if (result == 1.)
94 ": The user-provided condition expression did not return a boolean value (0 or 1).");
registerMooseObject("ThermalHydraulicsApp", UnitTripControl)
virtual void initialSetup() override
FEProblemBase & _pfb_feproblem
const std::vector< std::string > _vals
virtual void init() override
const bool & _latch
Determines if the state of the trip should stay true for the rest of the simulation after the trip ha...
virtual const std::string & name() const
bool isParamValid(const std::string &name) const
std::string _condition
The user-defined condition.
bool _tripped
true if the trip happened, otherwise false
static InputParameters validParams()
static InputParameters validParams()
std::unique_ptr< THMParsedFunctionWrapper > _condition_ptr
Pointer to the Parsed function wrapper object.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This control block uses a user-defined condition to determine if a trip happened. ...
static InputParameters validParams()
void mooseError(Args &&... args) const
void buildConditionFunction()
Build the function that is used to evaluate the condition of this trip control.
const std::vector< std::string > _vars
bool & _state
The state of this control object.
virtual void execute() override
UnitTripControl(const InputParameters ¶meters)