|
Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
Supply functions for generating a 2D disk geometry for the 2D collision simulation. More...
#include <geometry_collision.h>
Public Member Functions | |
| DiskRight () | |
| constructor | |
| virtual | ~DiskRight () |
| destructor | |
| virtual bool | operator() (double x, double y, double z) const |
| Level set function of a 2D disk. More... | |
| virtual void | getBoundingBox (double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) |
| Calculates the bounding box of 2D disk. More... | |
Public Member Functions inherited from Geometry | |
| virtual | ~Geometry () |
| Destructor. | |
Supply functions for generating a 2D disk geometry for the 2D collision simulation.
Created on: 2014/09/07
|
virtual |
Calculates the bounding box of 2D disk.
| [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 |
Implements Geometry.
|
virtual |
Level set function of a 2D disk.
The level set function is
, where (xcen,ycen) and r refer to the center and the radius of the disk
| [in] | x | The x-coordinate |
| [in] | y | The y-coordinate |
| [in] | z | The z-coordinate |
true if (x,y,z) is inside the level set function; false otherwise Implements Geometry.
1.8.6