16#include <Champ_front_ALE_Beam.h>
17#include <Frontiere_dis_base.h>
18#include <Domaine_Cl_dis_base.h>
20#include <Domaine_ALE.h>
22#include <Domaine_VEF.h>
24#include <TRUSTVects.h>
48 Cerr<<
"Champ_front_ALE_Beam::remplir_vit_som_bord_ALE "<<finl;
49 const Frontiere& front=la_frontiere_dis->frontiere();
50 Cerr<<
" front nom := "<<front.
le_nom()<<finl;
52 const Domaine& domaine=front.
domaine();
53 const Faces& faces=front.
faces();
59 for(
int i=0; i<nbBordsBeam; i++)
66 Cerr <<
"The CL name and the Beam name must be the same!";
70 double dt = dom_ale.
get_dt();
73 const int modes_per_plane = nbModes / nb_planes;
76 int nb_som_tot=domaine.nb_som_tot();
80 for( i=0; i<nb_faces; i++)
82 for( k=0; k<nbsf; k++)
84 double x = domaine.coord(faces.
sommet(i, k), 0);
90 DoubleTab phi(3,nb_planes);
92 for (
int plane = 0; plane < nb_planes; ++plane)
94 for (
int mode = 0; mode < modes_per_plane; ++mode)
99 for(
int comp=0; comp<
nb_comp(); comp++)
101 value[comp] +=beamVelocity(mode, plane)*phi(comp,plane);
class Ch_front_var_instationnaire_dep This abstract class represents a field on a boundary,
void remplir_vit_som_bord_ALE(double) override
DoubleTab vit_som_bord_ALE
const int & getBeamNbModes(const int &) const
DoubleTab interpolationOnThe3DSurface(const int &, const double &x, const double &y, const double &z, const DoubleTab &u, const DoubleTab &R) const
const int & getBeamNbBeam() const
const int & getBeamNbPlanes(const int &) const
const DoubleTab & getBeamRotation(const int &, const int &) const
const double & get_dt() const
const DoubleTab & getBeamDisplacement(const int &, const int &) const
const Nom & getBeamName(const int &) const
DoubleTab & getBeamVelocity(const int &, const double &tps, const double &dt)
Class defining operators and methods for all reading operation in an input flow (file,...
int_t sommet(int_t, int) const
Returns the number of the j-th vertex of the i-th face.
int nb_som_faces() const
Returns the number of vertices per face.
virtual int nb_comp() const
const Domaine_t & domaine() const
Returns the domain associated with the boundary (const version).
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
int_t nb_faces() const
Returns the number of faces of the boundary.
const Faces_t & faces() const
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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.