petsc-master 2020-01-15
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 TSROSW2M
TS2GetSolution TSGetSolution TSROSW2P
TSADAPTBASIC TSGetStepNumber TSROSW4L
TSADAPTCFL TSGetStepRejections TSROSWASSP3P3S1C
TSADAPTDSP TSGetTimeError TSROSWGRK4T
TSADAPTGLEE TSGetTimeStep TSROSWLASSP3P4S2C
TSADAPTNONE TSGetType TSROSWLLSSP3P4S2C
TSARKIMEXGetFullyImplicit TSGetUseSplitRHSFunction TSROSWRA34PW2
TSARKIMEXGetType TSInterpolate TSROSWRA3PW
TSARKIMEXSetFullyImplicit TSLoad TSROSWRODAS3
TSARKIMEXSetType TSMPRKGetType TSROSWSANDU3
TSAdaptDSPSetFilter TSMPRKSetType TSROSWSHAMP4
TSAdaptDSPSetPID TSMonitorCancel TSROSWTHETA1
TSAdaptGetClip TSMonitorDefault TSROSWTHETA2
TSAdaptGetMaxIgnore TSMonitorDrawCtxCreate TSROSWVELDD4
TSAdaptGetSafety 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
TSAdaptSetStepLimits TSMonitorError TSSetMaxSNESFailures
TSAdaptSetType TSMonitorExtreme TSSetMaxStepRejections
TSAlpha2SetRadius TSMonitorLGCtxCreate TSSetMaxSteps
TSAlphaSetRadius TSMonitorLGCtxDestroy TSSetMaxTime
TSBASICSYMPLECTICSIEULER TSMonitorLGCtxSetDisplayVariables TSSetPostEvaluate
TSBASICSYMPLECTICVELVERLET TSMonitorLGCtxSetTransform TSSetPostStage
TSBDFGetOrder TSMonitorLGCtxSetVariableNames TSSetPostStep
TSBDFSetOrder TSMonitorLGError TSSetPreStage
TSBasicSymplecticGetType TSMonitorLGGetVariableNames TSSetPreStep
TSBasicSymplecticSetType TSMonitorLGSetDisplayVariables TSSetSaveTrajectory
TSComputeIFunctionLinear TSMonitorLGSetTransform TSSetTime
TSComputeIJacobianDefaultColor TSMonitorLGSetVariableNames TSSetTimeError
TSComputeRHSFunctionLinear TSMonitorLGSolution TSSetTimeStep
TSComputeRHSJacobianConstant TSMonitorSPEigCtxCreate TSSetType
TSEIMEXSetMaxRows TSMonitorSPEigCtxDestroy TSSetUseSplitRHSFunction
TSEIMEXSetOrdAdapt TSMonitorSPSwarmSolution TSSundialsSetTolerance
TSEIMEXSetRowCol TSMonitorSet TSSundialsSetType
TSGLEEGetType TSMonitorSolution TSTRAJECTORYBASIC
TSGLEESetType TSMonitorSolutionVTK TSTRAJECTORYMEMORY
TSGLLESetAcceptType TSMonitorSolutionVTKDestroy TSTRAJECTORYSINGLEFILE
TSGLLESetType TSPseudoSetTimeStep TSTRAJECTORYVISUALIZATION
TSGetAdapt TSPythonSetType TSThetaSetEndpoint
TSGetApplicationContext TSRHSJacobianSetReuse TSThetaSetTheta
TSGetAuxSolution TSRHSSplitGetIS TSTrajectorySetTransform
TSGetDM TSRHSSplitSetIS TSTrajectorySetVariableNames
TSGetKSPIterations TSRKGetMultirate TSTrajectoryViewFromOptions
TSGetOptionsPrefix TSRKGetType TSViewFromOptions
TSGetRHSJacobian TSRKSetMultirate
TSGetSNESFailures TSRKSetType
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSBasicSymplecticRegisterDestroy TSPseudoTimeStepDefault
DMTSGetI2Function TSComputeExactError TSPseudoVerifyTimeStep
DMTSGetI2Jacobian TSComputeIJacobianConstant TSPseudoVerifyTimeStepDefault
DMTSGetIFunction TSComputeInitialCondition 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 TSGetComputeExactError TSRestartStep
TSARKIMEX4 TSGetComputeInitialCondition TSRollBack
TSARKIMEX5 TSGetI2Function TSRosWRegister
TSARKIMEXA2 TSGetI2Jacobian TSRosWRegisterAll
TSARKIMEXARS122 TSGetIFunction TSRosWRegisterDestroy
TSARKIMEXARS443 TSGetIJacobian TSSetComputeExactError
TSARKIMEXBPR3 TSGetMaxSteps TSSetComputeInitialCondition
TSARKIMEXL2 TSGetMaxTime TSSetConvergedReason
TSARKIMEXPRSSP2 TSGetRHSFunction TSSetEquationType
TSARKIMEXRegister TSGetSolutionComponents TSSetOptionsPrefix
TSARKIMEXRegisterAll TSGetStages TSSetPostEventIntervalStep
TSARKIMEXRegisterDestroy TSGetTrajectory TSSetStepNumber
TSAdaptHistoryGetStep TSMPRK2A22 TSSetUp
TSAdaptHistorySetHistory TSMPRK2A23 TSSundialsGetIterations
TSAdaptHistorySetTrajectory TSMPRK2A32 TSSundialsGetPC
TSAdaptRegister TSMPRK2A33 TSSundialsSetGramSchmidtType
TSAdaptRegisterAll TSMPRK3P2M TSSundialsSetLinearTolerance
TSAdaptSetCheckStage TSMPRKP2 TSSundialsSetMaxl
TSAdaptSetTimeStepIncreaseDelay TSMPRKP3 TSThetaGetEndpoint
TSAlpha2GetParams TSMPRKRegister TSThetaGetTheta
TSAlpha2SetParams TSMPRKRegisterAll TSTrajectory
TSAlphaGetParams TSMPRKRegisterDestroy TSTrajectorySetKeepFiles
TSAlphaSetParams TSPseudoIncrementDtFromInitialDt TSTrajectorySetUseHistory
TSAppendOptionsPrefix TSPseudoSetMaxTimeStep TSVISetVariableBounds
TSBasicSymplecticRegister TSPseudoSetTimeStepIncrement
TSBasicSymplecticRegisterAll 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