Click or drag to resize

xBaseOdeGearsAndAdamsMoulton Class

Represents a base class for the Adams-Moulton and Gear’s BDF classes.
Inheritance Hierarchy
SystemObject
  DotNumerics.ODExOdeBase
    DotNumerics.ODE.DVodexBaseOdeGearsAndAdamsMoulton
      DotNumerics.ODEOdeAdamsMoulton
      DotNumerics.ODEOdeGearsBDF

Namespace: DotNumerics.ODE.DVode
Assembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public abstract class xBaseOdeGearsAndAdamsMoulton : xOdeBase
Request Example View Source

The xBaseOdeGearsAndAdamsMoulton type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyAbsTol An absolute error tolerance parameter
(Inherited from xOdeBase)
Public propertyAbsTolArray An absolute error tolerance array (length numEquations).
(Inherited from xOdeBase)
Public propertyErrorToleranceType Specifies the type of the relative error and absolute error tolerances.
(Inherited from xOdeBase)
Public propertyRelTol A relative error tolerance parameter.
(Inherited from xOdeBase)
Public propertyRelTolArray A relative error tolerance array ( length numEquations).
(Inherited from xOdeBase)
Top
Methods
 NameDescription
Protected methodCheckArguments
(Inherited from xOdeBase)
Protected methodCheckInitialization
(Inherited from xOdeBase)
Protected methodCheckTArray
(Inherited from xOdeBase)
Protected methodInicializacionWithJacobiano Inicialize the ODE solver with a Jacobiano
Public methodInitializeODEs(OdeFunction, Int32) Method that initialize the ODE to solve.
(Inherited from xOdeBase)
Public methodInitializeODEs(OdeFunction, Int32, Double, Double) Method that initialize the ODE to solve.
(Inherited from xOdeBase)
Private methodInternalJacobian 
Public methodSetInitialValues Sets the initial values for the differential equations.
(Overrides xOdeBaseSetInitialValues(Double, Double))
Public methodSolve(Double) Computes the solution of the differntial equations at a point (tEnd).
Public methodSolve(Double, Double) Computes the solution of the differntial equations.
Public methodSolve(Double, Double, OdeSolution) Computes the solution of the differntial equations.
Public methodSolve(Double, Double, Double, Double) Computes the solution of the differntial equations.
Public methodSolve(Double, Double, Double, Double, OdeSolution) Computes the solution of the differntial equations.
Top
Fields
 NameDescription
Protected field_AbsTol An absolute error tolerance parameter
(Inherited from xOdeBase)
Protected field_AbsTolArray An absolute error tolerance parameter(array of length NEQ)
(Inherited from xOdeBase)
Private field_dvode 
Protected field_Errors Array containing the exception messages.
(Inherited from xOdeBase)
Protected field_InvokeInitializeODEs Indicated if the InitializeODEs method need to be invoked.
(Inherited from xOdeBase)
Protected field_InvokeSetInitialValues Indicated if the SetInitialValues method need to be invoked.
(Inherited from xOdeBase)
Private field_IOpt MeIOpt= An integer flag to specify whether or not any optional input is being used on this call. MeIOpt= 0 means no optional input is being used.
Protected field_IPar User-specified array used to communicate integer parameter
(Inherited from xOdeBase)
Private field_IState MeIState= an index used for input and output to specify the the state of the calculation. In the input, the values of ISTATE are as follows. MeIState=1 means this is the first call for the problem (initializations will be done). MeIState=2 means this is not the first call, and the calculation is to continue normally. In the output, ISTATE has the following values and meanings. MeIState=1 means nothing was done, as TOUT was equal to T with ISTATE = 1 in the input. MeIState=2 means the integration was performed successfully. MeIState .LT. 0 Error MeIState=-1 means an excessive amount of work (more than MXSTEP steps) was done on this call, before completing the requested task, but the integration was otherwise successful as far as T. (MXSTEP is an optional input and is normally 500.) MeIState=-2 means too much accuracy was requested for the precision of the machine being used. MeIState=-3 means illegal input was detected
Private field_ITask MeITask=1 means normal computation of output values of y(t) at t = TOUT (by overshooting and interpolating).
Protected field_ITolAdamsGears For AdamsMoulton and OdeGearsBDF: MeITol = An indicator for the type of error control. ITOL RTOL ATOL EWT(i) MeITol =1 scalar scalar RTOL*ABS(Y(i)) + ATOL MeITol =2 scalar array RTOL*ABS(Y(i)) + ATOL(i) MeITol =3 array scalar RTOL(i)*ABS(Y(i)) + ATOL MeITol =4 array array RTOL(i)*ABS(Y(i)) + ATOL(i)
(Inherited from xOdeBase)
Protected field_ITolRK For Runge-Kutta ITol = An indicator for the type of error control. ITOL=0: BOTH RTOL AND ATOL ARE SCALARS. ITOL=1: BOTH RTOL AND ATOL ARE VECTORS.
(Inherited from xOdeBase)
Protected field_IWork MeIWork= An integer work array.
(Inherited from xOdeBase)
Protected field_Liw MeLiw= the length of the array IWORK
(Inherited from xOdeBase)
Protected field_Lrw MeLrw= The length of the array RWORK
(Inherited from xOdeBase)
Private field_Mf MeMf= The method flag. MeMf=10, NonStiff. MeMf=21 Stiff con Jacobiano. MeMf=22 Stiff sin Jacobiano.
Protected field_NEquations The number of equations
(Inherited from xOdeBase)
Protected field_RelTol A relative error tolerance parameter. The input parameters ITOL, RTOL, and ATOL determine the error control performed by the solver. The solver will control the vector e = (e(i)) of estimated local errors in Y, according to an inequality of the form rms-norm of ( e(i)/EWT(i) ) .le. 1, where EWT(i) = RTOL(i)*abs(Y(i)) + ATOL(i),
(Inherited from xOdeBase)
Protected field_RelTolArray A relative error tolerance parameter, either a scalar or an array of length NEQ.
(Inherited from xOdeBase)
Protected field_RPar User-specified array used to communicate real parameters
(Inherited from xOdeBase)
Protected field_RWork MeRWork= A real working array (double precision)
(Inherited from xOdeBase)
Protected field_T0 The initial independent variable value.
(Inherited from xOdeBase)
Private field_Type 
Private field_UserJacobian 
Protected field_Y Array used to set the initial values and to return the solution in some ODE solvers. This array must be initialized equal to the initial values in the first call.
(Inherited from xOdeBase)
Protected field_Y0 The initial conditions.
(Inherited from xOdeBase)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumNames
(Defined by General)
Public Extension MethodIsValidDouble
(Defined by General)
Top
See Also