FronTier++
Softerware for front tracking method
 All Files Functions Groups
Functions
FronTier Interface Geometry Functions

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...
 

Detailed Description

Function Documentation

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.

Parameters
frontin Pointer to Front.
pin Pointer to the point.
compin Index of the region of the stencil.
num_ptsin Number of point in the normal stencel.
void FT_CurvatureAtPoint ( POINT *  p,
Front *  front,
double *  curvature 
)

Get the curvature at the point p.

Parameters
pin Pointer to a valid point on interface of the front.
frontin Pointer to Front.
curvatureout 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.

Parameters
dirin The unit vector of the direction.
frontin Pointer to Front.
void FT_NormalAtPoint ( POINT *  p,
Front *  front,
double *  normal,
int  comp 
)

Get the normal vector at the point p.

Parameters
pin Pointer to a valid point on interface of the front.
frontin Pointer to Front.
normalout The normal vector.
compin 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.

Parameters
frontin Pointer to Front.
hsin Pointer to the hypersurface (curve in 2D, surface in 3D).
compin Component of the ambient.
coordsin Coordinates to be reflected.
coords_bdryout boundary point of reflection.
coords_refout Coordinates after reflection.
norout Normal vector at reflection.