Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
 All Classes Files Functions Variables Typedefs Friends Pages
geometry_1d.h
Go to the documentation of this file.
1 
16 #ifndef __GEOMETRY_1D_H__
17 #define __GEOMETRY_1D_H__
18 
19 #include "geometry.h"
20 
35 class Line: public Geometry {
36 public:
43  Line();
44 
46  virtual ~Line() {}
47 
62  virtual bool operator()(double x, double y, double z) const;
63 
75  virtual void getBoundingBox(double& xmin, double& xmax, double& ymin, double& ymax, double& zmin, double& zmax);
76 private:
77  double leftLen;
78  double rightLen;
79 };
80 
81 
82 
83 #endif //__GEOMETRY_1D_H__
Line()
Constructor.
Definition: geometry_1d.cpp:9
Supply functions for generating a 1D line geometry.
Definition: geometry_1d.h:35
virtual bool operator()(double x, double y, double z) const
Level set function of a 1D line with center at zero.
Definition: geometry_1d.cpp:11
An abstract class for the initialization of the geometry of fluid objects.
Definition: geometry.h:38
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.
Definition: geometry_1d.cpp:15
This header file contains classes for the initialization of the geometry of fluid objects...
virtual ~Line()
Desturctor.
Definition: geometry_1d.h:46