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

Table of Contents