57 jacobian(x, y, li, dfdx1, d2fdxdyAnalytic);
60 Info<<
"[derivatives] dfdx = " << dfdx0 <<
nl;
61 Info<<
"[ jacobian] dfdx = " << dfdx1 <<
nl;
77 d2fdxdyFiniteDifference(j, i) = (dfdx1[j] - dfdx0[j])/(2*dy[i]);
86 Info<<
"[derivatives] d2fdxdy[" << i <<
"] = " 88 Info<<
"[ jacobian] d2fdxdy[" << i <<
"] = " intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void derivatives(const scalar x, const scalarField &y, const label li, scalarField &dydx) const =0
Calculate the derivatives in dydx.
void check(const scalar x, const scalarField &y, const scalarField &dy, const label li) const
Print correspondence between derivatives and Jacobian methods.
dimensionedScalar y0(const dimensionedScalar &ds)
virtual ~ODESystem()
Destructor.
dimensionedScalar y1(const dimensionedScalar &ds)
ODESystem()
Construct null.
virtual void jacobian(const scalar x, const scalarField &y, const label li, scalarField &dfdx, scalarSquareMatrix &dfdy) const =0
Calculate the Jacobian of the system.
virtual label nEqns() const =0
Return the number of equations in the system.