petsc-3.12.2 2019-11-22
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 TSBasicSymplecticRegister TSPseudoTimeStepDefault
DMTSGetI2Function TSBasicSymplecticRegisterAll TSPseudoVerifyTimeStep
DMTSGetI2Jacobian TSBasicSymplecticRegisterDestroy TSPseudoVerifyTimeStepDefault
DMTSGetIFunction TSComputeIJacobianConstant TSRHSJacobianTest
DMTSGetIJacobian TSEvaluateStep TSRHSJacobianTestTranspose
DMTSGetRHSFunction TSEvaluateWLTE TSRHSSplitGetSubTS
DMTSGetRHSJacobian TSGLEE23 TSRHSSplitGetSubTSs
DMTSGetSolutionFunction TSGLEE24 TSRK1FE
DMTSSetForcingFunction TSGLEE25i TSRK2A
DMTSSetI2Function TSGLEE35 TSRK3
DMTSSetI2Jacobian TSGLEEEXRK2A TSRK3BS
DMTSSetIFunction TSGLEERK285EX TSRK4
DMTSSetIFunctionSerialize TSGLEERK32G1 TSRK5BS
DMTSSetIJacobian TSGLEERegister TSRK5DP
DMTSSetIJacobianSerialize TSGLEERegisterAll TSRK5F
DMTSSetRHSFunction TSGLEERegisterDestroy TSRK6VR
DMTSSetRHSJacobian TSGLLEAcceptRegister TSRK7VR
DMTSSetSolutionFunction TSGLLEAdaptRegister TSRK8VR
SNESTSFormFunction TSGLLEAdaptRegisterAll TSRKRegister
TSARKIMEX1BEE TSGLLEGetAdapt TSRKRegisterAll
TSARKIMEX2C TSGLLERegister TSRKRegisterDestroy
TSARKIMEX2D TSGLLERegisterAll TSRegister
TSARKIMEX2E TSGetCFLTime TSRegisterAll
TSARKIMEX3 TSGetI2Function TSRestartStep
TSARKIMEX4 TSGetI2Jacobian TSRollBack
TSARKIMEX5 TSGetIFunction TSRosWRegister
TSARKIMEXA2 TSGetIJacobian TSRosWRegisterAll
TSARKIMEXARS122 TSGetMaxSteps TSRosWRegisterDestroy
TSARKIMEXARS443 TSGetMaxTime TSSetConvergedReason
TSARKIMEXBPR3 TSGetRHSFunction TSSetEquationType
TSARKIMEXL2 TSGetSolutionComponents TSSetOptionsPrefix
TSARKIMEXPRSSP2 TSGetStages TSSetPostEventIntervalStep
TSARKIMEXRegister TSGetTrajectory TSSetStepNumber
TSARKIMEXRegisterAll TSMPRK2A22 TSSetUp
TSARKIMEXRegisterDestroy TSMPRK2A23 TSSundialsGetIterations
TSAdaptHistoryGetStep TSMPRK2A32 TSSundialsGetPC
TSAdaptHistorySetHistory TSMPRK2A33 TSSundialsSetGramSchmidtType
TSAdaptHistorySetTrajectory TSMPRK3P2M TSSundialsSetLinearTolerance
TSAdaptRegister TSMPRKP2 TSSundialsSetMaxl
TSAdaptRegisterAll TSMPRKP3 TSThetaGetEndpoint
TSAdaptSetCheckStage TSMPRKRegister TSThetaGetTheta
TSAdaptSetTimeStepIncreaseDelay TSMPRKRegisterAll TSTrajectory
TSAlpha2GetParams TSMPRKRegisterDestroy TSTrajectorySetKeepFiles
TSAlpha2SetParams TSPseudoIncrementDtFromInitialDt TSTrajectorySetUseHistory
TSAlphaGetParams TSPseudoSetMaxTimeStep TSVISetVariableBounds
TSAlphaSetParams TSPseudoSetTimeStepIncrement
TSAppendOptionsPrefix TSPseudoSetVerifyTimeStep
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMCopyDMTS TSComputeIFunction TSRKFinalizePackage
DMGetDMTS TSComputeIJacobian TSRKInitializePackage
DMGetDMTSWrite TSComputeLinearStability TSRosWFinalizePackage
DMPlexTSComputeBoundary TSComputeRHSFunction TSRosWInitializePackage
DMPlexTSComputeIFunctionFEM TSComputeRHSJacobian TSRosWRegisterRos4
DMPlexTSComputeIJacobianFEM TSComputeSolutionFunction TSSSPFinalizePackage
DMPlexTSComputeRHSFunctionFVM TSErrorWeightedENorm TSSSPInitializePackage
DMPlexTSGetGeometryFVM TSErrorWeightedENorm2 TSSetSNES
DMPlexTSGetGradientDM TSErrorWeightedENormInfinity TSStep
DMTSCheckFromOptions TSErrorWeightedNorm TSTrajectoryCreate
DMTSCopy TSErrorWeightedNorm2 TSTrajectoryDestroy
SNESTSFormJacobian TSErrorWeightedNormInfinity TSTrajectoryGet
TSADAPTHISTORY TSFinalizePackage TSTrajectoryGetNumSteps
TSARKIMEXFinalizePackage TSFunctionDomainError TSTrajectoryGetSolutionOnly
TSARKIMEXInitializePackage TSGLEEFinalizePackage TSTrajectoryGetType
TSAdaptCandidateAdd TSGLEEInitializePackage TSTrajectoryGetUpdatedHistoryVecs
TSAdaptCandidatesClear TSGLLEAdaptInitializePackage TSTrajectoryGetVecs
TSAdaptCandidatesGet TSGLLEFinalizePackage TSTrajectoryRegister
TSAdaptCheckStage TSGLLEInitializePackage TSTrajectoryRegisterAll
TSAdaptChoose TSInitializePackage TSTrajectoryReset
TSAdaptCreate TSMPRKFinalizePackage TSTrajectoryRestoreUpdatedHistoryVecs
TSAdaptFinalizePackage TSMPRKInitializePackage TSTrajectorySet
TSAdaptInitializePackage TSMonitor TSTrajectorySetDirname
TSAdaptReset TSMonitorSetFromOptions TSTrajectorySetFiletemplate
TSBasicSymplecticFinalizePackage TSPostEvaluate TSTrajectorySetFromOptions
TSBasicSymplecticInitializePackage TSPostStage TSTrajectorySetMonitor
TSClone TSPostStep TSTrajectorySetSolutionOnly
TSComputeForcingFunction TSPreStage TSTrajectorySetType
TSComputeI2Function TSPreStep TSTrajectorySetUp
TSComputeI2Jacobian TSPseudoComputeTimeStep TSTrajectoryView
Deprecated - Functionality scheduled for removal in future versions
TSGetDuration TSGetTotalSteps TSSetInitialTimeStep
TSGetTimeStepNumber TSSetDuration

Table of Contents