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

Table of Contents