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

Table of Contents