Version: 9.12.0
MED_GaussDef.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef MED_GaussDef_HeaderFile
21 #define MED_GaussDef_HeaderFile
22 
23 #include "MED_WrapperDef.hxx"
24 
25 #include <vector>
26 
27 namespace MED
28 {
29  class TShapeFun;
30  typedef std::vector<double> TDoubleVector;
31 
35  struct TGaussDef
36  {
37  int myType;
41 
54  MEDWRAPPER_EXPORT TGaussDef(const int geomType, const int nbPoints, const int variant=1);
55 
56  MEDWRAPPER_EXPORT int dim() const { return myType/100; }
57  MEDWRAPPER_EXPORT int nbPoints() const { return myWeights.capacity(); }
58 
59  private:
60  void add(const double x, const double weight);
61  void add(const double x, const double y, const double weight);
62  void add(const double x, const double y, const double z, const double weight);
63  void setRefCoords(const TShapeFun& aShapeFun);
64  };
65 }
66 
67 #endif // MED_GaussDef_HeaderFile
#define MEDWRAPPER_EXPORT
Definition: MED_WrapperDef.hxx:33
Definition: MED_Algorithm.cxx:28
std::vector< double > TDoubleVector
Definition: MED_GaussDef.hxx:29
Description of family of integration points.
Definition: MED_GaussDef.hxx:36
int nbPoints() const
Definition: MED_GaussDef.hxx:57
TDoubleVector myCoords
coordinates of Gauss points
Definition: MED_GaussDef.hxx:39
int myType
element geometry (EGeometrieElement or med_geometrie_element)
Definition: MED_GaussDef.hxx:37
int dim() const
Definition: MED_GaussDef.hxx:56
TGaussDef(const int geomType, const int nbPoints, const int variant=1)
Creates definition of gauss points family.
Definition: MED_GaussDef.cxx:71
TDoubleVector myRefCoords
description of reference points
Definition: MED_GaussDef.hxx:38
TDoubleVector myWeights
weights, len(weights)==<nb of gauss points>
Definition: MED_GaussDef.hxx:40
void add(const double x, const double weight)
Definition: MED_GaussDef.cxx:28
void setRefCoords(const TShapeFun &aShapeFun)
Definition: MED_GaussDef.cxx:58
Shape function definitions.
Definition: MED_GaussUtils.hxx:123