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

Table of Contents