petsc-3.13.6 2020-09-29
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 TSGetSNESFailures TSRKSetType
TS2GetSolution TSGetSNESIterations TSROSW2M
TSADAPTBASIC TSGetSolution TSROSW2P
TSADAPTCFL TSGetStepNumber TSROSW4L
TSADAPTDSP TSGetStepRejections TSROSWASSP3P3S1C
TSADAPTGLEE TSGetTimeError TSROSWGRK4T
TSADAPTNONE TSGetTimeStep TSROSWLASSP3P4S2C
TSARKIMEXGetFullyImplicit TSGetType TSROSWLLSSP3P4S2C
TSARKIMEXGetType TSGetUseSplitRHSFunction TSROSWRA34PW2
TSARKIMEXSetFullyImplicit TSInterpolate TSROSWRA3PW
TSARKIMEXSetType TSLoad TSROSWRODAS3
TSAdaptDSPSetFilter TSMPRKGetType TSROSWSANDU3
TSAdaptDSPSetPID TSMPRKSetType TSROSWSHAMP4
TSAdaptGetClip TSMonitorCancel TSROSWTHETA1
TSAdaptGetMaxIgnore TSMonitorDefault TSROSWTHETA2
TSAdaptGetSafety TSMonitorDrawCtxCreate TSROSWVELDD4
TSAdaptGetScaleSolveFailed TSMonitorDrawCtxDestroy TSResetTrajectory
TSAdaptGetStepLimits TSMonitorDrawError TSRosWGetType
TSAdaptGetType TSMonitorDrawSolution TSRosWSetRecomputeJacobian
TSAdaptLoad TSMonitorDrawSolutionFunction TSSetApplicationContext
TSAdaptSetAlwaysAccept TSMonitorDrawSolutionPhase TSSetCFLTimeLocal
TSAdaptSetClip TSMonitorEnvelope TSSetDM
TSAdaptSetMaxIgnore TSMonitorEnvelopeCtxCreate TSSetErrorIfStepFails
TSAdaptSetMonitor TSMonitorEnvelopeCtxDestroy TSSetEventHandler
TSAdaptSetSafety TSMonitorEnvelopeGetBounds TSSetFunctionDomainError
TSAdaptSetScaleSolveFailed TSMonitorError TSSetMaxSNESFailures
TSAdaptSetStepLimits TSMonitorExtreme TSSetMaxStepRejections
TSAdaptSetType TSMonitorLGCtxCreate TSSetMaxSteps
TSAlpha2SetRadius TSMonitorLGCtxDestroy TSSetMaxTime
TSAlphaSetRadius TSMonitorLGCtxSetDisplayVariables TSSetPostEvaluate
TSBASICSYMPLECTICSIEULER TSMonitorLGCtxSetTransform TSSetPostStage
TSBASICSYMPLECTICVELVERLET TSMonitorLGCtxSetVariableNames TSSetPostStep
TSBDFGetOrder TSMonitorLGError TSSetPreStage
TSBDFSetOrder TSMonitorLGGetVariableNames TSSetPreStep
TSBasicSymplecticGetType TSMonitorLGSetDisplayVariables TSSetSaveTrajectory
TSBasicSymplecticSetType TSMonitorLGSetTransform TSSetTime
TSComputeIFunctionLinear TSMonitorLGSetVariableNames TSSetTimeError
TSComputeIJacobianDefaultColor TSMonitorLGSolution TSSetTimeStep
TSComputeRHSFunctionLinear TSMonitorSPEigCtxCreate TSSetType
TSComputeRHSJacobianConstant TSMonitorSPEigCtxDestroy TSSetUseSplitRHSFunction
TSEIMEXSetMaxRows TSMonitorSPSwarmSolution TSSundialsSetTolerance
TSEIMEXSetOrdAdapt TSMonitorSet TSSundialsSetType
TSEIMEXSetRowCol TSMonitorSolution TSTRAJECTORYBASIC
TSGLEEGetType TSMonitorSolutionVTK TSTRAJECTORYMEMORY
TSGLEESetType TSMonitorSolutionVTKDestroy TSTRAJECTORYSINGLEFILE
TSGLLESetAcceptType TSPseudoSetTimeStep TSTRAJECTORYVISUALIZATION
TSGLLESetType TSPythonSetType TSThetaSetEndpoint
TSGetAdapt TSRHSJacobianSetReuse TSThetaSetTheta
TSGetApplicationContext TSRHSSplitGetIS TSTrajectorySetTransform
TSGetAuxSolution TSRHSSplitSetIS TSTrajectorySetVariableNames
TSGetDM TSRKGetMultirate TSTrajectoryViewFromOptions
TSGetKSPIterations TSRKGetOrder TSViewFromOptions
TSGetOptionsPrefix TSRKGetType
TSGetRHSJacobian TSRKSetMultirate
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSBasicSymplecticRegisterAll TSPseudoTimeStepDefault
DMTSGetI2Function TSBasicSymplecticRegisterDestroy TSPseudoVerifyTimeStep
DMTSGetI2Jacobian TSComputeExactError TSPseudoVerifyTimeStepDefault
DMTSGetIFunction TSComputeIJacobianConstant TSRHSJacobianTest
DMTSGetIJacobian TSComputeInitialCondition TSRHSJacobianTestTranspose
DMTSGetRHSFunction TSEvaluateStep TSRHSSplitGetSubTS
DMTSGetRHSJacobian TSEvaluateWLTE TSRHSSplitGetSubTSs
DMTSGetSolutionFunction TSGLEE23 TSRK1FE
DMTSGetTransientVariable TSGLEE24 TSRK2A
DMTSSetForcingFunction TSGLEE25i TSRK3
DMTSSetI2Function TSGLEE35 TSRK3BS
DMTSSetI2Jacobian TSGLEEEXRK2A TSRK4
DMTSSetIFunction TSGLEERK285EX TSRK5BS
DMTSSetIFunctionSerialize TSGLEERK32G1 TSRK5DP
DMTSSetIJacobian TSGLEERegister TSRK5F
DMTSSetIJacobianSerialize TSGLEERegisterAll TSRK6VR
DMTSSetRHSFunction TSGLEERegisterDestroy TSRK7VR
DMTSSetRHSJacobian TSGLLEAcceptRegister TSRK8VR
DMTSSetSolutionFunction TSGLLEAdaptRegister TSRKRegister
DMTSSetTransientVariable TSGLLEAdaptRegisterAll TSRKRegisterAll
SNESTSFormFunction TSGLLEGetAdapt TSRKRegisterDestroy
TSARKIMEX1BEE TSGLLERegister TSRegister
TSARKIMEX2C TSGLLERegisterAll TSRegisterAll
TSARKIMEX2D TSGetCFLTime TSRestartStep
TSARKIMEX2E TSGetComputeExactError TSRollBack
TSARKIMEX3 TSGetComputeInitialCondition TSRosWRegister
TSARKIMEX4 TSGetI2Function TSRosWRegisterAll
TSARKIMEX5 TSGetI2Jacobian TSRosWRegisterDestroy
TSARKIMEXA2 TSGetIFunction TSSetComputeExactError
TSARKIMEXARS122 TSGetIJacobian TSSetComputeInitialCondition
TSARKIMEXARS443 TSGetMaxSteps TSSetConvergedReason
TSARKIMEXBPR3 TSGetMaxTime TSSetEquationType
TSARKIMEXL2 TSGetRHSFunction TSSetOptionsPrefix
TSARKIMEXPRSSP2 TSGetSolutionComponents TSSetPostEventIntervalStep
TSARKIMEXRegister TSGetStages TSSetStepNumber
TSARKIMEXRegisterAll TSGetTrajectory TSSetTransientVariable
TSARKIMEXRegisterDestroy TSMPRK2A22 TSSetUp
TSAdaptHistoryGetStep TSMPRK2A23 TSSundialsGetIterations
TSAdaptHistorySetHistory TSMPRK2A32 TSSundialsGetPC
TSAdaptHistorySetTrajectory TSMPRK2A33 TSSundialsSetGramSchmidtType
TSAdaptRegister TSMPRK3P2M TSSundialsSetLinearTolerance
TSAdaptRegisterAll TSMPRKP2 TSSundialsSetMaxl
TSAdaptSetCheckStage TSMPRKP3 TSSundialsSetMaxord
TSAdaptSetTimeStepIncreaseDelay TSMPRKRegister TSThetaGetEndpoint
TSAlpha2GetParams TSMPRKRegisterAll TSThetaGetTheta
TSAlpha2SetParams TSMPRKRegisterDestroy TSTrajectory
TSAlphaGetParams TSPseudoIncrementDtFromInitialDt TSTrajectorySetKeepFiles
TSAlphaSetParams TSPseudoSetMaxTimeStep TSTrajectorySetUseHistory
TSAppendOptionsPrefix TSPseudoSetTimeStepIncrement TSVISetVariableBounds
TSBasicSymplecticRegister TSPseudoSetVerifyTimeStep
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMCopyDMTS TSComputeIJacobian TSRKFinalizePackage
DMGetDMTS TSComputeLinearStability TSRKGetTableau
DMGetDMTSWrite TSComputeRHSFunction TSRKInitializePackage
DMPlexTSComputeBoundary TSComputeRHSJacobian TSRosWFinalizePackage
DMPlexTSComputeIFunctionFEM TSComputeSolutionFunction TSRosWInitializePackage
DMPlexTSComputeIJacobianFEM TSComputeTransientVariable TSRosWRegisterRos4
DMPlexTSComputeRHSFunctionFVM TSErrorWeightedENorm TSSSPFinalizePackage
DMPlexTSGetGeometryFVM TSErrorWeightedENorm2 TSSSPInitializePackage
DMPlexTSGetGradientDM TSErrorWeightedENormInfinity TSSetSNES
DMTSCheckFromOptions TSErrorWeightedNorm TSStep
DMTSCopy TSErrorWeightedNorm2 TSTrajectoryCreate
SNESTSFormJacobian TSErrorWeightedNormInfinity TSTrajectoryDestroy
TSADAPTHISTORY TSFinalizePackage TSTrajectoryGet
TSARKIMEXFinalizePackage TSFunctionDomainError TSTrajectoryGetNumSteps
TSARKIMEXInitializePackage TSGLEEFinalizePackage TSTrajectoryGetSolutionOnly
TSAdaptCandidateAdd TSGLEEInitializePackage TSTrajectoryGetType
TSAdaptCandidatesClear TSGLLEAdaptInitializePackage TSTrajectoryGetUpdatedHistoryVecs
TSAdaptCandidatesGet TSGLLEFinalizePackage TSTrajectoryGetVecs
TSAdaptCheckStage TSGLLEInitializePackage TSTrajectoryRegister
TSAdaptChoose TSHasTransientVariable TSTrajectoryRegisterAll
TSAdaptCreate TSInitializePackage TSTrajectoryReset
TSAdaptFinalizePackage TSMPRKFinalizePackage TSTrajectoryRestoreUpdatedHistoryVecs
TSAdaptInitializePackage TSMPRKInitializePackage TSTrajectorySet
TSAdaptReset TSMonitor TSTrajectorySetDirname
TSBasicSymplecticFinalizePackage TSMonitorSetFromOptions TSTrajectorySetFiletemplate
TSBasicSymplecticInitializePackage TSPostEvaluate TSTrajectorySetFromOptions
TSClone TSPostStage TSTrajectorySetMonitor
TSComputeForcingFunction TSPostStep TSTrajectorySetSolutionOnly
TSComputeI2Function TSPreStage TSTrajectorySetType
TSComputeI2Jacobian TSPreStep TSTrajectorySetUp
TSComputeIFunction TSPseudoComputeTimeStep TSTrajectoryView
Deprecated - Functionality scheduled for removal in future versions
TSGetDuration TSGetTotalSteps TSSetInitialTimeStep
TSGetTimeStepNumber TSSetDuration

Table of Contents