ECOGEN 6.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{
38 public:
40 ~ElementCartesian() override;
41
42 void setVolume(const double& volume) override;
43 void setLCFL(const double& lCFL) override;
44 void setPos(const double& X, const double& Y, const double& Z) override;
45 void setPos(const Coord& pos) override;
46 void setPosX(const double& X) override;
47 void setPosY(const double& Y) override;
48 void setPosZ(const double& Z) override;
49 void setSize(const double& sizeX, const double& sizeY, const double& sizeZ) override;
50 void setSize(const Coord& size) override;
51
52 const double& getSizeX() override { return m_size.getX(); };
53 const double& getSizeY() override { return m_size.getY(); };
54 const double& getSizeZ() override { return m_size.getZ(); };
55 const Coord& getSize() override { return m_size; };
56
57 //Pour methode AMR
58 void creerElementChild() override;
59 Element* getElementChild(const int& numberChild) override;
60 Element* getElementChildBack() override;
61 void finalizeElementsChildren() override;
62
63 protected:
65
66 //Attributs pour methode AMR
67 std::vector<ElementCartesian*> m_elementsChildren;
68
69 private:
70};
71
72#endif // ELEMENTCARTESIAN_H
@ Y
Definition Tools.h:51
@ X
Definition Tools.h:50
@ Z
Definition Tools.h:52
Class for a coordinate system object such as coordinates of the vertex or a vector.
Definition Coord.h:43
void finalizeElementsChildren() override
Definition ElementCartesian.cpp:92
const Coord & getSize() override
Definition ElementCartesian.h:55
Element * getElementChild(const int &numberChild) override
Definition ElementCartesian.cpp:85
void setPosY(const double &Y) override
Definition ElementCartesian.cpp:63
Element * getElementChildBack() override
Definition ElementCartesian.cpp:89
void setLCFL(const double &lCFL) override
Definition ElementCartesian.cpp:47
std::vector< ElementCartesian * > m_elementsChildren
Definition ElementCartesian.h:67
void setPos(const double &X, const double &Y, const double &Z) override
Definition ElementCartesian.cpp:51
const double & getSizeZ() override
Definition ElementCartesian.h:54
void creerElementChild() override
Definition ElementCartesian.cpp:81
ElementCartesian()
Definition ElementCartesian.cpp:35
void setPosZ(const double &Z) override
Definition ElementCartesian.cpp:67
~ElementCartesian() override
Definition ElementCartesian.cpp:39
Coord m_size
dimensions of Cartesian cell
Definition ElementCartesian.h:64
void setVolume(const double &volume) override
default
Definition ElementCartesian.cpp:43
const double & getSizeX() override
Definition ElementCartesian.h:52
const double & getSizeY() override
Definition ElementCartesian.h:53
void setSize(const double &sizeX, const double &sizeY, const double &sizeZ) override
Definition ElementCartesian.cpp:71
void setPosX(const double &X) override
Definition ElementCartesian.cpp:59
Definition Element.h:47
Element()
Definition Element.cpp:35