19 MooseEnum transition_type(
"cubic weighted");
32 _transition_type(getParam<
MooseEnum>(
"transition_type")),
34 _var(coupledValue(
"var")),
36 _cubic_transition(0.0, 1.0),
37 _weighted_transition(0.0, 1.0),
39 _matprop(declareProperty<
Real>(
"mymatprop")),
40 _dmatprop_dvar(declarePropertyDerivativeTHM<
Real>(
"mymatprop",
"var"))
void initialize(const Real &f1_end_value, const Real &f2_end_value, const Real &df1dx_end_value, const Real &df2dx_end_value)
Initializes the polynomial coefficients.
Real df1dx(const Real &x) const
registerMooseObject("ThermalHydraulicsTestApp", SmoothTransitionTestMaterial)
Class for testing objects derived from SmoothTransition.
virtual Real value(const Real &x, const Real &f1, const Real &f2) const override
Computes the transition value.
const WeightedTransition _weighted_transition
Real derivative(const Real &x, const Real &df1dx, const Real &df2dx) const
Computes the derivative of the transition value.
MaterialProperty< Real > & _matprop
Real f1(const Real &x) const
static InputParameters validParams()
const std::vector< double > x
static InputParameters validParams()
const Real & leftEnd() const
Returns the coordinate of the left end of the transition.
const MooseEnum & _transition_type
Real df2dx(const Real &x) const
const VariableValue & _var
virtual Real value(const Real &x, const Real &f1, const Real &f2) const override
Computes the transition value.
const Real & rightEnd() const
Returns the coordinate of the right end of the transition.
virtual void computeQpProperties() override
Real derivative(const Real &x, const Real &f1, const Real &f2, const Real &df1dx, const Real &df2dx) const
Computes the derivative of the transition value.
CubicTransition _cubic_transition
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real f2(const Real &x) const
MaterialProperty< Real > & _dmatprop_dvar
MooseUnits pow(const MooseUnits &, int)
SmoothTransitionTestMaterial(const InputParameters ¶meters)