ConOpSys V2970
P004.07
ANVILEX control operating system
|
#include "rtw_continuous.h"
Go to the source code of this file.
Classes | |
struct | _ssSolverInfo_tag |
Macros | |
#define | rtsiSetRTModelPtr(S, rtmp) ((S)->rtModelPtr = (rtmp)) |
#define | rtsiGetRTModelPtr(S) (S)->rtModelPtr |
#define | rtsiSetSimTimeStepPtr(S, stp) ((S)->simTimeStepPtr = (stp)) |
#define | rtsiGetSimTimeStepPtr(S) ((S)->simTimeStepPtr) |
#define | rtsiGetSimTimeStep(S) *((S)->simTimeStepPtr) |
#define | rtsiSetSimTimeStep(S, st) (*((S)->simTimeStepPtr) = (st)) |
#define | rtsiSetSolverData(S, sd) ((S)->solverData = (sd)) |
#define | rtsiGetSolverData(S) (S)->solverData |
#define | rtsiSetSolverName(S, sn) ((S)->solverName = (sn)) |
#define | rtsiGetSolverName(S) (S)->solverName |
#define | rtsiSetVariableStepSolver(S, vs) ((S)->isVariableStepSolver = (vs)) |
#define | rtsiIsVariableStepSolver(S) (S)->isVariableStepSolver |
#define | rtsiSetSolverNeedsReset(S, sn) ((S)->solverNeedsReset = (sn)) |
#define | rtsiGetSolverNeedsReset(S) (S)->solverNeedsReset |
#define | rtsiSetContTimeOutputInconsistentWithStateAtMajorStep(S, sn) ((S)->CTOutputIncnstWithState = (sn)) |
#define | rtsiGetContTimeOutputInconsistentWithStateAtMajorStep(S) (S)->CTOutputIncnstWithState |
#define | rtsiSetBlkStateChange(S, sn) ((S)->CTOutputIncnstWithState = (sn)) |
#define | rtsiGetBlkStateChange(S) (S)->CTOutputIncnstWithState |
#define | rtsiSetBlockStateForSolverChangedAtMajorStep(S, sn) ((S)->solverNeedsReset = (sn)) |
#define | rtsiGetBlockStateForSolverChangedAtMajorStep(S) (S)->solverNeedsReset |
#define | rtsiSetSolverMode(S, sm) ((S)->solverMode = (sm)) |
#define | rtsiGetSolverMode(S) (S)->solverMode |
#define | rtsiSetSolverStopTime(S, st) ((S)->solverStopTime = (st)) |
#define | rtsiGetSolverStopTime(S) (S)->solverStopTime |
#define | rtsiSetStepSizePtr(S, ssp) ((S)->stepSizePtr = (ssp)) |
#define | rtsiSetStepSize(S, ss) (*((S)->stepSizePtr) = (ss)) |
#define | rtsiGetStepSize(S) *((S)->stepSizePtr) |
#define | rtsiSetMinStepSize(S, ss) (((S)->minStepSize = (ss))) |
#define | rtsiGetMinStepSize(S) (S)->minStepSize |
#define | rtsiSetMaxStepSize(S, ss) ((S)->maxStepSize = (ss)) |
#define | rtsiGetMaxStepSize(S) (S)->maxStepSize |
#define | rtsiSetFixedStepSize(S, ss) ((S)->fixedStepSize = (ss)) |
#define | rtsiGetFixedStepSize(S) (S)->fixedStepSize |
#define | rtsiSetMaxNumMinSteps(S, mns) ((S)->maxNumMinSteps = (mns)) |
#define | rtsiGetMaxNumMinSteps(S) (S)->maxNumMinSteps |
#define | rtsiSetSolverMaxOrder(S, smo) ((S)->solverMaxOrder = (smo)) |
#define | rtsiGetSolverMaxOrder(S) (S)->solverMaxOrder |
#define | rtsiSetSolverJacobianMethodControl(S, smcm) (ssGetSolverInfo(S)->solverJacobianMethodControl = (smcm)) |
#define | rtsiGetSolverJacobianMethodControl(S) ssGetSolverInfo(S)->solverJacobianMethodControl |
#define | rtsiSetSolverShapePreserveControl(S, smcm) (ssGetSolverInfo(S)->solverShapePreserveControl = (smcm)) |
#define | rtsiGetSolverShapePreserveControl(S) ssGetSolverInfo(S)->solverShapePreserveControl |
#define | rtsiSetSolverConsecutiveZCsStepRelTol(S, scr) (ssGetSolverInfo(S)->solverConsecutiveZCsStepRelTol = (scr)) |
#define | rtsiGetSolverConsecutiveZCsStepRelTol(S) ssGetSolverInfo(S)->solverConsecutiveZCsStepRelTol |
#define | rtsiSetSolverMaxConsecutiveZCs(S, smcz) (ssGetSolverInfo(S)->solverMaxConsecutiveZCs = (smcz)) |
#define | rtsiGetSolverMaxConsecutiveZCs(S) ssGetSolverInfo(S)->solverMaxConsecutiveZCs |
#define | rtsiSetSolverMaxConsecutiveMinStep(S, smcm) (ssGetSolverInfo(S)->solverMaxConsecutiveMinStep = (smcm)) |
#define | rtsiGetSolverMaxConsecutiveMinStep(S) ssGetSolverInfo(S)->solverMaxConsecutiveMinStep |
#define | rtsiSetSolverExtrapolationOrder(S, seo) ((S)->solverExtrapolationOrder = (seo)) |
#define | rtsiGetSolverExtrapolationOrder(S) (S)->solverExtrapolationOrder |
#define | rtsiSetSolverNumberNewtonIterations(S, nni) ((S)->solverNumberNewtonIterations = (nni)) |
#define | rtsiGetSolverNumberNewtonIterations(S) (S)->solverNumberNewtonIterations |
#define | rtsiSetSolverRefineFactor(S, smo) ((S)->solverRefineFactor = (smo)) |
#define | rtsiGetSolverRefineFactor(S) (S)->solverRefineFactor |
#define | rtsiSetSolverRelTol(S, smo) ((S)->solverRelTol = (smo)) |
#define | rtsiGetSolverRelTol(S) (S)->solverRelTol |
#define | rtsiSetSolverMassMatrixType(S, type) ((S)->massMatrixType = (type)) |
#define | rtsiGetSolverMassMatrixType(S) (S)->massMatrixType |
#define | rtsiSetSolverMassMatrixNzMax(S, nzMax) ((S)->massMatrixNzMax = (nzMax)) |
#define | rtsiGetSolverMassMatrixNzMax(S) (S)->massMatrixNzMax |
#define | rtsiSetSolverMassMatrixIr(S, ir) ((S)->massMatrixIr = (ir)) |
#define | rtsiGetSolverMassMatrixIr(S) (S)->massMatrixIr |
#define | rtsiSetSolverMassMatrixJc(S, jc) ((S)->massMatrixJc = (jc)) |
#define | rtsiGetSolverMassMatrixJc(S) (S)->massMatrixJc |
#define | rtsiSetSolverMassMatrixPr(S, pr) ((S)->massMatrixPr = (pr)) |
#define | rtsiGetSolverMassMatrixPr(S) (S)->massMatrixPr |
#define | rtsiSetdXPtr(S, dxp) ((S)->dXPtr = (dxp)) |
#define | rtsiSetdX(S, dx) (*((S)->dXPtr) = (dx)) |
#define | rtsiGetdX(S) *((S)->dXPtr) |
#define | rtsiSetTPtr(S, tp) ((S)->tPtr = (tp)) |
#define | rtsiSetT(S, t) ((*((S)->tPtr))[0] = (t)) |
#define | rtsiGetT(S) (*((S)->tPtr))[0] |
#define | rtsiSetContStatesPtr(S, cp) ((S)->contStatesPtr = (cp)) |
#define | rtsiGetContStates(S) *((S)->contStatesPtr) |
#define | rtsiSetNumContStatesPtr(S, cp) ((S)->numContStatesPtr = (cp)) |
#define | rtsiGetNumContStates(S) *((S)->numContStatesPtr) |
#define | rtsiSetNumPeriodicContStatesPtr(S, cp) ((S)->numPeriodicContStatesPtr = (cp)) |
#define | rtsiGetNumPeriodicContStates(S) *((S)->numPeriodicContStatesPtr) |
#define | rtsiSetPeriodicContStateIndicesPtr(S, cp) ((S)->periodicContStateIndicesPtr = (cp)) |
#define | rtsiGetPeriodicContStateIndices(S) *((S)->periodicContStateIndicesPtr) |
#define | rtsiSetPeriodicContStateRangesPtr(S, cp) ((S)->periodicContStateRangesPtr = (cp)) |
#define | rtsiGetPeriodicContStateRanges(S) *((S)->periodicContStateRangesPtr) |
#define | rtsiSetErrorStatusPtr(S, esp) ((S)->errStatusPtr = (esp)) |
#define | rtsiSetErrorStatus(S, es) (*((S)->errStatusPtr) = (es)) |
#define | rtsiGetErrorStatus(S) *((S)->errStatusPtr) |
#define | rtsiSetModelMethodsPtr(S, mmp) ((S)->modelMethodsPtr = (mmp)) |
#define | rtsiGetModelMethodsPtr(S) (S)->modelMethodsPtr |
#define | rtsiSetSolverComputingJacobian(S, val) ((S)->isComputingJacobian = (val)) |
#define | rtsiIsSolverComputingJacobian(S) (S)->isComputingJacobian |
#define | rtsiSetSolverOutputComputed(S, val) ((S)->isOutputMethodComputed = (val)) |
#define | rtsiIsSolverOutputComputed(S) (S)->isOutputMethodComputed |
Typedefs | |
typedef struct _ssSolverInfo_tag | ssSolverInfo |
typedef ssSolverInfo | RTWSolverInfo |
Enumerations | |
enum | SL_SolverToleranceControlFlag_T { SL_SOLVER_TOLERANCE_AUTO = 0 , SL_SOLVER_TOLERANCE_LOCAL = 1 , SL_SOLVER_TOLERANCE_GLOBAL = 2 , SL_SOLVER_TOLERANCE_UNDEFINED = 255 , SL_SOLVER_TOLERANCE_AUTO = 0 , SL_SOLVER_TOLERANCE_LOCAL = 1 , SL_SOLVER_TOLERANCE_GLOBAL = 2 , SL_SOLVER_TOLERANCE_UNDEFINED = 255 } |
enum | slJmBdControl { SL_JM_BD_AUTO = 0 , SL_JM_BD_SPARSE_PERTURBATION , SL_JM_BD_FULL_PERTURBATION , SL_JM_BD_SPARSE_ANALYTICAL , SL_JM_BD_FULL_ANALYTICAL , SL_JM_BD_AUTO = 0 , SL_JM_BD_SPARSE_PERTURBATION , SL_JM_BD_FULL_PERTURBATION , SL_JM_BD_SPARSE_ANALYTICAL , SL_JM_BD_FULL_ANALYTICAL } |
#define rtsiGetBlkStateChange | ( | S | ) | (S)->CTOutputIncnstWithState |
#define rtsiGetBlockStateForSolverChangedAtMajorStep | ( | S | ) | (S)->solverNeedsReset |
#define rtsiGetContStates | ( | S | ) | *((S)->contStatesPtr) |
#define rtsiGetContTimeOutputInconsistentWithStateAtMajorStep | ( | S | ) | (S)->CTOutputIncnstWithState |
#define rtsiGetdX | ( | S | ) | *((S)->dXPtr) |
#define rtsiGetErrorStatus | ( | S | ) | *((S)->errStatusPtr) |
#define rtsiGetFixedStepSize | ( | S | ) | (S)->fixedStepSize |
#define rtsiGetMaxNumMinSteps | ( | S | ) | (S)->maxNumMinSteps |
#define rtsiGetMaxStepSize | ( | S | ) | (S)->maxStepSize |
#define rtsiGetMinStepSize | ( | S | ) | (S)->minStepSize |
#define rtsiGetModelMethodsPtr | ( | S | ) | (S)->modelMethodsPtr |
#define rtsiGetNumContStates | ( | S | ) | *((S)->numContStatesPtr) |
#define rtsiGetNumPeriodicContStates | ( | S | ) | *((S)->numPeriodicContStatesPtr) |
#define rtsiGetPeriodicContStateIndices | ( | S | ) | *((S)->periodicContStateIndicesPtr) |
#define rtsiGetPeriodicContStateRanges | ( | S | ) | *((S)->periodicContStateRangesPtr) |
#define rtsiGetRTModelPtr | ( | S | ) | (S)->rtModelPtr |
#define rtsiGetSimTimeStep | ( | S | ) | *((S)->simTimeStepPtr) |
#define rtsiGetSimTimeStepPtr | ( | S | ) | ((S)->simTimeStepPtr) |
#define rtsiGetSolverConsecutiveZCsStepRelTol | ( | S | ) | ssGetSolverInfo(S)->solverConsecutiveZCsStepRelTol |
#define rtsiGetSolverData | ( | S | ) | (S)->solverData |
#define rtsiGetSolverExtrapolationOrder | ( | S | ) | (S)->solverExtrapolationOrder |
#define rtsiGetSolverJacobianMethodControl | ( | S | ) | ssGetSolverInfo(S)->solverJacobianMethodControl |
#define rtsiGetSolverMassMatrixIr | ( | S | ) | (S)->massMatrixIr |
#define rtsiGetSolverMassMatrixJc | ( | S | ) | (S)->massMatrixJc |
#define rtsiGetSolverMassMatrixNzMax | ( | S | ) | (S)->massMatrixNzMax |
#define rtsiGetSolverMassMatrixPr | ( | S | ) | (S)->massMatrixPr |
#define rtsiGetSolverMassMatrixType | ( | S | ) | (S)->massMatrixType |
#define rtsiGetSolverMaxConsecutiveMinStep | ( | S | ) | ssGetSolverInfo(S)->solverMaxConsecutiveMinStep |
#define rtsiGetSolverMaxConsecutiveZCs | ( | S | ) | ssGetSolverInfo(S)->solverMaxConsecutiveZCs |
#define rtsiGetSolverMaxOrder | ( | S | ) | (S)->solverMaxOrder |
#define rtsiGetSolverMode | ( | S | ) | (S)->solverMode |
#define rtsiGetSolverName | ( | S | ) | (S)->solverName |
#define rtsiGetSolverNeedsReset | ( | S | ) | (S)->solverNeedsReset |
#define rtsiGetSolverNumberNewtonIterations | ( | S | ) | (S)->solverNumberNewtonIterations |
#define rtsiGetSolverRefineFactor | ( | S | ) | (S)->solverRefineFactor |
#define rtsiGetSolverRelTol | ( | S | ) | (S)->solverRelTol |
#define rtsiGetSolverShapePreserveControl | ( | S | ) | ssGetSolverInfo(S)->solverShapePreserveControl |
#define rtsiGetSolverStopTime | ( | S | ) | (S)->solverStopTime |
#define rtsiGetStepSize | ( | S | ) | *((S)->stepSizePtr) |
#define rtsiGetT | ( | S | ) | (*((S)->tPtr))[0] |
#define rtsiIsSolverComputingJacobian | ( | S | ) | (S)->isComputingJacobian |
#define rtsiIsSolverOutputComputed | ( | S | ) | (S)->isOutputMethodComputed |
#define rtsiIsVariableStepSolver | ( | S | ) | (S)->isVariableStepSolver |
#define rtsiSetBlkStateChange | ( | S, | |
sn | |||
) | ((S)->CTOutputIncnstWithState = (sn)) |
#define rtsiSetBlockStateForSolverChangedAtMajorStep | ( | S, | |
sn | |||
) | ((S)->solverNeedsReset = (sn)) |
#define rtsiSetContStatesPtr | ( | S, | |
cp | |||
) | ((S)->contStatesPtr = (cp)) |
#define rtsiSetContTimeOutputInconsistentWithStateAtMajorStep | ( | S, | |
sn | |||
) | ((S)->CTOutputIncnstWithState = (sn)) |
#define rtsiSetdX | ( | S, | |
dx | |||
) | (*((S)->dXPtr) = (dx)) |
#define rtsiSetdXPtr | ( | S, | |
dxp | |||
) | ((S)->dXPtr = (dxp)) |
#define rtsiSetErrorStatus | ( | S, | |
es | |||
) | (*((S)->errStatusPtr) = (es)) |
#define rtsiSetErrorStatusPtr | ( | S, | |
esp | |||
) | ((S)->errStatusPtr = (esp)) |
#define rtsiSetFixedStepSize | ( | S, | |
ss | |||
) | ((S)->fixedStepSize = (ss)) |
#define rtsiSetMaxNumMinSteps | ( | S, | |
mns | |||
) | ((S)->maxNumMinSteps = (mns)) |
#define rtsiSetMaxStepSize | ( | S, | |
ss | |||
) | ((S)->maxStepSize = (ss)) |
#define rtsiSetMinStepSize | ( | S, | |
ss | |||
) | (((S)->minStepSize = (ss))) |
#define rtsiSetModelMethodsPtr | ( | S, | |
mmp | |||
) | ((S)->modelMethodsPtr = (mmp)) |
#define rtsiSetNumContStatesPtr | ( | S, | |
cp | |||
) | ((S)->numContStatesPtr = (cp)) |
#define rtsiSetNumPeriodicContStatesPtr | ( | S, | |
cp | |||
) | ((S)->numPeriodicContStatesPtr = (cp)) |
#define rtsiSetPeriodicContStateIndicesPtr | ( | S, | |
cp | |||
) | ((S)->periodicContStateIndicesPtr = (cp)) |
#define rtsiSetPeriodicContStateRangesPtr | ( | S, | |
cp | |||
) | ((S)->periodicContStateRangesPtr = (cp)) |
#define rtsiSetRTModelPtr | ( | S, | |
rtmp | |||
) | ((S)->rtModelPtr = (rtmp)) |
#define rtsiSetSimTimeStep | ( | S, | |
st | |||
) | (*((S)->simTimeStepPtr) = (st)) |
#define rtsiSetSimTimeStepPtr | ( | S, | |
stp | |||
) | ((S)->simTimeStepPtr = (stp)) |
#define rtsiSetSolverComputingJacobian | ( | S, | |
val | |||
) | ((S)->isComputingJacobian = (val)) |
#define rtsiSetSolverConsecutiveZCsStepRelTol | ( | S, | |
scr | |||
) | (ssGetSolverInfo(S)->solverConsecutiveZCsStepRelTol = (scr)) |
#define rtsiSetSolverData | ( | S, | |
sd | |||
) | ((S)->solverData = (sd)) |
#define rtsiSetSolverExtrapolationOrder | ( | S, | |
seo | |||
) | ((S)->solverExtrapolationOrder = (seo)) |
#define rtsiSetSolverJacobianMethodControl | ( | S, | |
smcm | |||
) | (ssGetSolverInfo(S)->solverJacobianMethodControl = (smcm)) |
#define rtsiSetSolverMassMatrixIr | ( | S, | |
ir | |||
) | ((S)->massMatrixIr = (ir)) |
#define rtsiSetSolverMassMatrixJc | ( | S, | |
jc | |||
) | ((S)->massMatrixJc = (jc)) |
#define rtsiSetSolverMassMatrixNzMax | ( | S, | |
nzMax | |||
) | ((S)->massMatrixNzMax = (nzMax)) |
#define rtsiSetSolverMassMatrixPr | ( | S, | |
pr | |||
) | ((S)->massMatrixPr = (pr)) |
#define rtsiSetSolverMassMatrixType | ( | S, | |
type | |||
) | ((S)->massMatrixType = (type)) |
#define rtsiSetSolverMaxConsecutiveMinStep | ( | S, | |
smcm | |||
) | (ssGetSolverInfo(S)->solverMaxConsecutiveMinStep = (smcm)) |
#define rtsiSetSolverMaxConsecutiveZCs | ( | S, | |
smcz | |||
) | (ssGetSolverInfo(S)->solverMaxConsecutiveZCs = (smcz)) |
#define rtsiSetSolverMaxOrder | ( | S, | |
smo | |||
) | ((S)->solverMaxOrder = (smo)) |
#define rtsiSetSolverMode | ( | S, | |
sm | |||
) | ((S)->solverMode = (sm)) |
#define rtsiSetSolverName | ( | S, | |
sn | |||
) | ((S)->solverName = (sn)) |
#define rtsiSetSolverNeedsReset | ( | S, | |
sn | |||
) | ((S)->solverNeedsReset = (sn)) |
#define rtsiSetSolverNumberNewtonIterations | ( | S, | |
nni | |||
) | ((S)->solverNumberNewtonIterations = (nni)) |
#define rtsiSetSolverOutputComputed | ( | S, | |
val | |||
) | ((S)->isOutputMethodComputed = (val)) |
#define rtsiSetSolverRefineFactor | ( | S, | |
smo | |||
) | ((S)->solverRefineFactor = (smo)) |
#define rtsiSetSolverRelTol | ( | S, | |
smo | |||
) | ((S)->solverRelTol = (smo)) |
#define rtsiSetSolverShapePreserveControl | ( | S, | |
smcm | |||
) | (ssGetSolverInfo(S)->solverShapePreserveControl = (smcm)) |
#define rtsiSetSolverStopTime | ( | S, | |
st | |||
) | ((S)->solverStopTime = (st)) |
#define rtsiSetStepSize | ( | S, | |
ss | |||
) | (*((S)->stepSizePtr) = (ss)) |
#define rtsiSetStepSizePtr | ( | S, | |
ssp | |||
) | ((S)->stepSizePtr = (ssp)) |
#define rtsiSetT | ( | S, | |
t | |||
) | ((*((S)->tPtr))[0] = (t)) |
#define rtsiSetTPtr | ( | S, | |
tp | |||
) | ((S)->tPtr = (tp)) |
#define rtsiSetVariableStepSolver | ( | S, | |
vs | |||
) | ((S)->isVariableStepSolver = (vs)) |
typedef ssSolverInfo RTWSolverInfo |
typedef struct _ssSolverInfo_tag ssSolverInfo |
enum slJmBdControl |