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

Table of Contents