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

Table of Contents