petsc-master 2016-09-27
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 TSGLLEType 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
TSGLLE TSSSPSetType TS_CONVERGED_TIME
TSGLLEAcceptType TSSSPType TS_CONVERGED_USER
TSGLLEAdapt TSSUNDIALS TS_DIVERGED_NONLINEAR_SOLVE
TSGLLEAdaptType TSSetCostGradients TS_DIVERGED_STEP_REJECTED
Intermediate - Setting options for algorithms and data structures
DMTSSetBoundaryLocal TSGetRHSJacobian TSROSWASSP3P3S1C
TS2GetSolution TSGetSNESFailures TSROSWGRK4T
TSADAPTBASIC TSGetSNESIterations TSROSWLASSP3P4S2C
TSADAPTCFL TSGetSolution TSROSWLLSSP3P4S2C
TSADAPTNONE TSGetStepRejections TSROSWRA34PW2
TSARKIMEXGetType TSGetTimeStep TSROSWRA3PW
TSARKIMEXSetFullyImplicit TSGetTimeStepNumber TSROSWRODAS3
TSARKIMEXSetType TSGetType TSROSWSANDU3
TSAdaptBasicGetClip TSInterpolate TSROSWSHAMP4
TSAdaptBasicSetClip TSLoad TSROSWTHETA1
TSAdaptLoad TSMonitorCancel TSROSWTHETA2
TSAdaptSetMonitor TSMonitorDefault TSROSWVELDD4
TSAdaptSetStepLimits TSMonitorDrawCtxCreate TSRosWGetType
TSAdaptSetType TSMonitorDrawCtxDestroy TSRosWSetRecomputeJacobian
TSAdjointMonitorCancel TSMonitorDrawError TSSetApplicationContext
TSAdjointMonitorDefault TSMonitorDrawSolution TSSetCFLTimeLocal
TSAdjointMonitorDrawSensi TSMonitorDrawSolutionPhase TSSetCostIntegrand
TSAdjointMonitorSet TSMonitorEnvelope TSSetDM
TSAdjointSetRHSJacobian TSMonitorEnvelopeCtxCreate TSSetDuration
TSAdjointSetSteps TSMonitorEnvelopeCtxDestroy TSSetErrorIfStepFails
TSAdjointSolve TSMonitorEnvelopeGetBounds TSSetEventHandler
TSAdjointStep TSMonitorLGCtxCreate TSSetFunctionDomainError
TSAlpha2SetRadius TSMonitorLGCtxDestroy TSSetInitialTimeStep
TSAlpha2UseAdapt TSMonitorLGCtxSetDisplayVariables TSSetMaxSNESFailures
TSAlphaSetRadius TSMonitorLGCtxSetTransform TSSetMaxStepRejections
TSAlphaUseAdapt TSMonitorLGCtxSetVariableNames TSSetPostEvaluate
TSBDFGetOrder TSMonitorLGError TSSetPostStage
TSBDFSetOrder TSMonitorLGGetVariableNames TSSetPostStep
TSBDFUseAdapt TSMonitorLGSetDisplayVariables TSSetPreStage
TSComputeIFunctionLinear TSMonitorLGSetTransform TSSetPreStep
TSComputeIJacobianDefaultColor TSMonitorLGSetVariableNames TSSetSaveTrajectory
TSComputeRHSFunctionLinear TSMonitorLGSolution TSSetTime
TSComputeRHSJacobianConstant TSMonitorSPEigCtxCreate TSSetTimeStep
TSEIMEXSetMaxRows TSMonitorSPEigCtxDestroy TSSetType
TSEIMEXSetOrdAdapt TSMonitorSet TSSundialsSetTolerance
TSEIMEXSetRowCol TSMonitorSolution TSSundialsSetType
TSGLLESetAcceptType TSMonitorSolutionVTK TSTRAJECTORYBASIC
TSGLLESetType TSMonitorSolutionVTKDestroy TSTRAJECTORYMEMORY
TSGetAdapt TSPseudoSetTimeStep TSTRAJECTORYSINGLEFILE
TSGetApplicationContext TSPythonSetType TSTRAJECTORYVISUALIZATION
TSGetCostGradients TSRHSJacobianSetReuse TSThetaSetEndpoint
TSGetCostIntegral TSRKGetType TSThetaSetTheta
TSGetDM TSRKSetType TSTrajectorySetMonitor
TSGetDuration TSROSW2M TSTrajectorySetType
TSGetKSPIterations TSROSW2P
TSGetOptionsPrefix TSROSW4L
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 TSGLLEAcceptRegister TSRosWRegisterDestroy
DMTSSetRHSJacobian TSGLLEAdaptRegister TSSetConvergedReason
DMTSSetSolutionFunction TSGLLEAdaptRegisterAll TSSetEquationType
SNESTSFormFunction TSGLLEGetAdapt TSSetOptionsPrefix
TSARKIMEX1BEE TSGLLERegister TSSetUp
TSARKIMEX2C TSGLLERegisterAll 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 TSGLLEAdaptInitializePackage
DMGetDMTS TSAdjointComputeCostIntegrand TSGLLEFinalizePackage
DMGetDMTSWrite TSAdjointComputeDRDPFunction TSGLLEInitializePackage
DMPlexTSComputeBoundary TSAdjointComputeDRDYFunction TSInitializePackage
DMPlexTSComputeIFunctionFEM TSAdjointComputeRHSJacobian TSMonitor
DMPlexTSComputeIJacobianFEM TSAdjointMonitor TSMonitorSetFromOptions
DMPlexTSComputeRHSFunctionFVM TSAdjointMonitorSetFromOptions TSPostEvaluate
DMPlexTSGetGeometryFVM TSClone TSPostStage
DMPlexTSGetGradientDM TSComputeForcingFunction TSPostStep
DMTSCopy TSComputeI2Function TSPreStage
SNESTSFormJacobian TSComputeI2Jacobian TSPreStep
TSARKIMEXFinalizePackage TSComputeIFunction TSPseudoComputeTimeStep
TSARKIMEXInitializePackage TSComputeIJacobian TSRKFinalizePackage
TSAdaptCandidateAdd TSComputeLinearStability TSRKInitializePackage
TSAdaptCandidatesClear TSComputeRHSFunction TSRosWFinalizePackage
TSAdaptCandidatesGet TSComputeRHSJacobian TSRosWInitializePackage
TSAdaptCheckStage TSComputeSolutionFunction TSRosWRegisterRos4
TSAdaptChoose TSErrorWeightedNorm TSSSPFinalizePackage
TSAdaptCreate TSErrorWeightedNorm2 TSSSPInitializePackage
TSAdaptFinalizePackage TSErrorWeightedNormInfinity TSSetSNES
TSAdaptInitializePackage TSFinalizePackage TSStep
No deprecated routines

Table of Contents