petsc-master 2019-08-17
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 TSPseudoSetVerifyTimeStep
DMTSGetI2Function TSBasicSymplecticRegisterAll TSPseudoTimeStepDefault
DMTSGetI2Jacobian TSBasicSymplecticRegisterDestroy TSPseudoVerifyTimeStep
DMTSGetIFunction TSComputeIJacobianConstant TSPseudoVerifyTimeStepDefault
DMTSGetIJacobian TSEvaluateStep TSRHSJacobianTest
DMTSGetRHSFunction TSEvaluateWLTE TSRHSJacobianTestTranspose
DMTSGetRHSJacobian TSFunctionDomainError TSRHSSplitGetSubTS
DMTSGetSolutionFunction TSGLEE23 TSRHSSplitGetSubTSs
DMTSSetForcingFunction TSGLEE24 TSRK1FE
DMTSSetI2Function TSGLEE25i TSRK2A
DMTSSetI2Jacobian TSGLEE35 TSRK3
DMTSSetIFunction TSGLEEEXRK2A TSRK3BS
DMTSSetIFunctionSerialize TSGLEERK285EX TSRK4
DMTSSetIJacobian TSGLEERK32G1 TSRK5BS
DMTSSetIJacobianSerialize TSGLEERegister TSRK5DP
DMTSSetRHSFunction TSGLEERegisterAll TSRK5F
DMTSSetRHSJacobian TSGLEERegisterDestroy TSRK6VR
DMTSSetSolutionFunction TSGLLEAcceptRegister TSRK7VR
SNESTSFormFunction TSGLLEAdaptRegister TSRK8VR
TSARKIMEX1BEE TSGLLEAdaptRegisterAll TSRKRegister
TSARKIMEX2C TSGLLEGetAdapt TSRKRegisterAll
TSARKIMEX2D TSGLLERegister TSRKRegisterDestroy
TSARKIMEX2E TSGLLERegisterAll TSRegister
TSARKIMEX3 TSGetCFLTime TSRegisterAll
TSARKIMEX4 TSGetI2Function TSRestartStep
TSARKIMEX5 TSGetI2Jacobian TSRollBack
TSARKIMEXA2 TSGetIFunction TSRosWRegister
TSARKIMEXARS122 TSGetIJacobian TSRosWRegisterAll
TSARKIMEXARS443 TSGetMaxSteps TSRosWRegisterDestroy
TSARKIMEXBPR3 TSGetMaxTime TSSetConvergedReason
TSARKIMEXL2 TSGetRHSFunction TSSetEquationType
TSARKIMEXPRSSP2 TSGetSolutionComponents TSSetOptionsPrefix
TSARKIMEXRegister TSGetStages TSSetPostEventIntervalStep
TSARKIMEXRegisterAll TSGetTrajectory TSSetStepNumber
TSARKIMEXRegisterDestroy TSMPRK2A22 TSSetUp
TSAdaptHistoryGetStep TSMPRK2A23 TSSundialsGetIterations
TSAdaptHistorySetHistory TSMPRK2A32 TSSundialsGetPC
TSAdaptHistorySetTrajectory TSMPRK2A33 TSSundialsSetGramSchmidtType
TSAdaptRegister TSMPRK3P2M TSSundialsSetLinearTolerance
TSAdaptRegisterAll TSMPRKP2 TSSundialsSetMaxl
TSAdaptSetCheckStage TSMPRKP3 TSThetaGetEndpoint
TSAdaptSetTimeStepIncreaseDelay TSMPRKRegister TSThetaGetTheta
TSAlpha2GetParams TSMPRKRegisterAll TSTrajectory
TSAlpha2SetParams TSMPRKRegisterDestroy TSTrajectorySetKeepFiles
TSAlphaGetParams TSPseudoIncrementDtFromInitialDt TSTrajectorySetUseHistory
TSAlphaSetParams TSPseudoSetMaxTimeStep TSVISetVariableBounds
TSAppendOptionsPrefix TSPseudoSetTimeStepIncrement
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