Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
Supply functions for generating a 1D line geometry. More...
#include <geometry_1d.h>
Public Member Functions | |
Line () | |
Constructor. More... | |
virtual | ~Line () |
Desturctor. | |
virtual bool | operator() (double x, double y, double z) const |
Level set function of a 1D line with center at zero. More... | |
virtual void | getBoundingBox (double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) |
Calculates the bounding box of 1D line centered at zero. More... | |
![]() | |
virtual | ~Geometry () |
Destructor. | |
Supply functions for generating a 1D line geometry.
Created on: 2015/03/13
Line::Line | ( | ) |
Constructor.
This line object is centered at zero with length on the left being leftLen and that on the right being rightLen
|
virtual |
Calculates the bounding box of 1D line centered at zero.
[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 1D line with center at zero.
The level set function is
[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.