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

Table of Contents