petsc-3.8.0 2017-09-26
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 TSGetAuxSolution TSROSW2M
TS2GetSolution TSGetCostGradients TSROSW2P
TSADAPTBASIC TSGetCostIntegral TSROSW4L
TSADAPTCFL TSGetDM TSROSWASSP3P3S1C
TSADAPTGLEE TSGetKSPIterations TSROSWGRK4T
TSADAPTNONE TSGetOptionsPrefix TSROSWLASSP3P4S2C
TSARKIMEXGetType TSGetRHSJacobian TSROSWLLSSP3P4S2C
TSARKIMEXSetFullyImplicit TSGetSNESFailures TSROSWRA34PW2
TSARKIMEXSetType TSGetSNESIterations TSROSWRA3PW
TSAdaptGetClip TSGetSolution TSROSWRODAS3
TSAdaptGetSafety TSGetStepNumber TSROSWSANDU3
TSAdaptGetStepLimits TSGetStepRejections TSROSWSHAMP4
TSAdaptGetType TSGetTimeError TSROSWTHETA1
TSAdaptLoad TSGetTimeStep TSROSWTHETA2
TSAdaptSetAlwaysAccept TSGetType TSROSWVELDD4
TSAdaptSetClip TSInterpolate TSRosWGetType
TSAdaptSetMonitor TSLoad TSRosWSetRecomputeJacobian
TSAdaptSetSafety TSMonitorCancel TSSetApplicationContext
TSAdaptSetStepLimits TSMonitorDefault TSSetCFLTimeLocal
TSAdaptSetType TSMonitorDrawCtxCreate TSSetCostIntegrand
TSAdjointMonitorCancel TSMonitorDrawCtxDestroy TSSetDM
TSAdjointMonitorDefault TSMonitorDrawError TSSetErrorIfStepFails
TSAdjointMonitorDrawSensi TSMonitorDrawSolution TSSetEventHandler
TSAdjointMonitorSensi TSMonitorDrawSolutionPhase TSSetFunctionDomainError
TSAdjointMonitorSet TSMonitorEnvelope TSSetMaxSNESFailures
TSAdjointSetRHSJacobian TSMonitorEnvelopeCtxCreate TSSetMaxStepRejections
TSAdjointSetSteps TSMonitorEnvelopeCtxDestroy TSSetMaxSteps
TSAdjointSolve TSMonitorEnvelopeGetBounds TSSetMaxTime
TSAdjointStep TSMonitorLGCtxCreate TSSetPostEvaluate
TSAlpha2SetRadius TSMonitorLGCtxDestroy TSSetPostStage
TSAlphaSetRadius TSMonitorLGCtxSetDisplayVariables TSSetPostStep
TSBDFGetOrder TSMonitorLGCtxSetTransform TSSetPreStage
TSBDFSetOrder TSMonitorLGCtxSetVariableNames TSSetPreStep
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
TSForwardSetRHSJacobianP TSMonitorSolutionVTK TSTRAJECTORYVISUALIZATION
TSGLEEGetType TSMonitorSolutionVTKDestroy TSThetaSetEndpoint
TSGLEESetType TSPseudoSetTimeStep TSThetaSetTheta
TSGLLESetAcceptType TSPythonSetType TSTrajectorySetVariableNames
TSGLLESetType TSRHSJacobianSetReuse TSTrjactorySetTransform
TSGetAdapt TSRKGetType
TSGetApplicationContext TSRKSetType
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSAdjointSetUp TSGetTrajectory
DMTSGetI2Function TSAlpha2GetParams TSPseudoIncrementDtFromInitialDt
DMTSGetI2Jacobian TSAlpha2SetParams TSPseudoSetMaxTimeStep
DMTSGetIFunction TSAlphaGetParams TSPseudoSetTimeStepIncrement
DMTSGetIJacobian TSAlphaSetParams TSPseudoSetVerifyTimeStep
DMTSGetRHSFunction TSAppendOptionsPrefix TSPseudoTimeStepDefault
DMTSGetRHSJacobian TSComputeIJacobianConstant TSPseudoVerifyTimeStep
DMTSGetSolutionFunction TSEvaluateStep TSPseudoVerifyTimeStepDefault
DMTSSetForcingFunction TSEvaluateWLTE TSRK1FE
DMTSSetI2Function TSForwardCostIntegral TSRK2A
DMTSSetI2Jacobian TSForwardSetUp TSRK3
DMTSSetIFunction TSForwardStep TSRK3BS
DMTSSetIFunctionSerialize TSFunctionDomainError TSRK4
DMTSSetIJacobian TSGLEE23 TSRK5BS
DMTSSetIJacobianSerialize TSGLEE24 TSRK5DP
DMTSSetRHSFunction TSGLEE25i TSRK5F
DMTSSetRHSJacobian TSGLEE35 TSRKRegister
DMTSSetSolutionFunction TSGLEEEXRK2A TSRKRegisterAll
SNESTSFormFunction TSGLEERK285EX TSRKRegisterDestroy
TSARKIMEX1BEE TSGLEERK32G1 TSRegister
TSARKIMEX2C TSGLEERegister TSRegisterAll
TSARKIMEX2D TSGLEERegisterAll TSRollBack
TSARKIMEX2E TSGLEERegisterDestroy TSRosWRegister
TSARKIMEX3 TSGLLEAcceptRegister TSRosWRegisterAll
TSARKIMEX4 TSGLLEAdaptRegister TSRosWRegisterDestroy
TSARKIMEX5 TSGLLEAdaptRegisterAll TSSetConvergedReason
TSARKIMEXA2 TSGLLEGetAdapt TSSetEquationType
TSARKIMEXARS122 TSGLLERegister TSSetOptionsPrefix
TSARKIMEXARS443 TSGLLERegisterAll TSSetStepNumber
TSARKIMEXBPR3 TSGetCFLTime TSSetUp
TSARKIMEXL2 TSGetI2Function TSSundialsGetIterations
TSARKIMEXPRSSP2 TSGetI2Jacobian TSSundialsGetPC
TSARKIMEXRegister TSGetIFunction TSSundialsSetGramSchmidtType
TSARKIMEXRegisterAll TSGetIJacobian TSSundialsSetLinearTolerance
TSARKIMEXRegisterDestroy TSGetMaxSteps TSSundialsSetMaxl
TSAdaptRegister TSGetMaxTime TSThetaGetEndpoint
TSAdaptRegisterAll TSGetRHSFunction TSThetaGetTheta
TSAdaptSetCheckStage TSGetSolutionComponents TSTrajectory
TSAdjointCostIntegral TSGetStages TSVISetVariableBounds
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