petsc-3.10.5 2019-03-28
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 TSGetRHSJacobian TSRKSetType
TS2GetSolution TSGetSNESFailures TSROSW2M
TSADAPTBASIC TSGetSNESIterations TSROSW2P
TSADAPTCFL TSGetSolution TSROSW4L
TSADAPTDSP TSGetStepNumber TSROSWASSP3P3S1C
TSADAPTGLEE TSGetStepRejections TSROSWGRK4T
TSADAPTNONE TSGetTimeError TSROSWLASSP3P4S2C
TSARKIMEXGetType TSGetTimeStep TSROSWLLSSP3P4S2C
TSARKIMEXSetFullyImplicit TSGetType TSROSWRA34PW2
TSARKIMEXSetType TSInterpolate TSROSWRA3PW
TSAdaptDSPSetFilter TSLoad TSROSWRODAS3
TSAdaptDSPSetPID TSMonitorCancel TSROSWSANDU3
TSAdaptGetClip TSMonitorDefault TSROSWSHAMP4
TSAdaptGetSafety TSMonitorDrawCtxCreate TSROSWTHETA1
TSAdaptGetStepLimits TSMonitorDrawCtxDestroy TSROSWTHETA2
TSAdaptGetType TSMonitorDrawError TSROSWVELDD4
TSAdaptLoad TSMonitorDrawSolution TSRosWGetType
TSAdaptSetAlwaysAccept TSMonitorDrawSolutionFunction TSRosWSetRecomputeJacobian
TSAdaptSetClip TSMonitorDrawSolutionPhase TSSetApplicationContext
TSAdaptSetMonitor TSMonitorEnvelope TSSetCFLTimeLocal
TSAdaptSetSafety TSMonitorEnvelopeCtxCreate TSSetDM
TSAdaptSetStepLimits TSMonitorEnvelopeCtxDestroy TSSetErrorIfStepFails
TSAdaptSetType TSMonitorEnvelopeGetBounds TSSetEventHandler
TSAlpha2SetRadius TSMonitorError TSSetFunctionDomainError
TSAlphaSetRadius TSMonitorExtreme TSSetMaxSNESFailures
TSBASICSYMPLECTICSIEULER TSMonitorLGCtxCreate TSSetMaxStepRejections
TSBASICSYMPLECTICVELVERLET TSMonitorLGCtxDestroy TSSetMaxSteps
TSBDFGetOrder TSMonitorLGCtxSetDisplayVariables TSSetMaxTime
TSBDFSetOrder TSMonitorLGCtxSetTransform TSSetPostEvaluate
TSBasicSymplecticGetType TSMonitorLGCtxSetVariableNames TSSetPostStage
TSBasicSymplecticSetType TSMonitorLGError TSSetPostStep
TSComputeIFunctionLinear TSMonitorLGGetVariableNames TSSetPreStage
TSComputeIJacobianDefaultColor TSMonitorLGSetDisplayVariables TSSetPreStep
TSComputeRHSFunctionLinear TSMonitorLGSetTransform TSSetSaveTrajectory
TSComputeRHSJacobianConstant TSMonitorLGSetVariableNames TSSetTime
TSEIMEXSetMaxRows TSMonitorLGSolution TSSetTimeError
TSEIMEXSetOrdAdapt TSMonitorSPEigCtxCreate TSSetTimeStep
TSEIMEXSetRowCol TSMonitorSPEigCtxDestroy 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 TSTrajectorySetVariableNames
TSGetOptionsPrefix TSRKGetType TSTrjactorySetTransform
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSAlphaSetParams TSPseudoVerifyTimeStep
DMTSGetI2Function TSAppendOptionsPrefix TSPseudoVerifyTimeStepDefault
DMTSGetI2Jacobian TSBasicSymplecticRegister TSRHSJacobianTest
DMTSGetIFunction TSBasicSymplecticRegisterAll TSRHSJacobianTestTranspose
DMTSGetIJacobian TSBasicSymplecticRegisterDestroy TSRHSSplitGetSubTS
DMTSGetRHSFunction TSComputeIJacobianConstant TSRHSSplitGetSubTSs
DMTSGetRHSJacobian TSEvaluateStep TSRK1FE
DMTSGetSolutionFunction TSEvaluateWLTE TSRK2A
DMTSSetForcingFunction TSFunctionDomainError TSRK3
DMTSSetI2Function TSGLEE23 TSRK3BS
DMTSSetI2Jacobian TSGLEE24 TSRK4
DMTSSetIFunction TSGLEE25i TSRK5BS
DMTSSetIFunctionSerialize TSGLEE35 TSRK5DP
DMTSSetIJacobian TSGLEEEXRK2A TSRK5F
DMTSSetIJacobianSerialize TSGLEERK285EX TSRKRegister
DMTSSetRHSFunction TSGLEERK32G1 TSRKRegisterAll
DMTSSetRHSJacobian TSGLEERegister TSRKRegisterDestroy
DMTSSetSolutionFunction TSGLEERegisterAll TSRegister
SNESTSFormFunction TSGLEERegisterDestroy TSRegisterAll
TSARKIMEX1BEE TSGLLEAcceptRegister TSRestartStep
TSARKIMEX2C TSGLLEAdaptRegister TSRollBack
TSARKIMEX2D TSGLLEAdaptRegisterAll TSRosWRegister
TSARKIMEX2E TSGLLEGetAdapt TSRosWRegisterAll
TSARKIMEX3 TSGLLERegister TSRosWRegisterDestroy
TSARKIMEX4 TSGLLERegisterAll TSSetConvergedReason
TSARKIMEX5 TSGetCFLTime TSSetEquationType
TSARKIMEXA2 TSGetI2Function TSSetOptionsPrefix
TSARKIMEXARS122 TSGetI2Jacobian TSSetStepNumber
TSARKIMEXARS443 TSGetIFunction TSSetUp
TSARKIMEXBPR3 TSGetIJacobian TSSundialsGetIterations
TSARKIMEXL2 TSGetMaxSteps TSSundialsGetPC
TSARKIMEXPRSSP2 TSGetMaxTime TSSundialsSetGramSchmidtType
TSARKIMEXRegister TSGetRHSFunction TSSundialsSetLinearTolerance
TSARKIMEXRegisterAll TSGetSolutionComponents TSSundialsSetMaxl
TSARKIMEXRegisterDestroy TSGetStages TSThetaGetEndpoint
TSAdaptRegister TSGetTrajectory TSThetaGetTheta
TSAdaptRegisterAll TSPseudoIncrementDtFromInitialDt TSTrajectory
TSAdaptSetCheckStage TSPseudoSetMaxTimeStep TSTrajectorySetKeepFiles
TSAlpha2GetParams TSPseudoSetTimeStepIncrement TSVISetVariableBounds
TSAlpha2SetParams TSPseudoSetVerifyTimeStep
TSAlphaGetParams TSPseudoTimeStepDefault
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMCopyDMTS TSComputeForcingFunction TSPostStep
DMGetDMTS TSComputeI2Function TSPreStage
DMGetDMTSWrite TSComputeI2Jacobian TSPreStep
DMPlexTSComputeBoundary TSComputeIFunction TSPseudoComputeTimeStep
DMPlexTSComputeIFunctionFEM TSComputeIJacobian TSRKFinalizePackage
DMPlexTSComputeIJacobianFEM TSComputeLinearStability TSRKInitializePackage
DMPlexTSComputeRHSFunctionFVM TSComputeRHSFunction TSRosWFinalizePackage
DMPlexTSGetGeometryFVM TSComputeRHSJacobian TSRosWInitializePackage
DMPlexTSGetGradientDM TSComputeSolutionFunction TSRosWRegisterRos4
DMTSCheckFromOptions TSErrorWeightedENorm TSSSPFinalizePackage
DMTSCopy TSErrorWeightedENorm2 TSSSPInitializePackage
SNESTSFormJacobian TSErrorWeightedENormInfinity TSSetSNES
TSARKIMEXFinalizePackage TSErrorWeightedNorm TSStep
TSARKIMEXInitializePackage TSErrorWeightedNorm2 TSTrajectoryCreate
TSAdaptCandidateAdd TSErrorWeightedNormInfinity TSTrajectoryDestroy
TSAdaptCandidatesClear TSFinalizePackage TSTrajectoryRegister
TSAdaptCandidatesGet TSGLEEFinalizePackage TSTrajectoryRegisterAll
TSAdaptCheckStage TSGLEEInitializePackage TSTrajectoryReset
TSAdaptChoose TSGLLEAdaptInitializePackage TSTrajectorySetDirname
TSAdaptCreate TSGLLEFinalizePackage TSTrajectorySetFiletemplate
TSAdaptFinalizePackage TSGLLEInitializePackage TSTrajectorySetFromOptions
TSAdaptInitializePackage TSInitializePackage TSTrajectorySetMonitor
TSAdaptReset TSMonitor TSTrajectorySetType
TSBasicSymplecticFinalizePackage TSMonitorSetFromOptions TSTrajectorySetUp
TSBasicSymplecticInitializePackage TSPostEvaluate TSTrajectoryView
TSClone TSPostStage
Deprecated - Functionality scheduled for removal in future versions
TSGetDuration TSGetTotalSteps TSSetInitialTimeStep
TSGetTimeStepNumber TSSetDuration

Table of Contents