petsc-master 2019-05-18
Report Typos and Errors

Time steppers for ODE and DAE - TS: Examples

The time-stepping (TS) component provides ODE and DAE integrators as well as pseudo-timestepping. TS internally employs SNES to solve the nonlinear problems at each time step (except for the Sundials functions, which use nonlinear solvers within Sundials). TS users can also set SNES options directly in application codes by first extracting the SNES context from the TS context via TSGetSNES() and then directly calling various SNES (and KSP and PC with further unwrapping) routines (e.g., PCSetType() ).

Beginner - Basic usage
DMDATSSetIFunctionLocal TSGLLEAdapt TSSSPSetType
DMDATSSetIJacobianLocal TSGLLEAdaptType TSSSPType
DMDATSSetRHSFunctionLocal TSGLLEType TSSUNDIALS
DMDATSSetRHSJacobianLocal TSGetConvergedReason TSSetEventTolerances
DMTSSetIFunctionLocal TSGetEquationType TSSetExactFinalTime
DMTSSetIJacobianLocal TSGetExactFinalTime TSSetForcingFunction
DMTSSetRHSFunctionLocal TSGetKSP TSSetFromOptions
TS TSGetPrevTime TSSetI2Function
TS2SetSolution TSGetProblemType TSSetI2Jacobian
TSALPHA TSGetSNES TSSetIFunction
TSALPHA2 TSGetSolveTime TSSetIJacobian
TSARKIMEX TSGetTime TSSetProblemType
TSARKIMEXType TSGetTolerances TSSetRHSFunction
TSAdapt TSMIMEX TSSetRHSJacobian
TSAdaptType TSMPRK TSSetSolution
TSBDF TSMPRKType TSSetSolutionFunction
TSBEULER TSPSEUDO TSSetTolerances
TSBasicSymplectic TSProblemType TSSolve
TSBasicSymplecticType TSRADAU5 TSSundialsMonitorInternalSteps
TSCN TSRHSSplitSetRHSFunction TSSundialsSetMaxTimeStep
TSConvergedReason TSRK TSSundialsSetMinTimeStep
TSCreate TSRKType TSTHETA
TSDestroy TSROSW TSType
TSEIMEX TSReset TSView
TSEIMEXType TSRosWSetType TS_CONVERGED_EVENT
TSEULER TSRosWType TS_CONVERGED_ITERATING
TSEquationType TSSSP TS_CONVERGED_ITS
TSExactFinalTimeOption TSSSPGetNumStages TS_CONVERGED_PSEUDO_FATOL
TSGLEE TSSSPGetType TS_CONVERGED_PSEUDO_FRTOL
TSGLEEMode TSSSPRKS104 TS_CONVERGED_TIME
TSGLEEType TSSSPRKS2 TS_CONVERGED_USER
TSGLLE TSSSPRKS3 TS_DIVERGED_NONLINEAR_SOLVE
TSGLLEAcceptType TSSSPSetNumStages TS_DIVERGED_STEP_REJECTED
Intermediate - Setting options for algorithms and data structures
DMTSSetBoundaryLocal TSGetSNESIterations TSRKSetType
TS2GetSolution TSGetSolution TSROSW2M
TSADAPTBASIC TSGetStepNumber TSROSW2P
TSADAPTCFL TSGetStepRejections TSROSW4L
TSADAPTDSP TSGetTimeError TSROSWASSP3P3S1C
TSADAPTGLEE TSGetTimeStep TSROSWGRK4T
TSADAPTNONE TSGetType TSROSWLASSP3P4S2C
TSARKIMEXGetType TSGetUseSplitRHSFunction TSROSWLLSSP3P4S2C
TSARKIMEXSetFullyImplicit TSInterpolate TSROSWRA34PW2
TSARKIMEXSetType TSLoad TSROSWRA3PW
TSAdaptDSPSetFilter TSMPRKGetType TSROSWRODAS3
TSAdaptDSPSetPID TSMPRKSetType TSROSWSANDU3
TSAdaptGetClip TSMonitorCancel TSROSWSHAMP4
TSAdaptGetMaxIgnore TSMonitorDefault TSROSWTHETA1
TSAdaptGetSafety TSMonitorDrawCtxCreate TSROSWTHETA2
TSAdaptGetStepLimits TSMonitorDrawCtxDestroy TSROSWVELDD4
TSAdaptGetType TSMonitorDrawError TSResetTrajectory
TSAdaptLoad TSMonitorDrawSolution TSRosWGetType
TSAdaptSetAlwaysAccept TSMonitorDrawSolutionFunction TSRosWSetRecomputeJacobian
TSAdaptSetClip TSMonitorDrawSolutionPhase TSSetApplicationContext
TSAdaptSetMaxIgnore TSMonitorEnvelope TSSetCFLTimeLocal
TSAdaptSetMonitor TSMonitorEnvelopeCtxCreate TSSetDM
TSAdaptSetSafety TSMonitorEnvelopeCtxDestroy TSSetErrorIfStepFails
TSAdaptSetStepLimits TSMonitorEnvelopeGetBounds TSSetEventHandler
TSAdaptSetType TSMonitorError TSSetFunctionDomainError
TSAlpha2SetRadius TSMonitorExtreme TSSetMaxSNESFailures
TSAlphaSetRadius TSMonitorLGCtxCreate TSSetMaxStepRejections
TSBASICSYMPLECTICSIEULER TSMonitorLGCtxDestroy TSSetMaxSteps
TSBASICSYMPLECTICVELVERLET TSMonitorLGCtxSetDisplayVariables TSSetMaxTime
TSBDFGetOrder TSMonitorLGCtxSetTransform TSSetPostEvaluate
TSBDFSetOrder TSMonitorLGCtxSetVariableNames TSSetPostStage
TSBasicSymplecticGetType TSMonitorLGError TSSetPostStep
TSBasicSymplecticSetType TSMonitorLGGetVariableNames TSSetPreStage
TSComputeIFunctionLinear TSMonitorLGSetDisplayVariables TSSetPreStep
TSComputeIJacobianDefaultColor TSMonitorLGSetTransform TSSetSaveTrajectory
TSComputeRHSFunctionLinear TSMonitorLGSetVariableNames TSSetTime
TSComputeRHSJacobianConstant TSMonitorLGSolution TSSetTimeError
TSEIMEXSetMaxRows TSMonitorSPEigCtxCreate TSSetTimeStep
TSEIMEXSetOrdAdapt TSMonitorSPEigCtxDestroy TSSetType
TSEIMEXSetRowCol TSMonitorSPSwarmSolution TSSetUseSplitRHSFunction
TSGLEEGetType TSMonitorSet TSSundialsSetTolerance
TSGLEESetType TSMonitorSolution TSSundialsSetType
TSGLLESetAcceptType TSMonitorSolutionVTK TSTRAJECTORYBASIC
TSGLLESetType TSMonitorSolutionVTKDestroy TSTRAJECTORYMEMORY
TSGetAdapt TSPseudoSetTimeStep TSTRAJECTORYSINGLEFILE
TSGetApplicationContext TSPythonSetType TSTRAJECTORYVISUALIZATION
TSGetAuxSolution TSRHSJacobianSetReuse TSThetaSetEndpoint
TSGetDM TSRHSSplitGetIS TSThetaSetTheta
TSGetKSPIterations TSRHSSplitSetIS TSTrajectorySetTransform
TSGetOptionsPrefix TSRKGetMultirate TSTrajectorySetVariableNames
TSGetRHSJacobian TSRKGetType
TSGetSNESFailures TSRKSetMultirate
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSAppendOptionsPrefix TSPseudoSetMaxTimeStep
DMTSGetI2Function TSBasicSymplecticRegister TSPseudoSetTimeStepIncrement
DMTSGetI2Jacobian TSBasicSymplecticRegisterAll TSPseudoSetVerifyTimeStep
DMTSGetIFunction TSBasicSymplecticRegisterDestroy TSPseudoTimeStepDefault
DMTSGetIJacobian TSComputeIJacobianConstant TSPseudoVerifyTimeStep
DMTSGetRHSFunction TSEvaluateStep TSPseudoVerifyTimeStepDefault
DMTSGetRHSJacobian TSEvaluateWLTE TSRHSJacobianTest
DMTSGetSolutionFunction TSFunctionDomainError TSRHSJacobianTestTranspose
DMTSSetForcingFunction TSGLEE23 TSRHSSplitGetSubTS
DMTSSetI2Function TSGLEE24 TSRHSSplitGetSubTSs
DMTSSetI2Jacobian TSGLEE25i TSRK1FE
DMTSSetIFunction TSGLEE35 TSRK2A
DMTSSetIFunctionSerialize TSGLEEEXRK2A TSRK3
DMTSSetIJacobian TSGLEERK285EX TSRK3BS
DMTSSetIJacobianSerialize TSGLEERK32G1 TSRK4
DMTSSetRHSFunction TSGLEERegister TSRK5BS
DMTSSetRHSJacobian TSGLEERegisterAll TSRK5DP
DMTSSetSolutionFunction TSGLEERegisterDestroy TSRK5F
SNESTSFormFunction TSGLLEAcceptRegister TSRKRegister
TSARKIMEX1BEE TSGLLEAdaptRegister TSRKRegisterAll
TSARKIMEX2C TSGLLEAdaptRegisterAll TSRKRegisterDestroy
TSARKIMEX2D TSGLLEGetAdapt TSRegister
TSARKIMEX2E TSGLLERegister TSRegisterAll
TSARKIMEX3 TSGLLERegisterAll TSRestartStep
TSARKIMEX4 TSGetCFLTime TSRollBack
TSARKIMEX5 TSGetI2Function TSRosWRegister
TSARKIMEXA2 TSGetI2Jacobian TSRosWRegisterAll
TSARKIMEXARS122 TSGetIFunction TSRosWRegisterDestroy
TSARKIMEXARS443 TSGetIJacobian TSSetConvergedReason
TSARKIMEXBPR3 TSGetMaxSteps TSSetEquationType
TSARKIMEXL2 TSGetMaxTime TSSetOptionsPrefix
TSARKIMEXPRSSP2 TSGetRHSFunction TSSetPostEventIntervalStep
TSARKIMEXRegister TSGetSolutionComponents TSSetStepNumber
TSARKIMEXRegisterAll TSGetStages TSSetUp
TSARKIMEXRegisterDestroy TSGetTrajectory TSSundialsGetIterations
TSAdaptHistoryGetStep TSMPRK2A22 TSSundialsGetPC
TSAdaptHistorySetHistory TSMPRK2A23 TSSundialsSetGramSchmidtType
TSAdaptHistorySetTrajectory TSMPRK2A32 TSSundialsSetLinearTolerance
TSAdaptRegister TSMPRK2A33 TSSundialsSetMaxl
TSAdaptRegisterAll TSMPRK3P2M TSThetaGetEndpoint
TSAdaptSetCheckStage TSMPRKP2 TSThetaGetTheta
TSAdaptSetTimeStepIncreaseDelay TSMPRKP3 TSTrajectory
TSAlpha2GetParams TSMPRKRegister TSTrajectorySetKeepFiles
TSAlpha2SetParams TSMPRKRegisterAll TSTrajectorySetUseHistory
TSAlphaGetParams TSMPRKRegisterDestroy TSVISetVariableBounds
TSAlphaSetParams TSPseudoIncrementDtFromInitialDt
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMCopyDMTS TSComputeIFunction TSRKInitializePackage
DMGetDMTS TSComputeIJacobian TSRosWFinalizePackage
DMGetDMTSWrite TSComputeLinearStability TSRosWInitializePackage
DMPlexTSComputeBoundary TSComputeRHSFunction TSRosWRegisterRos4
DMPlexTSComputeIFunctionFEM TSComputeRHSJacobian TSSSPFinalizePackage
DMPlexTSComputeIJacobianFEM TSComputeSolutionFunction TSSSPInitializePackage
DMPlexTSComputeRHSFunctionFVM TSErrorWeightedENorm TSSetSNES
DMPlexTSGetGeometryFVM TSErrorWeightedENorm2 TSStep
DMPlexTSGetGradientDM TSErrorWeightedENormInfinity TSTrajectoryCreate
DMTSCheckFromOptions TSErrorWeightedNorm TSTrajectoryDestroy
DMTSCopy TSErrorWeightedNorm2 TSTrajectoryGet
SNESTSFormJacobian TSErrorWeightedNormInfinity TSTrajectoryGetNumSteps
TSADAPTHISTORY TSFinalizePackage TSTrajectoryGetSolutionOnly
TSARKIMEXFinalizePackage TSGLEEFinalizePackage TSTrajectoryGetType
TSARKIMEXInitializePackage TSGLEEInitializePackage TSTrajectoryGetUpdatedHistoryVecs
TSAdaptCandidateAdd TSGLLEAdaptInitializePackage TSTrajectoryGetVecs
TSAdaptCandidatesClear TSGLLEFinalizePackage TSTrajectoryRegister
TSAdaptCandidatesGet TSGLLEInitializePackage TSTrajectoryRegisterAll
TSAdaptCheckStage TSInitializePackage TSTrajectoryReset
TSAdaptChoose TSMPRKFinalizePackage TSTrajectoryRestoreUpdatedHistoryVecs
TSAdaptCreate TSMPRKInitializePackage TSTrajectorySet
TSAdaptFinalizePackage TSMonitor TSTrajectorySetDirname
TSAdaptInitializePackage TSMonitorSetFromOptions TSTrajectorySetFiletemplate
TSAdaptReset TSPostEvaluate TSTrajectorySetFromOptions
TSBasicSymplecticFinalizePackage TSPostStage TSTrajectorySetMonitor
TSBasicSymplecticInitializePackage TSPostStep TSTrajectorySetSolutionOnly
TSClone TSPreStage TSTrajectorySetType
TSComputeForcingFunction TSPreStep TSTrajectorySetUp
TSComputeI2Function TSPseudoComputeTimeStep TSTrajectoryView
TSComputeI2Jacobian TSRKFinalizePackage
Deprecated - Functionality scheduled for removal in future versions
TSGetDuration TSGetTotalSteps TSSetInitialTimeStep
TSGetTimeStepNumber TSSetDuration

Table of Contents