petsc-3.6.4 2016-04-12
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 TSGetConvergedReason TSSetCostGradients
DMDATSSetIJacobianLocal TSGetEquationType TSSetEventTolerances
DMDATSSetRHSFunctionLocal TSGetKSP TSSetExactFinalTime
DMDATSSetRHSJacobianLocal TSGetPrevTime TSSetForcingFunction
DMTSSetIFunctionLocal TSGetProblemType TSSetFromOptions
DMTSSetIJacobianLocal TSGetSNES TSSetIFunction
DMTSSetRHSFunctionLocal TSGetSolveTime TSSetIJacobian
EIMEX TSGetTime TSSetProblemType
TS TSGetTolerances TSSetRHSFunction
TSALPHA TSGetTotalSteps TSSetRHSJacobian
TSARKIMEX TSMIMEX TSSetSolution
TSARKIMEXType TSPSEUDO TSSetSolutionFunction
TSAdapt TSProblemType TSSetTolerances
TSAdaptType TSRK TSSolve
TSBEULER TSRKType TSSundialsMonitorInternalSteps
TSCN TSROSW TSSundialsSetMaxTimeStep
TSConvergedReason TSReset TSSundialsSetMinTimeStep
TSCreate TSRosWSetType TSTHETA
TSDestroy TSRosWType TSTrajectoryView
TSEIMEX TSSSP TSType
TSEIMEXType TSSSPGetNumStages TSView
TSEULER TSSSPGetType TS_CONVERGED_EVENT
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 TSROSWLASSP3P4S2C
TSADAPTCFL TSLoad TSROSWLLSSP3P4S2C
TSADAPTNONE TSMonitorCancel TSROSWRA34PW2
TSARKIMEXGetType TSMonitorDefault TSROSWRA3PW
TSARKIMEXSetFullyImplicit TSMonitorDrawCtxCreate TSROSWRODAS3
TSARKIMEXSetType TSMonitorDrawCtxDestroy TSROSWSANDU3
TSAdaptLoad TSMonitorDrawError TSROSWSHAMP4
TSAdaptSetMonitor TSMonitorDrawSolution TSROSWTHETA1
TSAdaptSetStepLimits TSMonitorDrawSolutionPhase TSROSWTHETA2
TSAdjointSetRHSJacobian TSMonitorEnvelope TSROSWVELDD4
TSAdjointSetSteps TSMonitorEnvelopeCtxCreate TSRosWGetType
TSAdjointSolve TSMonitorEnvelopeCtxDestroy TSRosWSetRecomputeJacobian
TSAdjointStep TSMonitorEnvelopeGetBounds TSSetApplicationContext
TSAlphaSetAdapt TSMonitorLGCtxCreate TSSetCFLTimeLocal
TSAlphaSetRadius TSMonitorLGCtxDestroy TSSetCostIntegrand
TSComputeIFunctionLinear TSMonitorLGCtxSetDisplayVariables TSSetDM
TSComputeIJacobianDefaultColor TSMonitorLGCtxSetTransform TSSetDuration
TSComputeRHSFunctionLinear TSMonitorLGCtxSetVariableNames TSSetErrorIfStepFails
TSComputeRHSJacobianConstant TSMonitorLGError TSSetEventMonitor
TSEIMEXSetMaxRows TSMonitorLGGetVariableNames TSSetInitialTimeStep
TSEIMEXSetOrdAdapt TSMonitorLGSetDisplayVariables TSSetMaxSNESFailures
TSEIMEXSetRowCol TSMonitorLGSetTransform TSSetMaxStepRejections
TSGLSetAcceptType TSMonitorLGSetVariableNames TSSetPostStage
TSGLSetType TSMonitorLGSolution TSSetPostStep
TSGetAdapt TSMonitorSPEigCtxCreate TSSetPreStage
TSGetApplicationContext TSMonitorSPEigCtxDestroy TSSetPreStep
TSGetCostGradients TSMonitorSet TSSetRetainStages
TSGetCostIntegral TSMonitorSolutionBinary TSSetSaveTrajectory
TSGetDM TSMonitorSolutionVTK TSSetTime
TSGetDuration TSMonitorSolutionVTKDestroy TSSetTimeStep
TSGetKSPIterations TSPseudoSetTimeStep TSSetType
TSGetOptionsPrefix TSPythonSetType TSSundialsSetTolerance
TSGetRHSJacobian TSRHSJacobianSetReuse TSSundialsSetType
TSGetSNESFailures TSRKGetType TSTRAJECTORYBASIC
TSGetSNESIterations TSRKSetType TSTRAJECTORYSINGLEFILE
TSGetSolution TSROSW2M TSThetaSetEndpoint
TSGetStepRejections TSROSW2P TSThetaSetTheta
TSGetTimeStep TSROSW4L TSTrajectorySetType
TSGetTimeStepNumber TSROSWASSP3P3S1C TSTrajectoryType
TSGetType TSROSWGRK4T
Advanced - Setting more advanced options and customization
DMTSGetForcingFunction TSAdaptRegister TSRK3BS
DMTSGetIFunction TSAdaptRegisterAll TSRK4
DMTSGetIJacobian TSAdaptSetCheckStage TSRK5DP
DMTSGetRHSFunction TSAdjointSetUp TSRK5F
DMTSGetRHSJacobian TSAlphaGetParams TSRKRegister
DMTSGetSolutionFunction TSAlphaSetParams TSRKRegisterAll
DMTSSetForcingFunction TSAppendOptionsPrefix TSRKRegisterDestroy
DMTSSetIFunction TSComputeIJacobianConstant TSRegister
DMTSSetIFunctionSerialize TSEvaluateStep TSRegisterAll
DMTSSetIJacobian TSGLAcceptRegister TSRollBack
DMTSSetIJacobianSerialize TSGLAdaptRegister TSRosWRegister
DMTSSetRHSFunction TSGLAdaptRegisterAll TSRosWRegisterAll
DMTSSetRHSJacobian TSGLGetAdapt TSRosWRegisterDestroy
DMTSSetSolutionFunction TSGLRegister TSSetConvergedReason
SNESTSFormFunction TSGLRegisterAll TSSetEquationType
TSARKIMEX1BEE TSGetCFLTime TSSetOptionsPrefix
TSARKIMEX2C TSGetIFunction TSSetUp
TSARKIMEX2D TSGetIJacobian TSSundialsGetIterations
TSARKIMEX2E TSGetRHSFunction TSSundialsGetPC
TSARKIMEX3 TSGetStages TSSundialsSetGramSchmidtType
TSARKIMEX4 TSMonitor TSSundialsSetLinearTolerance
TSARKIMEX5 TSPseudoIncrementDtFromInitialDt TSSundialsSetMaxl
TSARKIMEXA2 TSPseudoSetMaxTimeStep TSThetaGetEndpoint
TSARKIMEXARS122 TSPseudoSetTimeStepIncrement TSThetaGetTheta
TSARKIMEXARS443 TSPseudoSetVerifyTimeStep TSTrajectory
TSARKIMEXBPR3 TSPseudoTimeStepDefault TSTrajectoryCreate
TSARKIMEXL2 TSPseudoVerifyTimeStep TSTrajectoryDestroy
TSARKIMEXPRSSP2 TSPseudoVerifyTimeStepDefault TSTrajectoryRegister
TSARKIMEXRegister TSRK1 TSTrajectoryRegisterAll
TSARKIMEXRegisterAll TSRK2A TSTrajectorySetFromOptions
TSARKIMEXRegisterDestroy TSRK3 TSVISetVariableBounds
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMCopyDMTS TSAdaptReset TSGLFinalizePackage
DMGetDMTS TSAdjointComputeCostIntegrand TSGLInitializePackage
DMGetDMTSWrite TSAdjointComputeDRDPFunction TSInitializePackage
DMPlexTSComputeIFunctionFEM TSAdjointComputeDRDYFunction TSPostStage
DMPlexTSComputeRHSFunctionFVM TSAdjointComputeRHSJacobian TSPostStep
DMPlexTSGetGeometryFVM TSClone TSPreStage
DMPlexTSGetGradientDM TSComputeForcingFunction TSPreStep
DMTSCopy TSComputeIFunction TSPseudoComputeTimeStep
SNESTSFormJacobian TSComputeIJacobian TSRKFinalizePackage
TSARKIMEXFinalizePackage TSComputeLinearStability TSRKInitializePackage
TSARKIMEXInitializePackage TSComputeRHSFunction TSRosWFinalizePackage
TSAdaptCandidateAdd TSComputeRHSJacobian TSRosWInitializePackage
TSAdaptCandidatesClear TSComputeSolutionFunction TSRosWRegisterRos4
TSAdaptCandidatesGet TSErrorWeightedNorm TSSSPFinalizePackage
TSAdaptCheckStage TSErrorWeightedNorm2 TSSSPInitializePackage
TSAdaptChoose TSErrorWeightedNormInfinity TSSetSNES
TSAdaptCreate TSFinalizePackage TSStep
TSAdaptInitializePackage TSGLAdaptInitializePackage
No deprecated routines

Table of Contents