19 params.
addRequiredParam<
Real>(
"activate_value",
"The value above which to activate the element");
22 "The variable value will be used to decide wether an element whould be activated.");
25 "Activate element when below or above the activate_value");
31 _coupled_var(coupledValue(
"coupled_var")),
33 declareRestartableData<
Real>(
"activate_value", getParam<
Real>(
"activate_value"))),
41 bool is_activated =
false;
44 for (
unsigned int qp = 0; qp <
_qrule->n_points(); ++qp)
46 avg_val /=
_qrule->n_points();
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
static InputParameters validParams()
const VariableValue & _coupled_var
variable value to decide wether an element whould be activated
ActivateType
type of activation - blow or above
ActivateElementsCoupled(const InputParameters ¶meters)
registerMooseObject("MooseApp", ActivateElementsCoupled)
enum ActivateElementsCoupled::ActivateType _activate_type
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const QBase *const & _qrule
virtual bool isElementActivated() override
const Real _activate_value
variable value to decide wether an element whould be activated