FronTier++
Softerware for front tracking method
|
Functions | |
IMPORT void | FT_NormalAtPoint (POINT *p, Front *front, double *normal, int comp) |
Get the normal vector at the point p. More... | |
IMPORT void | FT_CurvatureAtPoint (POINT *p, Front *front, double *curvature) |
Get the curvature at the point p. More... | |
IMPORT double | FT_GridSizeInDir (double *dir, Front *front) |
The grid size in direction dir is (dir dot h). If h are the same in all directions (square mesh), it returns the h. More... | |
IMPORT Nor_stencil * | FT_CreateNormalStencil (Front *front, POINT *p, int comp, int num_pts) |
This function create a normal stencil at the interface point p with size (number of points) num_pts. The normal stencil in in the ambient with component comp. More... | |
IMPORT boolean | FT_ReflectPointThroughBdry (Front *front, HYPER_SURF *hs, double *coords, int comp, double *coords_bdry, double *coords_ref, double *normal) |
Given the coordinates coords, this function find the reflected coordinates coordsrefl through the hypersurface hs, it also provide the normal vector nor at the reflection. Return NO if conditions not satisfied. More... | |
Nor_stencil * FT_CreateNormalStencil | ( | Front * | front, |
POINT * | p, | ||
int | comp, | ||
int | num_pts | ||
) |
This function create a normal stencil at the interface point p with size (number of points) num_pts. The normal stencil in in the ambient with component comp.
front | in Pointer to Front. |
p | in Pointer to the point. |
comp | in Index of the region of the stencil. |
num_pts | in Number of point in the normal stencel. |
void FT_CurvatureAtPoint | ( | POINT * | p, |
Front * | front, | ||
double * | curvature | ||
) |
Get the curvature at the point p.
p | in Pointer to a valid point on interface of the front. |
front | in Pointer to Front. |
curvature | out The address where the curvature is to be assigned. |
double FT_GridSizeInDir | ( | double * | dir, |
Front * | front | ||
) |
The grid size in direction dir is (dir dot h). If h are the same in all directions (square mesh), it returns the h.
dir | in The unit vector of the direction. |
front | in Pointer to Front. |
void FT_NormalAtPoint | ( | POINT * | p, |
Front * | front, | ||
double * | normal, | ||
int | comp | ||
) |
Get the normal vector at the point p.
p | in Pointer to a valid point on interface of the front. |
front | in Pointer to Front. |
normal | out The normal vector. |
comp | in The component of the side which the normal is pointing to. |
void FT_ReflectPointThroughBdry | ( | Front * | front, |
HYPER_SURF * | hs, | ||
double * | coords, | ||
int | comp, | ||
double * | coords_bdry, | ||
double * | coords_ref, | ||
double * | nor | ||
) |
Given the coordinates coords, this function find the reflected coordinates coordsrefl through the hypersurface hs, it also provide the normal vector nor at the reflection. Return NO if conditions not satisfied.
front | in Pointer to Front. |
hs | in Pointer to the hypersurface (curve in 2D, surface in 3D). |
comp | in Component of the ambient. |
coords | in Coordinates to be reflected. |
coords_bdry | out boundary point of reflection. |
coords_ref | out Coordinates after reflection. |
nor | out Normal vector at reflection. |