Defines an abstract interface for geometry definitions. These may include open geometries, closed geometries or complex box shapes.
More...
Public Member Functions |
| Geometry () |
| Default constructor.
|
virtual | ~Geometry () |
| Destructor.
|
virtual std::string | GetClassName () const |
| Returns the name of the class, here "geometry".
|
virtual void | Init () |
| The Init method of a Task is called before the Task is executed. It should contain all the necessary initialization. The basic Init method calls the Init of all the sub-Tasks and sorts them according to their predecessor list. Also the Pointer to the Normalization object is retrieved from the Process. A derived class should always call the Task::Init in its own Init method.
|
virtual bool | Execute () |
| The geometry doesn't actually do anything by itself.
|
GridPosition | GetGridSize () const |
| Return the size of the box.
|
Position | GetGridSpacing () const |
| Return the grid spacing in m.
|
virtual double | GetDustRadius () |
| Returns the Radius of the dust particle.
|
virtual int | GetNumberDust () |
| Returns the number of the dust particles in the simulation.
|
virtual GridPosition | GetDustPosition (int) |
| Returns the position of the dust particles.
|
virtual Position | GetLocation (const GridPosition &) const =0 |
| Should return the actual position in m of a grid point.
|
virtual double | Distance (const GridPosition &, const GridPosition &) const =0 |
| Should return the distance between two grid points in m.
|
double | GetVolumeQuant () const |
| Returns the volume of a single grid cell in .
|
virtual double | GetBoxVolume () const =0 |
| Should return the physical volume of the simulation box.
|
virtual bool | outside (const Position &) const =0 |
| Return true if the Position is outside the simulation box.
|
virtual bool | outside_periodic (const Position &) const =0 |
virtual bool | outside_right (const Position &) const =0 |
virtual bool | outside_left (const Position &) const =0 |
virtual bool | insidedust (const Position &, GridPosition) const =0 |
| Return true if the Position is inside a dust particle.
|
|
virtual Position | MinPosition () const =0 |
virtual Position | MaxPosition () const =0 |
| Abstract methods, that return the actual minimum and maximum physical positions in the simulation. This depends on the geometry since boundary cells may be introduced.
|
|
virtual void | DivByVolume (grid< double > &G)=0 |
| Grid values sometimes have to be corrected according to the real volume of the cells. Boundary cells may hav only half of quarter the volume of a normal grid cell.
|
| Task () |
| Default constructor sets the running number nNr of the Task.
|
virtual | ~Task () |
| When destructing a Task is has to be detatched from the parents Task list.
|
int | GetStep () const |
| Return the interval between execution in timesteps.
|
int | GetEnd () const |
| Return the timestep when the Task ends execution.
|
bool | DoNow () |
| Returns true if the Task is to be executed now.
|
std::string | GetName () const |
| Returns the name given to the Task object.
|
virtual bool | IsInteractive () const |
| If not specified otherwise, a Task is not interactive.
|
void | AttachTask (Task *pTask) |
| Insert Task into Task list and registers it with the Process.
|
void | DetachTask (Task *pTask) |
| DetachTask from Task list.
|
virtual std::string | Rebuild (std::istream &in) |
| Rebuilds the task from the setup. This normally does not need to be overwritten. Rebuild always returns the next token that does not belong to the object setup.
|
virtual void | DumpTaskList (std::ostream &o, int nDepth=0) |
| Recursively dumps the complete Task list into a stream.
|
Defines an abstract interface for geometry definitions. These may include open geometries, closed geometries or complex box shapes.
- Parameters:
-
dx,dy,dz | The grid spacing in micrometer. For 1D simulations: set only dx, for 2D simulations set only dx,dy. It must be set dx=dy=dz |
Nx,Ny,Nz | The Size of the simulation box in grid cells. For 1D simulations: set only Nx, for 2D simulations set only Nx,Ny. |