16#include <Rectangle_2D_axi.h>
22template <
typename _SIZE_>
29template <
typename _SIZE_>
39template <
typename _SIZE_>
42 static Nom nom=
"VOXEL8";
51template <
typename _SIZE_>
82template <
typename _SIZE_>
85 const Domaine_t& domaine=mon_dom.valeur();
88 int_t size_tot = domaine.nb_elem_tot();
90 for (
int_t num_poly=0; num_poly<size_tot; num_poly++)
92 S1 = domaine.sommet_elem(num_poly,0);
93 S2 = domaine.sommet_elem(num_poly,1);
94 S3 = domaine.sommet_elem(num_poly,2);
95 r1= domaine.coord(S1,0);
96 r2= domaine.coord(S2,0);
99 dr =std::fabs( domaine.coord(S2,0) - domaine.coord(S1,0));
100 dz =std::fabs( domaine.coord(S3,1) - domaine.coord(S1,1));
101 volumes[num_poly]= 2*M_PI*(r*dr+0.5*dr*dr)*dz;
virtual void calculer_centres_gravite(DoubleTab_t &) const
Compute all centers of mass of all elements in the domain.
Class defining operators and methods for all reading operation in an input flow (file,...
class Nom: a character string for naming TRUST objects.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Class Rectangle_2D_axi: represents the deformed rectangle in.
void calculer_centres_gravite(DoubleTab_t &) const override
Computes the centers of gravity of all elements of the domain associated with the geometric element.
const Nom & nom_lml() const override
Returns the LML name of a rectangle_2D_axi = "VOXEL8".
DoubleTab_T< _SIZE_ > DoubleTab_t
void calculer_volumes(DoubleVect_t &) const override
Computes the volumes of the elements of the associated domain.
Domaine_32_64< _SIZE_ > Domaine_t
DoubleVect_T< _SIZE_ > DoubleVect_t
Rectangle class — represents the rectangular geometric element.
Base class for output streams.
_SIZE_ size_totale() const