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)
const std::string & name() const
void mooseError(Args &&... args) const
bool isParamValid(const std::string &name) const
const std::vector< std::string > _vals
FEProblemBase & _pfb_feproblem
static InputParameters validParams()
const std::vector< std::string > _vars
static InputParameters validParams()
This control block uses a user-defined condition to determine if a trip happened.
virtual void init() override
std::unique_ptr< THMParsedFunctionWrapper > _condition_ptr
Pointer to the Parsed function wrapper object.
UnitTripControl(const InputParameters ¶meters)
bool & _state
The state of this control object.
virtual void execute() override
bool _tripped
true if the trip happened, otherwise false
virtual void initialSetup() override
void buildConditionFunction()
Build the function that is used to evaluate the condition of this trip control.
const bool & _latch
Determines if the state of the trip should stay true for the rest of the simulation after the trip ha...
std::string _condition
The user-defined condition.
static InputParameters validParams()