21 MooseEnum transition_type(
"cubic weighted");
34 _transition_type(getParam<
MooseEnum>(
"transition_type")),
36 _var(adCoupledValue(
"var")),
40 _cubic_transition(_center, _width),
41 _weighted_transition(_center, _width),
43 _matprop(declareADProperty<
Real>(
"myadmatprop"))
ADCubicTransition _cubic_transition
Cubic transition.
const MooseEnum & _transition_type
Type of transition.
ADReal f2(const ADReal &x) const
Computes right function.
const ADReal & leftEnd() const
Returns the coordinate of the left end of the transition.
DualNumber< Real, DNDerivativeType, true > ADReal
const ADVariableValue & _var
Variable the transition depends upon.
ADMaterialProperty< Real > & _matprop
Material property created using the transition_base.
virtual ADReal value(const ADReal &x, const ADReal &f1, const ADReal &f2) const override
Computes the transition value.
ADSmoothTransitionTestMaterial(const InputParameters ¶meters)
const ADReal & rightEnd() const
Returns the coordinate of the right end of the transition.
static InputParameters validParams()
const std::vector< double > x
Class for testing objects derived from ADSmoothTransition.
virtual ADReal value(const ADReal &x, const ADReal &f1, const ADReal &f2) const override
Computes the transition value.
registerMooseObject("ThermalHydraulicsTestApp", ADSmoothTransitionTestMaterial)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADReal df1dx(const ADReal &x) const
Computes left function derivative.
ADReal df2dx(const ADReal &x) const
Computes right function derivative.
virtual void computeQpProperties() override
ADReal f1(const ADReal &x) const
Computes left function.
void initialize(const ADReal &f1_end_value, const ADReal &f2_end_value, const ADReal &df1dx_end_value, const ADReal &df2dx_end_value)
Computes the derivative of the transition value.
MooseUnits pow(const MooseUnits &, int)
const ADWeightedTransition _weighted_transition
Weighted transition_base.