petsc-master 2018-06-18
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 TSROSW4L
TS2GetSolution TSGetSolution TSROSWASSP3P3S1C
TSADAPTBASIC TSGetStepNumber TSROSWGRK4T
TSADAPTCFL TSGetStepRejections TSROSWLASSP3P4S2C
TSADAPTDSP TSGetTimeError TSROSWLLSSP3P4S2C
TSADAPTGLEE TSGetTimeStep TSROSWRA34PW2
TSADAPTNONE TSGetType TSROSWRA3PW
TSARKIMEXGetType TSInterpolate TSROSWRODAS3
TSARKIMEXSetFullyImplicit TSLoad TSROSWSANDU3
TSARKIMEXSetType TSMonitorCancel TSROSWSHAMP4
TSAdaptDSPSetFilter TSMonitorDefault TSROSWTHETA1
TSAdaptDSPSetPID TSMonitorDrawCtxCreate TSROSWTHETA2
TSAdaptGetClip TSMonitorDrawCtxDestroy TSROSWVELDD4
TSAdaptGetSafety TSMonitorDrawError TSRosWGetType
TSAdaptGetStepLimits TSMonitorDrawSolution TSRosWSetRecomputeJacobian
TSAdaptGetType TSMonitorDrawSolutionFunction TSSetApplicationContext
TSAdaptLoad TSMonitorDrawSolutionPhase TSSetCFLTimeLocal
TSAdaptSetAlwaysAccept TSMonitorEnvelope TSSetDM
TSAdaptSetClip TSMonitorEnvelopeCtxCreate TSSetErrorIfStepFails
TSAdaptSetMonitor TSMonitorEnvelopeCtxDestroy TSSetEventHandler
TSAdaptSetSafety TSMonitorEnvelopeGetBounds TSSetFunctionDomainError
TSAdaptSetStepLimits TSMonitorError TSSetMaxSNESFailures
TSAdaptSetType TSMonitorLGCtxCreate TSSetMaxStepRejections
TSAlpha2SetRadius TSMonitorLGCtxDestroy TSSetMaxSteps
TSAlphaSetRadius TSMonitorLGCtxSetDisplayVariables TSSetMaxTime
TSBDFGetOrder TSMonitorLGCtxSetTransform TSSetPostEvaluate
TSBDFSetOrder TSMonitorLGCtxSetVariableNames TSSetPostStage
TSComputeIFunctionLinear TSMonitorLGError TSSetPostStep
TSComputeIJacobianDefaultColor TSMonitorLGGetVariableNames TSSetPreStage
TSComputeRHSFunctionLinear TSMonitorLGSetDisplayVariables TSSetPreStep
TSComputeRHSJacobianConstant TSMonitorLGSetTransform TSSetSaveTrajectory
TSEIMEXSetMaxRows TSMonitorLGSetVariableNames TSSetTime
TSEIMEXSetOrdAdapt TSMonitorLGSolution TSSetTimeError
TSEIMEXSetRowCol TSMonitorSPEigCtxCreate TSSetTimeStep
TSGLEEGetType TSMonitorSPEigCtxDestroy TSSetType
TSGLEESetType TSMonitorSet TSSundialsSetTolerance
TSGLLESetAcceptType TSMonitorSolution TSSundialsSetType
TSGLLESetType TSMonitorSolutionVTK TSTRAJECTORYBASIC
TSGetAdapt TSMonitorSolutionVTKDestroy TSTRAJECTORYMEMORY
TSGetApplicationContext TSPseudoSetTimeStep TSTRAJECTORYSINGLEFILE
TSGetAuxSolution TSPythonSetType TSTRAJECTORYVISUALIZATION
TSGetDM TSRHSJacobianSetReuse TSThetaSetEndpoint
TSGetKSPIterations TSRKGetType TSThetaSetTheta
TSGetOptionsPrefix TSRKSetType TSTrajectorySetVariableNames
TSGetRHSJacobian TSROSW2M TSTrjactorySetTransform
TSGetSNESFailures TSROSW2P
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 TSTrajectorySetDirname
TSAdaptChoose TSGLLEFinalizePackage TSTrajectorySetFiletemplate
TSAdaptCreate TSGLLEInitializePackage TSTrajectorySetFromOptions
TSAdaptFinalizePackage TSInitializePackage TSTrajectorySetMonitor
TSAdaptInitializePackage TSMonitor TSTrajectorySetType
TSAdaptReset TSMonitorSetFromOptions TSTrajectorySetUp
TSClone TSPostEvaluate TSTrajectoryView
TSComputeForcingFunction TSPostStage
TSComputeI2Function TSPostStep
Deprecated - Functionality scheduled for removal in future versions
TSGetDuration TSGetTotalSteps TSSetInitialTimeStep
TSGetTimeStepNumber TSSetDuration

Table of Contents