petsc-dev 2014-07-22
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 TSEIMEXType TSSetForcingFunction
DMDATSSetIJacobianLocal TSEquationType TSSetFromOptions
DMDATSSetRHSFunctionLocal TSEULER TSSetIFunction
DMDATSSetRHSJacobianLocal TSExactFinalTimeOption TSSetIJacobian
DMPlexTSSetRHSFunctionLocal TSGetConvergedReason TSSetProblemType
DMTSSetIFunctionLocal TSGetEquationType TSSetRHSFunction
DMTSSetIJacobianLocal TSGetKSP TSSetRHSJacobian
DMTSSetRHSFunctionLocal TSGetProblemType TSSetSolutionFunction
EIMEX TSGetSNES TSSetSolution
TSAdapt TSGetSolveTime TSSetTolerances
TSAdaptType TSGetTime TSSolve
TSALPHA TSGetTolerances TSSSPGetNumStages
TSARKIMEX TSGLAcceptType TSSSPGetType
TSARKIMEXType TSGLAdapt TSSSP
TSBEULER TSGLAdaptType TSSSPRKS104
TSCN TSGL TSSSPRKS2
TS_CONVERGED_EVENT TSGLType TSSSPRKS3
TS_CONVERGED_ITERATING TS TSSSPSetNumStages
TS_CONVERGED_ITS TSProblemType TSSSPSetType
TSConvergedReason TSPSEUDO TSSSPType
TS_CONVERGED_TIME TSReset TSSUNDIALS
TS_CONVERGED_USER TSRK TSSundialsMonitorInternalSteps
TSCreate TSRKType TSSundialsSetMaxTimeStep
TSDestroy TSROSW TSSundialsSetMinTimeStep
TS_DIVERGED_NONLINEAR_SOLVE TSRosWSetType TSTHETA
TS_DIVERGED_STEP_REJECTED TSRosWType TSType
TSEIMEX TSSetExactFinalTime TSView
Intermediate - Setting options for algorithms and data structures
TSADAPTBASIC TSGLSetType TSROSWLLSSP3P4S2C
TSADAPTCFL TSInterpolate TSROSWRA34PW2
TSAdaptLoad TSLoad TSROSWRA3PW
TSADAPTNONE TSMonitorCancel TSROSWRODAS3
TSAdaptSetMonitor TSMonitorDefault TSROSWSANDU3
TSAdaptSetStepLimits TSMonitorDrawCtxCreate TSRosWSetRecomputeJacobian
TSAlphaSetAdapt TSMonitorDrawCtxDestroy TSROSWSHAMP4
TSAlphaSetRadius TSMonitorDrawError TSROSWTHETA1
TSARKIMEXGetType TSMonitorDrawSolution TSROSWTHETA2
TSARKIMEXSetFullyImplicit TSMonitorDrawSolutionPhase TSROSWVELDD4
TSARKIMEXSetType TSMonitorLGCtxCreate TSSetApplicationContext
TSComputeIFunctionLinear TSMonitorLGCtxDestroy TSSetCFLTimeLocal
TSComputeRHSFunctionLinear TSMonitorLGError TSSetDM
TSComputeRHSJacobianConstant TSMonitorLGSolution TSSetDuration
TSEIMEXSetMaxRows TSMonitorSet TSSetErrorIfStepFails
TSEIMEXSetOrdAdapt TSMonitorSolutionBinary TSSetEventMonitor
TSEIMEXSetRowCol TSMonitorSolutionVTKDestroy TSSetInitialTimeStep
TSGetAdapt TSMonitorSolutionVTK TSSetMaxSNESFailures
TSGetApplicationContext TSMonitorSPEigCtxCreate TSSetMaxStepRejections
TSGetDM TSMonitorSPEigCtxDestroy TSSetPostStage
TSGetDuration TSPseudoSetTimeStep TSSetPostStep
TSGetKSPIterations TSPythonSetType TSSetPreStage
TSGetOptionsPrefix TSRHSJacobianSetReuse TSSetPreStep
TSGetRHSJacobian TSRKGetType TSSetRetainStages
TSGetSNESFailures TSRKSetType TSSetTime
TSGetSNESIterations TSROSW2M TSSetTimeStep
TSGetSolution TSROSW2P TSSetType
TSGetStepRejections TSROSW4L TSStep
TSGetTimeStep TSROSWASSP3P3S1C TSSundialsSetTolerance
TSGetTimeStepNumber TSRosWGetType TSSundialsSetType
TSGetType TSROSWGRK4T TSThetaSetEndpoint
TSGLSetAcceptType TSROSWLASSP3P4S2C TSThetaSetTheta
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSARKIMEXA2 TSRegisterAll
DMTSGetIFunction TSARKIMEXARS122 TSRegister
DMTSGetIJacobian TSARKIMEXARS443 TSRK1
DMTSGetRHSFunction TSARKIMEXBPR3 TSRK2A
DMTSGetRHSJacobian TSARKIMEXL2 TSRK3BS
DMTSGetSolutionFunction TSARKIMEXPRSSP2 TSRK3
DMTSSetForcingFunction TSARKIMEXRegisterAll TSRK4
DMTSSetIFunction TSARKIMEXRegisterDestroy TSRK5DP
DMTSSetIFunctionSerialize TSARKIMEXRegister TSRK5F
DMTSSetIJacobian TSComputeIJacobianConstant TSRKRegisterAll
DMTSSetIJacobianSerialize TSEvaluateStep TSRKRegisterDestroy
DMTSSetRHSFunction TSGetCFLTime TSRKRegister
DMTSSetRHSJacobian TSGetIFunction TSRollBack
DMTSSetSolutionFunction TSGetIJacobian TSRosWRegisterAll
SNESTSFormFunction TSGetRHSFunction TSRosWRegisterDestroy
TSAdaptRegisterAll TSGLAcceptRegister TSRosWRegister
TSAdaptRegister TSGLAdaptRegisterAll TSSetConvergedReason
TSAdaptSetCheckStage TSGLAdaptRegister TSSetEquationType
TSAdaptSetFromOptions TSGLGetAdapt TSSetOptionsPrefix
TSAlphaGetParams TSGLRegisterAll TSSetUp
TSAlphaSetParams TSGLRegister TSSundialsGetIterations
TSAppendOptionsPrefix TSMonitor TSSundialsGetPC
TSARKIMEX1BEE TSPseudoIncrementDtFromInitialDt TSSundialsSetGramSchmidtType
TSARKIMEX2C TSPseudoSetMaxTimeStep TSSundialsSetLinearTolerance
TSARKIMEX2D TSPseudoSetTimeStepIncrement TSSundialsSetMaxl
TSARKIMEX2E TSPseudoSetVerifyTimeStep TSThetaGetEndpoint
TSARKIMEX3 TSPseudoTimeStepDefault TSThetaGetTheta
TSARKIMEX4 TSPseudoVerifyTimeStepDefault TSVISetVariableBounds
TSARKIMEX5 TSPseudoVerifyTimeStep
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMCopyDMTS TSARKIMEXInitializePackage TSPostStage
DMGetDMTS TSComputeForcingFunction TSPostStep
DMGetDMTSWrite TSComputeIFunction TSPreStage
DMPlexTSGetGeometry TSComputeIJacobian TSPreStep
DMTSCopy TSComputeLinearStability TSPseudoComputeTimeStep
SNESTSFormJacobian TSComputeRHSFunction TSRKFinalizePackage
TSAdaptCandidateAdd TSComputeRHSJacobian TSRKInitializePackage
TSAdaptCandidatesClear TSComputeSolutionFunction TSRosWFinalizePackage
TSAdaptCandidatesGet TSErrorNormWRMS TSRosWInitializePackage
TSAdaptCheckStage TSFinalizePackage TSRosWRegisterRos4
TSAdaptChoose TSGLAdaptInitializePackage TSSetSNES
TSAdaptCreate TSGLFinalizePackage TSSSPFinalizePackage
TSAdaptInitializePackage TSGLInitializePackage TSSSPInitializePackage
TSARKIMEXFinalizePackage TSInitializePackage
No deprecated routines

Table of Contents