#include "grid.h" #include "gvec.h" int GridSetVecPointBoundaryDifference(int node, int field, GVec u, PointFunction f, GVec b, void *ctx)U^{n+1}_k - U^{n+1}_{k+1}
where n is the time iteration index, and k is the Newton iteration index. This means that the solution will be updated to U^{n+1}_{k+1} if the Jacobian is the identity for that row. This is very useful for time dependent boundary conditions for which the traditional method of letting the rhs value be zero does not work.
Collective on GVec
node | - The constrained node | |
u | - A grid vector, usually the previous solution | |
field | - The field to which the conditions apply | |
f | - The function which defines the boundary condition | |
ctx | - The user-supplied context |
Level:advanced
Location:src/grid/interface/gridBC.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages