class Workshop

Automatic embedded boundary generator

Inheritance:


public members:

Constructors, destructors
Workshop()
~Workshop()

Modification functions
virtual Real f(Real x[ BL_SPACEDIM ], Real dx[ BL_SPACEDIM ])
void makeVoFs( EBIndexSpace & ispace)
void makeFaces( EBIndexSpace & ispace)
static void add(const EBIndexSpace & ispace1, const EBIndexSpace & ispace2, EBIndexSpace & ispace3)
void complement(const EBIndexSpace & ispace1, EBIndexSpace & ispace2)
void setTol(Real t)

Documentation

Given a function which describes the shape of the body, this class contains functions which will automatically generate the vofs and faces.

Workshop ()
Default constructor.

~Workshop ()
Default destructor.

virtual Real f (Real x[ BL_SPACEDIM ], Real dx[ BL_SPACEDIM ])
f is a function that describes the body. Arguments: x (not modified) is the coordinates of a point. dx (not modified) is a small neighborhood around the point x. Returns: 0.0 if x is inside the body. 1.0 if x is outside the body. 0.5 if x is on the surface of the body. f smoothly transitions from 0.0 to 1.0 within an arbitrarily small neighborhood dx. This: This object is not modified.

void makeVoFs ( EBIndexSpace & ispace)
Creates the vofs for EBIS by using f (see above). Arguments: ispace (modified) is the input EBIS. Returns: none. This: This object is modified.

void makeFaces ( EBIndexSpace & ispace)
Creates the faces for EBIS by using f (see above). Arguments: ispace (modified) is the input EBIS. Returns: none. This: This object is modified.

static void add (const EBIndexSpace & ispace1, const EBIndexSpace & ispace2, EBIndexSpace & ispace3)
Adds the embedded boundaries from ispace1 and ispace2 to create an embedded boundary for ispace3. The embedded boundaries must not intersect the same grid cells. Arguments: ispace1 (not modified) and ispace2 (not modified) are input EBIS. ispace3 (modified) is the output EBIS. add automatically closes ispace3. All three EBIS must be defined on equal sized boxes. Returns: none. This: This object is not modified.

void complement (const EBIndexSpace & ispace1, EBIndexSpace & ispace2)
Sets ispace2 to be the complement of ispace1. Arguments: ispace1 (not modified) is the input EBIS. ispace2 (modified) is the output EBIS. complement automatically closes ispace2. Both EBIS must be defined on equal sized boxes. It is assumed that there are a maximum of two vofs per grid cell. Returns: none. This: This object is not modified.

void setTol (Real t)
Sets the tolerance used to check for zero. Arguments: t (not modified) is the value of the new tolerance. Returns: none. This: This object is modified.


this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++