// This file is part of the Herezh++ application. // // The finite element software Herezh++ is dedicated to the field // of mechanics for large transformations of solid structures. // It is developed by Gérard Rio (APP: IDDN.FR.010.0106078.000.R.P.2006.035.20600) // INSTITUT DE RECHERCHE DUPUY DE LÔME (IRDL) . // // Herezh++ is distributed under GPL 3 license ou ultérieure. // // Copyright (C) 1997-2021 Université Bretagne Sud (France) // AUTHOR : Gérard Rio // E-MAIL : gerardrio56@free.fr // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // For more information, please consult: . /************************************************************************ * * * DATE: 21/04/2005 * * $ * * AUTEUR: G RIO (mailto:gerardrio56@free.fr) * * $ * * PROJET: Herezh++ * * $ * ************************************************************************ * BUT: Element triangulaire, cubique 3 pt d'integ. * * $ * * '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' * * * VERIFICATION: * * * * ! date ! auteur ! but ! * * ------------------------------------------------------------ * * ! ! ! ! * * * * $ * * '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' * * MODIFICATIONS: * * * ! date ! auteur ! but ! * * ------------------------------------------------------------ * * * * $ * * * ************************************************************************/ // -----------classe pour un calcul de mecanique--------- #ifndef TRIACUB_H #define TRIACUB_H #include "ParaGlob.h" #include "ElemMeca.h" #include "Met_abstraite.h" #include "GeomTriangle.h" #include "Noeud.h" #include "UtilLecture.h" #include "Tenseur.h" #include "NevezTenseur.h" #include "Deformation.h" #include "TriaMemb.h" #include "FrontSegQuad.h" #include "FrontTriaQuad.h" /// @addtogroup groupe_des_elements_finis /// @{ /// class TriaCub : public TriaMemb { public : // CONSTRUCTEURS : // Constructeur par defaut TriaCub (); // Constructeur fonction d'une epaisseur et eventuellement d'un numero // d'identification TriaCub (double epaiss,int num_mail=0,int num_id=-3); // Constructeur fonction d'un numero de maillage et d'identification TriaCub (int num_mail,int num_id); // Constructeur fonction d'une epaisseur, d'un numero d'identification, // du tableau de connexite des noeuds TriaCub (double epaiss,int num_mail,int num_id,const Tableau& tab); // Constructeur de copie TriaCub (const TriaCub& tria); // DESTRUCTEUR : ~TriaCub (); // création d'un élément de copie: utilisation de l'opérateur new et du constructeur de copie // méthode virtuelle Element* Nevez_copie() const { Element * el= new TriaCub(*this); return el;}; // Surcharge de l'operateur = : realise l'egalite entre deux instances de TriaCub TriaCub& operator= (TriaCub& tria); // METHODES : // 1) derivant des virtuelles pures // affichage dans la sortie transmise, des variables duales "nom" // aux differents points d'integration // dans le cas ou nom est vide, affichage de "toute" les variables void AfficheVarDual(ofstream& sort, Tableau& nom); protected : // adressage des frontières linéiques et surfacique // définit dans les classes dérivées, et utilisées pour la construction des frontières ElFrontiere* new_frontiere_lin(int ,Tableau & tab, DdlElement& ddelem) { return ((ElFrontiere*) (new FrontSegQuad(tab,ddelem)));}; ElFrontiere* new_frontiere_surf(int ,Tableau & tab, DdlElement& ddelem) { return ((ElFrontiere*) (new FrontTriaQuad(tab,ddelem)));}; // VARIABLES PRIVEES : // place memoire commune a tous les elements TriaCub static TriaMemb::DonnComTria * doCoMembQ3; // idem mais pour les indicateurs qui servent pour l'initialisation static TriaMemb::UneFois uneFoisQ3; class NombresConstruireTriaCub : public NombresConstruire { public: NombresConstruireTriaCub(); }; static NombresConstruireTriaCub nombre_V; // les nombres propres à l'élément // GESTION AUTOMATIQUE D'AJOUT D'ELEMENT DANS LE PROGRAMME //ajout de l'element dans la liste : listTypeElemen, geree par la class Element class ConsTriaCub : public ConstrucElement { public : ConsTriaCub () { NouvelleTypeElement nouv(TRIANGLE,CUBIQUE,MECA_SOLIDE_DEFORMABLE,this); if (ParaGlob::NiveauImpression() >= 4) cout << "\n initialisation TriaCub" << endl; Element::listTypeElement.push_back(nouv); }; Element * NouvelElement(int num_maill,int num) // un nouvel élément sans rien {Element * pt; pt = new TriaCub (num_maill,num) ; return pt;}; // ramene true si la construction de l'element est possible en fonction // des variables globales actuelles: ex en fonction de la dimension bool Element_possible() { if (ParaGlob::Dimension() >= 2) return true; else return false;}; }; static ConsTriaCub consTriaCub; }; /// @} // end of group #endif