Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
Supply functions for generating a 3D ball geometry. More...
#include <geometry.h>
Public Member Functions | |
Ball () | |
Constructor. | |
virtual | ~Ball () |
Destructor. | |
virtual bool | operator() (double x, double y, double z) const |
Level set function of a 3D ball. More... | |
virtual void | getBoundingBox (double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) |
Calculates the bounding box of 3D ball. More... | |
![]() | |
virtual | ~Geometry () |
Destructor. | |
Supply functions for generating a 3D ball geometry.
Created on: 2014/06/07
|
virtual |
Calculates the bounding box of 3D ball.
[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 3D ball.
The level set function is , where (xcen,ycen,zcen) and r refer to the center and the radius of the ball
[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.