petsc-3.4.2 2013-07-02

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

Table of Contents