petsc-3.8.4 2018-03-24
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 TSSetCostGradients
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 TSRK TSSundialsMonitorInternalSteps
TSCN TSRKType TSSundialsSetMaxTimeStep
TSConvergedReason TSROSW TSSundialsSetMinTimeStep
TSCreate TSReset TSTHETA
TSDestroy TSRosWSetType TSType
TSEIMEX TSRosWType TSView
TSEIMEXType TSSSP TS_CONVERGED_EVENT
TSEULER TSSSPGetNumStages TS_CONVERGED_ITERATING
TSEquationType TSSSPGetType TS_CONVERGED_ITS
TSExactFinalTimeOption TSSSPRKS104 TS_CONVERGED_PSEUDO_FATOL
TSForwardSetSensitivities TSSSPRKS2 TS_CONVERGED_PSEUDO_FRTOL
TSGLEE TSSSPRKS3 TS_CONVERGED_TIME
TSGLEEMode TSSSPSetNumStages TS_CONVERGED_USER
TSGLEEType TSSSPSetType TS_DIVERGED_NONLINEAR_SOLVE
TSGLLE TSSSPType TS_DIVERGED_STEP_REJECTED
TSGLLEAcceptType TSSUNDIALS
Intermediate - Setting options for algorithms and data structures
DMTSSetBoundaryLocal TSGetAdapt TSRKSetType
TS2GetSolution TSGetApplicationContext TSROSW2M
TSADAPTBASIC TSGetAuxSolution TSROSW2P
TSADAPTCFL TSGetCostGradients TSROSW4L
TSADAPTDSP TSGetCostIntegral TSROSWASSP3P3S1C
TSADAPTGLEE TSGetDM TSROSWGRK4T
TSADAPTNONE TSGetKSPIterations TSROSWLASSP3P4S2C
TSARKIMEXGetType TSGetOptionsPrefix TSROSWLLSSP3P4S2C
TSARKIMEXSetFullyImplicit TSGetRHSJacobian TSROSWRA34PW2
TSARKIMEXSetType TSGetSNESFailures TSROSWRA3PW
TSAdaptDSPSetFilter TSGetSNESIterations TSROSWRODAS3
TSAdaptDSPSetPID TSGetSolution TSROSWSANDU3
TSAdaptGetClip TSGetStepNumber TSROSWSHAMP4
TSAdaptGetSafety TSGetStepRejections TSROSWTHETA1
TSAdaptGetStepLimits TSGetTimeError TSROSWTHETA2
TSAdaptGetType TSGetTimeStep TSROSWVELDD4
TSAdaptLoad TSGetType TSRosWGetType
TSAdaptSetAlwaysAccept TSInterpolate TSRosWSetRecomputeJacobian
TSAdaptSetClip TSLoad TSSetApplicationContext
TSAdaptSetMonitor TSMonitorCancel TSSetCFLTimeLocal
TSAdaptSetSafety TSMonitorDefault TSSetCostIntegrand
TSAdaptSetStepLimits TSMonitorDrawCtxCreate TSSetDM
TSAdaptSetType TSMonitorDrawCtxDestroy TSSetErrorIfStepFails
TSAdjointMonitorCancel TSMonitorDrawError TSSetEventHandler
TSAdjointMonitorDefault TSMonitorDrawSolution TSSetFunctionDomainError
TSAdjointMonitorDrawSensi TSMonitorDrawSolutionPhase TSSetMaxSNESFailures
TSAdjointMonitorSensi TSMonitorEnvelope TSSetMaxStepRejections
TSAdjointMonitorSet TSMonitorEnvelopeCtxCreate TSSetMaxSteps
TSAdjointSetRHSJacobian TSMonitorEnvelopeCtxDestroy TSSetMaxTime
TSAdjointSetSteps TSMonitorEnvelopeGetBounds TSSetPostEvaluate
TSAdjointSolve TSMonitorLGCtxCreate TSSetPostStage
TSAdjointStep TSMonitorLGCtxDestroy TSSetPostStep
TSAlpha2SetRadius TSMonitorLGCtxSetDisplayVariables TSSetPreStage
TSAlphaSetRadius TSMonitorLGCtxSetTransform TSSetPreStep
TSBDFGetOrder TSMonitorLGCtxSetVariableNames TSSetSaveTrajectory
TSBDFSetOrder TSMonitorLGError TSSetTime
TSComputeIFunctionLinear TSMonitorLGGetVariableNames TSSetTimeError
TSComputeIJacobianDefaultColor TSMonitorLGSetDisplayVariables TSSetTimeStep
TSComputeRHSFunctionLinear TSMonitorLGSetTransform TSSetType
TSComputeRHSJacobianConstant TSMonitorLGSetVariableNames TSSundialsSetTolerance
TSEIMEXSetMaxRows TSMonitorLGSolution TSSundialsSetType
TSEIMEXSetOrdAdapt TSMonitorSPEigCtxCreate TSTRAJECTORYBASIC
TSEIMEXSetRowCol TSMonitorSPEigCtxDestroy TSTRAJECTORYMEMORY
TSForwardGetIntegralGradients TSMonitorSet TSTRAJECTORYSINGLEFILE
TSForwardGetSensitivities TSMonitorSolution TSTRAJECTORYVISUALIZATION
TSForwardSetIntegralGradients TSMonitorSolutionVTK TSThetaSetEndpoint
TSForwardSetRHSJacobianP TSMonitorSolutionVTKDestroy TSThetaSetTheta
TSGLEEGetType TSPseudoSetTimeStep TSTrajectorySetVariableNames
TSGLEESetType TSPythonSetType TSTrjactorySetTransform
TSGLLESetAcceptType TSRHSJacobianSetReuse
TSGLLESetType TSRKGetType
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSAlpha2GetParams TSPseudoSetMaxTimeStep
DMTSGetI2Function TSAlpha2SetParams TSPseudoSetTimeStepIncrement
DMTSGetI2Jacobian TSAlphaGetParams TSPseudoSetVerifyTimeStep
DMTSGetIFunction TSAlphaSetParams TSPseudoTimeStepDefault
DMTSGetIJacobian TSAppendOptionsPrefix TSPseudoVerifyTimeStep
DMTSGetRHSFunction TSComputeIJacobianConstant TSPseudoVerifyTimeStepDefault
DMTSGetRHSJacobian TSEvaluateStep TSRK1FE
DMTSGetSolutionFunction TSEvaluateWLTE TSRK2A
DMTSSetForcingFunction TSForwardCostIntegral TSRK3
DMTSSetI2Function TSForwardSetUp TSRK3BS
DMTSSetI2Jacobian TSForwardStep TSRK4
DMTSSetIFunction TSFunctionDomainError TSRK5BS
DMTSSetIFunctionSerialize TSGLEE23 TSRK5DP
DMTSSetIJacobian TSGLEE24 TSRK5F
DMTSSetIJacobianSerialize TSGLEE25i TSRKRegister
DMTSSetRHSFunction TSGLEE35 TSRKRegisterAll
DMTSSetRHSJacobian TSGLEEEXRK2A TSRKRegisterDestroy
DMTSSetSolutionFunction TSGLEERK285EX TSRegister
SNESTSFormFunction TSGLEERK32G1 TSRegisterAll
TSARKIMEX1BEE TSGLEERegister TSRestartStep
TSARKIMEX2C TSGLEERegisterAll TSRollBack
TSARKIMEX2D TSGLEERegisterDestroy TSRosWRegister
TSARKIMEX2E TSGLLEAcceptRegister TSRosWRegisterAll
TSARKIMEX3 TSGLLEAdaptRegister TSRosWRegisterDestroy
TSARKIMEX4 TSGLLEAdaptRegisterAll TSSetConvergedReason
TSARKIMEX5 TSGLLEGetAdapt TSSetEquationType
TSARKIMEXA2 TSGLLERegister TSSetOptionsPrefix
TSARKIMEXARS122 TSGLLERegisterAll TSSetStepNumber
TSARKIMEXARS443 TSGetCFLTime TSSetUp
TSARKIMEXBPR3 TSGetI2Function TSSundialsGetIterations
TSARKIMEXL2 TSGetI2Jacobian TSSundialsGetPC
TSARKIMEXPRSSP2 TSGetIFunction TSSundialsSetGramSchmidtType
TSARKIMEXRegister TSGetIJacobian TSSundialsSetLinearTolerance
TSARKIMEXRegisterAll TSGetMaxSteps TSSundialsSetMaxl
TSARKIMEXRegisterDestroy TSGetMaxTime TSThetaGetEndpoint
TSAdaptRegister TSGetRHSFunction TSThetaGetTheta
TSAdaptRegisterAll TSGetSolutionComponents TSTrajectory
TSAdaptSetCheckStage TSGetStages TSVISetVariableBounds
TSAdjointCostIntegral TSGetTrajectory
TSAdjointSetUp TSPseudoIncrementDtFromInitialDt
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMCopyDMTS TSAdjointMonitorSetFromOptions TSMonitor
DMGetDMTS TSClone TSMonitorSetFromOptions
DMGetDMTSWrite TSComputeCostIntegrand TSPostEvaluate
DMPlexTSComputeBoundary TSComputeForcingFunction TSPostStage
DMPlexTSComputeIFunctionFEM TSComputeI2Function TSPostStep
DMPlexTSComputeIJacobianFEM TSComputeI2Jacobian TSPreStage
DMPlexTSComputeRHSFunctionFVM TSComputeIFunction TSPreStep
DMPlexTSGetGeometryFVM TSComputeIJacobian TSPseudoComputeTimeStep
DMPlexTSGetGradientDM TSComputeLinearStability TSRKFinalizePackage
DMTSCopy TSComputeRHSFunction TSRKInitializePackage
SNESTSFormJacobian TSComputeRHSJacobian TSRosWFinalizePackage
TSARKIMEXFinalizePackage TSComputeSolutionFunction TSRosWInitializePackage
TSARKIMEXInitializePackage TSErrorWeightedENorm TSRosWRegisterRos4
TSAdaptCandidateAdd TSErrorWeightedENorm2 TSSSPFinalizePackage
TSAdaptCandidatesClear TSErrorWeightedENormInfinity TSSSPInitializePackage
TSAdaptCandidatesGet TSErrorWeightedNorm TSSetSNES
TSAdaptCheckStage TSErrorWeightedNorm2 TSStep
TSAdaptChoose TSErrorWeightedNormInfinity TSTrajectoryCreate
TSAdaptCreate TSFinalizePackage TSTrajectoryDestroy
TSAdaptFinalizePackage TSForwardComputeRHSJacobianP TSTrajectoryRegister
TSAdaptInitializePackage TSGLEEFinalizePackage TSTrajectoryRegisterAll
TSAdaptReset TSGLEEInitializePackage TSTrajectorySetFromOptions
TSAdjointComputeDRDPFunction TSGLLEAdaptInitializePackage TSTrajectorySetMonitor
TSAdjointComputeDRDYFunction TSGLLEFinalizePackage TSTrajectorySetType
TSAdjointComputeRHSJacobian TSGLLEInitializePackage TSTrajectorySetUp
TSAdjointMonitor TSInitializePackage TSTrajectoryView
Deprecated - Functionality scheduled for removal in future versions
TSGetDuration TSGetTotalSteps TSSetInitialTimeStep
TSGetTimeStepNumber TSSetDuration

Table of Contents