ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
GDRectangle Class Reference

Class describing a rectangle geometrical domain. More...

#include <GDRectangle.h>

Inherits GeometricalDomain.

Collaboration diagram for GDRectangle:
[legend]

Public Member Functions

 GDRectangle (std::string name, std::vector< Phase * > vecPhases, Mixture *mixture, std::vector< Transport > vecTransports, tinyxml2::XMLElement *element, const int &physicalEntity, std::string fileName="Unknown file")
 Geometrical constructor from a XML format reading.
 ~GDRectangle () override
bool belong (Coord &posElement, const int &) const override
 Method to verify inclusion of a vertex in geometrical domain.
Public Member Functions inherited from GeometricalDomain
 GeometricalDomain (std::string name, std::vector< Phase * > vecPhases, Mixture *mixture, std::vector< Transport > vecTransports, const int &physicalEntity)
 Generic geometrical constructor.
virtual ~GeometricalDomain ()
virtual void fillIn (Cell *cell) const
 Method to fill in the cell data with the ones of the corresponding domain.
const std::string & getName ()
const int & getPhysicalEntity ()

Private Attributes

Coord m_posLeftBottom
 Coordinates of left bottom corner (minimum positions in X, Y, Z).
Axis m_axis1
Axis m_axis2
 Axes defining rectangle plane.
double m_lAxis1
double m_lAxis2
 Width along axes 1 and 2.

Additional Inherited Members

Protected Attributes inherited from GeometricalDomain
std::string m_name
 Geometrical domain name.
std::vector< Phase * > m_vecPhases
 Phases variable vector.
Mixture * m_mixture
 Mixture variables.
std::vector< Transport > m_vecTransports
 Transport variables vector.
int m_physicalEntity
 Physical entity number (see mesh software and mesh file).

Detailed Description

Class describing a rectangle geometrical domain.

Constructor & Destructor Documentation

◆ GDRectangle()

GDRectangle::GDRectangle ( std::string name,
std::vector< Phase * > vecPhases,
Mixture * mixture,
std::vector< Transport > vecTransports,
tinyxml2::XMLElement * element,
const int & physicalEntity,
std::string fileName = "Unknown file" )

Geometrical constructor from a XML format reading.

Reading data from XML file under the following format: ex : <dataRectangle axis1 = "x" axis2 = "y" lAxis1 = "0.3" lAxis2 = "0.2"> <posInferiorVertex x = "0.4" y = "0.5" z = "0."> </dataRectangle>

Parameters
vecPhasesPhases vector variables to copy in geometrical domain
mixtureMixture variables to copy in geometrical domain
vecTransportsTransports vector varaiables to copy in geometrical domain
elementXML element to read for geometrical properties
physicalEntityphysical entity number relative to mesh generation (see mesh tool)
fileNameString name of readed XML file
Here is the call graph for this function:

◆ ~GDRectangle()

GDRectangle::~GDRectangle ( )
override

Member Function Documentation

◆ belong()

bool GDRectangle::belong ( Coord & ,
const int &  ) const
overridevirtual

Method to verify inclusion of a vertex in geometrical domain.

Parameters
posElementPoint coordinates
lvlLevel of the cell
Returns
True if the vertex belongs to geometrical domain

Implements GeometricalDomain.

Here is the call graph for this function:

Member Data Documentation

◆ m_axis1

Axis GDRectangle::m_axis1
private

◆ m_axis2

Axis GDRectangle::m_axis2
private

Axes defining rectangle plane.

◆ m_lAxis1

double GDRectangle::m_lAxis1
private

◆ m_lAxis2

double GDRectangle::m_lAxis2
private

Width along axes 1 and 2.

◆ m_posLeftBottom

Coord GDRectangle::m_posLeftBottom
private

Coordinates of left bottom corner (minimum positions in X, Y, Z).


The documentation for this class was generated from the following files:
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Geometries/GDRectangle.h
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Geometries/GDRectangle.cpp