ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
ElementCartesian.h
Go to the documentation of this file.
1//
2// ,---. ,--, .---. ,--, ,---. .-. .-.
3// | .-' .' .') / .-. ) .' .' | .-' | \| |
4// | `-. | |(_) | | |(_) | | __ | `-. | | |
5// | .-' \ \ | | | | \ \ ( _) | .-' | |\ |
6// | `--. \ `-. \ `-' / \ `-) ) | `--. | | |)|
7// /( __.' \____\ )---' )\____/ /( __.' /( (_)
8// (__) (_) (__) (__) (__)
9// Official webSite: https://code-mphi.github.io/ECOGEN/
10//
11// This file is part of ECOGEN.
12//
13// ECOGEN is the legal property of its developers, whose names
14// are listed in the copyright file included with this source
15// distribution.
16//
17// ECOGEN is free software: you can redistribute it and/or modify
18// it under the terms of the GNU General Public License as published
19// by the Free Software Foundation, either version 3 of the License,
20// or (at your option) any later version.
21//
22// ECOGEN is distributed in the hope that it will be useful,
23// but WITHOUT ANY WARRANTY; without even the implied warranty of
24// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25// GNU General Public License for more details.
26//
27// You should have received a copy of the GNU General Public License
28// along with ECOGEN (file LICENSE).
29// If not, see <http://www.gnu.org/licenses/>.
30
31#ifndef ELEMENTCARTESIAN_H
32#define ELEMENTCARTESIAN_H
33
34#include "Element.h"
35
37{
38public:
40 virtual ~ElementCartesian();
41
42 virtual void setVolume(const double& volume);
43 virtual void setLCFL(const double& lCFL);
44 virtual void setPos(const double& X, const double& Y, const double& Z);
45 virtual void setPos(const Coord& pos);
46 virtual void setPosX(const double& X);
47 virtual void setPosY(const double& Y);
48 virtual void setPosZ(const double& Z);
49 virtual void setSize(const double& sizeX, const double& sizeY, const double& sizeZ);
50 virtual void setSize(const Coord& size);
51
52 virtual const double& getSizeX() { return m_size.getX(); };
53 virtual const double& getSizeY() { return m_size.getY(); };
54 virtual const double& getSizeZ() { return m_size.getZ(); };
55 virtual const Coord& getSize() { return m_size; };
56
57 //Pour methode AMR
58 virtual void creerElementChild();
59 virtual Element* getElementChild(const int& numberChild);
61 virtual void finalizeElementsChildren();
62
63protected:
64
66
67 //Attributs pour methode AMR
68 std::vector<ElementCartesian*> m_elementsChildren;
70private:
71};
72
73#endif // ELEMENTCARTESIAN_H
@ Y
Definition Tools.h:42
@ X
Definition Tools.h:42
@ Z
Definition Tools.h:42
Class for a coordinate system object such as coordinates of the vertex or a vector.
Definition Coord.h:43
const double & getX() const
Return the value in the x-direction of the Coord object.
Definition Coord.h:75
const double & getY() const
Return the value in the y-direction of the Coord object.
Definition Coord.h:77
const double & getZ() const
Return the value in the z-direction of the Coord object.
Definition Coord.h:79
Definition ElementCartesian.h:37
virtual void setPos(const double &X, const double &Y, const double &Z)
Definition ElementCartesian.cpp:60
virtual void setVolume(const double &volume)
default
Definition ElementCartesian.cpp:46
virtual void setLCFL(const double &lCFL)
Definition ElementCartesian.cpp:53
virtual void creerElementChild()
Definition ElementCartesian.cpp:112
virtual const double & getSizeY()
Definition ElementCartesian.h:53
virtual const double & getSizeZ()
Definition ElementCartesian.h:54
virtual void setPosZ(const double &Z)
Definition ElementCartesian.cpp:89
virtual void finalizeElementsChildren()
Definition ElementCartesian.cpp:132
std::vector< ElementCartesian * > m_elementsChildren
Definition ElementCartesian.h:68
virtual const double & getSizeX()
Definition ElementCartesian.h:52
virtual Element * getElementChildBack()
Definition ElementCartesian.cpp:126
virtual const Coord & getSize()
Definition ElementCartesian.h:55
ElementCartesian()
Definition ElementCartesian.cpp:35
virtual void setPosY(const double &Y)
Definition ElementCartesian.cpp:82
virtual ~ElementCartesian()
Definition ElementCartesian.cpp:39
Coord m_size
dimensions of Cartesian cell
Definition ElementCartesian.h:65
virtual Element * getElementChild(const int &numberChild)
Definition ElementCartesian.cpp:119
virtual void setSize(const double &sizeX, const double &sizeY, const double &sizeZ)
Definition ElementCartesian.cpp:96
virtual void setPosX(const double &X)
Definition ElementCartesian.cpp:75
Definition Element.h:47
Coord vector(const Element *e)
Definition Element.cpp:59