13 #include "libmesh/dense_matrix.h" 14 #include "libmesh/dense_vector.h" 30 const Real & f2_end_value,
31 const Real & df1dx_end_value,
32 const Real & df2dx_end_value)
49 mat(2, 1) = 2.0 *
_x1;
54 mat(3, 1) = 2.0 *
_x2;
58 DenseVector<Real> rhs(4);
59 rhs(0) = f1_end_value;
60 rhs(1) = f2_end_value;
61 rhs(2) = df1dx_end_value;
62 rhs(3) = df2dx_end_value;
64 DenseVector<Real> coefs(4);
78 mooseAssert(
_initialized,
"initialize() must be called.");
91 mooseAssert(
_initialized,
"initialize() must be called.");
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.
const Real _x2
Right end point of transition.
CubicTransition(const Real &x_center, const Real &transition_width)
Constructor.
bool _initialized
Flag that transition has been initialized.
Real derivative(const Real &x, const Real &df1dx, const Real &df2dx) const
Computes the derivative of the transition value.
Base class for smooth transitions between two functions of one variable.
const std::vector< double > x
virtual Real value(const Real &x, const Real &f1, const Real &f2) const override
Computes the transition value.
void lu_solve(const DenseVector< Real > &b, DenseVector< Real > &x)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MooseUnits pow(const MooseUnits &, int)
const Real _x1
Left end point of transition.