14 #ifndef CT_RESIDJACEVAL_H
15 #define CT_RESIDJACEVAL_H
97 virtual int evalResidNJ(
const doublereal t,
const doublereal delta_t,
98 const doublereal*
const y,
99 const doublereal*
const ydot,
100 doublereal*
const resid,
103 const doublereal delta_x = 0.0);
105 virtual int eval(
const doublereal t,
const doublereal*
const y,
106 const doublereal*
const ydot,
107 doublereal*
const r);
109 virtual int getInitialConditions(
const doublereal t0, doublereal*
const y, doublereal*
const ydot);
122 virtual doublereal
filterNewStep(
const doublereal t,
const doublereal*
const ybase,
123 doublereal*
const step);
158 virtual int evalTimeTrackingEqns(
const doublereal t,
const doublereal delta_t,
const doublereal*
const y,
159 const doublereal*
const ydot);
175 const doublereal delta_t,
176 const doublereal*
const y,
177 const doublereal*
const ydot);
198 const doublereal*
const y,
199 const doublereal*
const ydot,
200 doublereal*
const delta_y,
201 const doublereal*
const solnWeights = 0);
212 virtual void calcSolnScales(
const doublereal t,
const doublereal*
const y,
213 const doublereal*
const y_old, doublereal*
const yScales);
228 virtual void user_out2(
const int ifunc,
const doublereal t,
229 const doublereal delta_t,
230 const doublereal*
const y,
231 const doublereal*
const ydot);
242 virtual void user_out(
const int ifunc,
const doublereal t,
244 const doublereal* ydot);
267 doublereal*
const rhs);
285 virtual int evalJacobian(
const doublereal t,
const doublereal delta_t, doublereal cj,
286 const doublereal*
const y,
const doublereal*
const ydot,
306 virtual int evalJacobianDP(
const doublereal t,
const doublereal delta_t, doublereal cj,
307 const doublereal*
const y,
308 const doublereal*
const ydot,
309 doublereal*
const* jacobianColPts,
310 doublereal*
const resid);
virtual int evalJacobianDP(const doublereal t, const doublereal delta_t, doublereal cj, const doublereal *const y, const doublereal *const ydot, doublereal *const *jacobianColPts, doublereal *const resid)
Calculate an analytical Jacobian and the residual at the current time and values. ...
virtual void user_out2(const int ifunc, const doublereal t, const doublereal delta_t, const doublereal *const y, const doublereal *const ydot)
This function may be used to create output at various points in the execution of an application...
Base residual calculation for the showSolution routine.
virtual int nEquations() const
Return the number of equations in the equation system.
virtual int evalResidNJ(const doublereal t, const doublereal delta_t, const doublereal *const y, const doublereal *const ydot, doublereal *const resid, const ResidEval_Type_Enum evalType=Base_ResidEval, const int id_x=-1, const doublereal delta_x=0.0)
Evaluate the residual function.
virtual int evalJacobian(const doublereal t, const doublereal delta_t, doublereal cj, const doublereal *const y, const doublereal *const ydot, GeneralMatrix &J, doublereal *const resid)
Calculate an analytical Jacobian and the residual at the current time and values. ...
int neq_
Number of equations.
virtual int eval(const doublereal t, const doublereal *const y, const doublereal *const ydot, doublereal *const r)
Evaluate the residual function.
Base residual calculation for the Jacobian calculation.
virtual int getInitialConditions(const doublereal t0, doublereal *const y, doublereal *const ydot)
Fill in the initial conditions.
ResidJacEval(doublereal atol=1.0e-13)
Default constructor.
virtual void user_out(const int ifunc, const doublereal t, const doublereal *y, const doublereal *ydot)
This function may be used to create output at various points in the execution of an application...
virtual ResidJacEval * duplMyselfAsResidJacEval() const
Duplication routine for objects derived from residJacEval.
ResidEval_Type_Enum
Differentiates the type of residual evaluations according to functionality.
Wrappers for the function evaluators for Nonlinear solvers and Time steppers.
virtual int calcDeltaSolnVariables(const doublereal t, const doublereal *const y, const doublereal *const ydot, doublereal *const delta_y, const doublereal *const solnWeights=0)
Return a vector of delta y's for calculation of the numerical Jacobian.
virtual int matrixConditioning(doublereal *const matrix, const int nrows, doublereal *const rhs)
Multiply the matrix by another matrix that leads to better conditioning.
Virtual base class for DAE residual function evaluators.
doublereal m_atol
constant value of atol
virtual int evalTimeTrackingEqns(const doublereal t, const doublereal delta_t, const doublereal *const y, const doublereal *const ydot)
Evaluate the time tracking equations, if any.
virtual void calcSolnScales(const doublereal t, const doublereal *const y, const doublereal *const y_old, doublereal *const yScales)
Returns a vector of column scale factors that can be used to column scale Jacobians.
ResidJacEval & operator=(const ResidJacEval &right)
Assignment operator.
Delta residual calculation for the Jacbobian calculation.
Declarations for the class GeneralMatrix which is a virtual base class for matrices handled by solver...
virtual doublereal filterSolnPrediction(const doublereal t, doublereal *const y)
Filter the solution predictions.
virtual bool evalStoppingCritera(const doublereal t, const doublereal delta_t, const doublereal *const y, const doublereal *const ydot)
Evaluate any stopping criteria other than a final time limit.
void setAtol(doublereal atol)
Set a global value of the absolute tolerance.
virtual doublereal filterNewStep(const doublereal t, const doublereal *const ybase, doublereal *const step)
Filter the solution predictions.
Base residual calculation for the time-stepping function.
Base residual calculation containing any lagged components.