TSIFunction#

A TS implicit function evaluation function

Synopsis#

#include <petscts.h> 
PETSC_EXTERN_TYPEDEF typedef PetscErrorCode (*TSIFunction)(TS ts, PetscReal t, Vec U, Vec U_tt, Vec F, void *ctx);

Calling Sequence#

  • ts - the TS context obtained from TSCreate()

  • t - time at step/stage being solved

  • U - state vector

  • U_t - time derivative of state vector

  • F - function vector

  • ctx - [optional] user-defined context for function

See Also#

TS: Scalable ODE and DAE Solvers, TS, TSSetIFunction(), DMTSSetIFunction(), TSIJacobian(), TSRHSFunction(), TSRHSJacobian()

Level#

beginner

Location#

include/petscts.h

Examples#

src/ts/tutorials/ex8.c


Edit on GitLab

Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages