57 jacobian(x, y, li, dfdx1, d2fdxdyAnalytic);
60 Info<<
"[derivatives] dfdx = ( ";
63 Info<<
"[ jacobian] dfdx = ( ";
66 Info<<
"[ ratio] dfdx = ( ";
84 d2fdxdyFiniteDifference(j, i) = (dfdx1[j] - dfdx0[j])/(2*dy[i]);
94 Info<<
"[derivatives] d2fdxdy[" << i <<
"] = ( ";
101 Info<<
"[ jacobian] d2fdxdy[" << i <<
"] = ( ";
109 Info<<
"[ ratio] d2fdxdy[" << i <<
"] = ( ";
#define forAll(list, i)
Loop across all elements in list.
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.
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
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.