Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
 All Classes Files Functions Variables Typedefs Friends Pages
Public Member Functions | List of all members
DiskRight Class Reference

Supply functions for generating a 2D disk geometry for the 2D collision simulation. More...

#include <geometry_collision.h>

Inheritance diagram for DiskRight:
Geometry

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.
 

Detailed Description

Supply functions for generating a 2D disk geometry for the 2D collision simulation.

Author
Chen, Hsin-Chiang (morri.nosp@m.sche.nosp@m.n2008.nosp@m.@gma.nosp@m.il.co.nosp@m.m)
Version
1.0
Date
2014/09/08

Created on: 2014/09/07

Member Function Documentation

void DiskRight::getBoundingBox ( double &  xmin,
double &  xmax,
double &  ymin,
double &  ymax,
double &  zmin,
double &  zmax 
)
virtual

Calculates the bounding box of 2D disk.

Parameters
[out]xminThe minimum in x-coordinate
[out]xmaxThe maximum in x-coordinate
[out]yminThe minimum in y-coordinate
[out]ymaxThe maximum in y-coordinate
[out]zminThe minimum in z-coordinate
[out]zmaxThe maximum in z-coordinate
Returns
None

Implements Geometry.

bool DiskRight::operator() ( double  x,
double  y,
double  z = 0 
) const
virtual

Level set function of a 2D disk.

The level set function is $ (x-\mbox{xcen})^2+(y-\mbox{ycen})^2 \leq r^2 $ , where (xcen,ycen) and r refer to the center and the radius of the disk

Parameters
[in]xThe x-coordinate
[in]yThe y-coordinate
[in]zThe z-coordinate
Returns
true if (x,y,z) is inside the level set function; false otherwise

Implements Geometry.


The documentation for this class was generated from the following files: