Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
An abstract class for the initialization of the geometry of fluid objects. More...
#include <geometry.h>
Public Member Functions | |
virtual | ~Geometry () |
Destructor. | |
virtual bool | operator() (double x, double y, double z) const =0 |
Level set function of particle geometry. More... | |
virtual void | getBoundingBox (double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax)=0 |
Calculates the bounding box of a geometric shape. More... | |
An abstract class for the initialization of the geometry of fluid objects.
This class can be used as a function object: the operator() is overloaded as the level set function of particle geometry
Created on: 2014/06/07
|
pure virtual |
Calculates the bounding box of a geometric shape.
For example, for a ball in 3D with center (xcen, ycen, zcen) and radius r the bounding box is calculated as ([xcen-r,xcen+r],[ycen-r,ycen+r],[zcen-r,zcen+r])
[out] | xmin | The minimum in x-coordinate |
[out] | xmax | The maximum in x-coordinate |
[out] | ymin | The minimum in y-coordinate |
[out] | ymax | The maximum in y-coordinate |
[out] | zmin | The minimum in z-coordinate |
[out] | zmax | The maximum in z-coordinate |
|
pure virtual |