27 return w * f1 + (1.0 - w) * f2;
33 const Real &
x,
const Real & f1,
const Real & f2,
const Real & df1dx,
const Real & df2dx)
const 43 return w * df1dx + (1.0 - w) * df2dx + dwdx * (f1 - f2);
50 return 0.5 * (std::cos(M_PI / (
_x2 -
_x1) * (
x -
_x1)) + 1.0);
const Real _x2
Right end point of transition.
Real weight(const Real &x) const
Computes the weight of the first function.
virtual Real value(const Real &x, const Real &f1, const Real &f2) const override
Computes the transition value.
Base class for smooth transitions between two functions of one variable.
const std::vector< double > x
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.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
WeightedTransition(const Real &x_center, const Real &transition_width)
Constructor.
const Real _x1
Left end point of transition.