petsc-master 2016-02-11
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 TSRK3BS
DMTSGetIFunction TSAdaptSetCheckStage TSRK4
DMTSGetIJacobian TSAdjointCostIntegral TSRK5DP
DMTSGetRHSFunction TSAdjointSetUp TSRK5F
DMTSGetRHSJacobian TSAlphaGetParams TSRKRegister
DMTSGetSolutionFunction TSAlphaSetParams TSRKRegisterAll
DMTSSetForcingFunction TSAppendOptionsPrefix TSRKRegisterDestroy
DMTSSetIFunction TSComputeIJacobianConstant TSRegister
DMTSSetIFunctionSerialize TSEvaluateStep TSRegisterAll
DMTSSetIJacobian TSForwardCostIntegral TSRollBack
DMTSSetIJacobianSerialize TSFunctionDomainError TSRosWRegister
DMTSSetRHSFunction TSGLAcceptRegister TSRosWRegisterAll
DMTSSetRHSJacobian TSGLAdaptRegister TSRosWRegisterDestroy
DMTSSetSolutionFunction TSGLAdaptRegisterAll TSSetConvergedReason
SNESTSFormFunction TSGLGetAdapt TSSetEquationType
TSARKIMEX1BEE TSGLRegister TSSetOptionsPrefix
TSARKIMEX2C TSGLRegisterAll TSSetUp
TSARKIMEX2D TSGetCFLTime TSSundialsGetIterations
TSARKIMEX2E TSGetIFunction TSSundialsGetPC
TSARKIMEX3 TSGetIJacobian TSSundialsSetGramSchmidtType
TSARKIMEX4 TSGetRHSFunction TSSundialsSetLinearTolerance
TSARKIMEX5 TSGetStages TSSundialsSetMaxl
TSARKIMEXA2 TSPseudoIncrementDtFromInitialDt TSThetaGetEndpoint
TSARKIMEXARS122 TSPseudoSetMaxTimeStep TSThetaGetTheta
TSARKIMEXARS443 TSPseudoSetTimeStepIncrement TSTrajectory
TSARKIMEXBPR3 TSPseudoSetVerifyTimeStep TSTrajectoryCreate
TSARKIMEXL2 TSPseudoTimeStepDefault TSTrajectoryDestroy
TSARKIMEXPRSSP2 TSPseudoVerifyTimeStep TSTrajectoryRegister
TSARKIMEXRegister TSPseudoVerifyTimeStepDefault TSTrajectoryRegisterAll
TSARKIMEXRegisterAll TSRK1 TSTrajectorySetFromOptions
TSARKIMEXRegisterDestroy TSRK2A TSTrajectorySetUp
TSAdaptRegister TSRK3 TSVISetVariableBounds
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