Herezh_dev/Elements/Geometrie/ElemGeom/Point/GeomPoint.h

120 lines
5.6 KiB
C
Raw Normal View History

// 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) <https://www.irdl.fr/>.
//
// Herezh++ is distributed under GPL 3 license ou ultérieure.
//
2023-05-03 17:23:49 +02:00
// Copyright (C) 1997-2022 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 <https://www.gnu.org/licenses/>.
//
// For more information, please consult: <https://herezh.irdl.fr/>.
/************************************************************************
* DATE: 06/01/00 *
* $ *
* AUTEUR: G RIO (mailto:gerardrio56@free.fr) *
* $ *
* PROJET: Herezh++ *
* $ *
************************************************************************
* BUT: Definir La geometrie d'un point . *
* L'interpolation est constant. *
* $ *
* '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' * *
* VERIFICATION: *
* *
* ! date ! auteur ! but ! *
* ------------------------------------------------------------ *
* ! ! ! ! *
* $ *
* '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' *
* MODIFICATIONS: *
* ! date ! auteur ! but ! *
* ------------------------------------------------------------ *
* $ *
************************************************************************/
#ifndef POINT_H
#define POINT_H
#include"ElemGeomC0.h"
/// @addtogroup Les_Elements_de_geometrie
/// @{
///
class GeomPoint : public ElemGeomC0
{
public :
// CONSTRUCTEURS :
// par defaut on considere un point d'integ et un noeud
GeomPoint();
// de copie
GeomPoint(const GeomPoint& a);
// DESTRUCTEUR :
~GeomPoint() {};
// retourne le tableau des derivees secondes des fonctions d'interpolation
inline Tableau < Mat_pleine >& taD2phi() { return tabD2Phi;};
// création d'élément identiques : cette fonction est analogue à la fonction new
// elle y fait d'ailleurs appel. l'implantation est spécifique dans chaque classe
// dérivée
// pt est le pointeur qui est affecté par la fonction
ElemGeomC0 * newElemGeomC0(ElemGeomC0 * pt) ;
//--------- cas de coordonnees locales quelconques ----------------
// retourne les fonctions d'interpolation au point M (en coordonnees locales)
2023-05-03 17:23:49 +02:00
const Vecteur& Phi_point(const Coordonnee& M);
// retourne les derivees des fonctions d'interpolation au point M (en coordonnees locales)
2023-05-03 17:23:49 +02:00
const Mat_pleine& Dphi_point(const Coordonnee& M);
// en fonction de coordonnees locales, retourne true si le point est a l'interieur
// de l'element, false sinon
bool Interieur(const Coordonnee& M);
// en fonction de coordonnees locales, retourne le point local P, maximum intérieur à l'élément, donc sur la frontière
// dont les coordonnées sont sur la droite GM: c-a-d GP = alpha GM, avec apha maxi et P appartenant à la frontière
// de l'élément, G étant le centre de gravité, sauf si GM est nul, dans ce cas retour de M
Coordonnee Maxi_Coor_dans_directionGM(const Coordonnee& M);
// ---------- methodes particuliere----------------------------
// fourni la coordonnees ksi du point d'integ i
inline double& KSI(int i) { return ptInteg(i)(1);};
protected :
// variables de stockage transitoire, locales pour éviter de les reconstruire à chaque appel
Vecteur phi_M; // le tableau phi au point M(en coordonnees locales)
Mat_pleine dphi_M; //les derivees des fonctions d'interpolation au point M(en coordonnees locales)
// VARIABLES PROTEGEES :
Tableau < Mat_pleine > tabD2Phi; // tabD2Phi(ni) = D2phi pour le point d'intégration ni
// tel que, D2phi(i,r) =
// valeur de la derivee seconde de la fonction phi(r) par rapport a la coordonnee`
// locale i = 1
// METHODES PROTEGEES :
};
/// @} // end of group
#endif