petsc-dev 2013-05-13

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

Table of Contents