14#include "arcane/utils/Iostream.h"
15#include "arcane/utils/StdHeader.h"
16#include "arcane/utils/HashTableMap.h"
17#include "arcane/utils/ValueConvert.h"
18#include "arcane/utils/ScopedPtr.h"
19#include "arcane/utils/ITraceMng.h"
20#include "arcane/utils/String.h"
21#include "arcane/utils/IOException.h"
22#include "arcane/utils/Collection.h"
23#include "arcane/utils/Enumerator.h"
24#include "arcane/utils/NotImplementedException.h"
25#include "arcane/utils/Real3.h"
27#include "arcane/FactoryService.h"
28#include "arcane/IMainFactory.h"
29#include "arcane/IMeshReader.h"
30#include "arcane/ISubDomain.h"
31#include "arcane/IMesh.h"
32#include "arcane/IMeshSubMeshTransition.h"
33#include "arcane/IItemFamily.h"
34#include "arcane/Item.h"
35#include "arcane/ItemEnumerator.h"
36#include "arcane/VariableTypes.h"
37#include "arcane/IVariableAccessor.h"
38#include "arcane/IParallelMng.h"
39#include "arcane/IIOMng.h"
40#include "arcane/IXmlDocumentHolder.h"
41#include "arcane/XmlNodeList.h"
42#include "arcane/XmlNode.h"
43#include "arcane/IMeshUtilities.h"
44#include "arcane/IMeshWriter.h"
45#include "arcane/BasicService.h"
46#include "arcane/SharedVariable.h"
48#include "arcane/AbstractService.h"
55#include "arcane/std/internal/IosGmsh.h"
102 case (IT_Vertex):
return MSH_PNT;
103 case (IT_Line2):
return MSH_LIN_2;
104 case (IT_Triangle3):
return MSH_TRI_3;
105 case (IT_Quad4):
return MSH_QUA_4;
106 case (IT_Tetraedron4):
return MSH_TET_4;
107 case (IT_Hexaedron8):
return MSH_HEX_8;
108 case (IT_Pentaedron6):
return MSH_PRI_6;
109 case (IT_Pyramid5):
return MSH_PYR_5;
112 case (IT_Pentagon5):
return MSH_PYR_5;
113 case (IT_HemiHexa5):
return MSH_PYR_5;
114 case (IT_DiTetra5):
return MSH_PYR_5;
116 case (IT_Hexagon6):
return MSH_PRI_6;
117 case (IT_HemiHexa6):
return MSH_PRI_6;
118 case (IT_AntiWedgeLeft6):
return MSH_PRI_6;
119 case (IT_AntiWedgeRight6):
return MSH_PRI_6;
121 case (IT_Heptaedron10):
return MSH_TRI_10;
123 case (IT_Octaedron12):
return MSH_TRI_12;
125 case (IT_HemiHexa7):
return IT_NullType;
132 info() <<
"_switchMshType Non supporté (" <<
msh_type <<
")";
135 info() <<
"_switchMshType non switché (" <<
msh_type <<
")";
174 throw IOException(
"VtkMeshIOService::writeMeshToFile(): Unable to open file");
178 ofile <<
"$MeshFormat\n";
179 ofile <<
"2.0 0 " << (
int)
sizeof(
double) <<
"\n";
180 ofile <<
"$EndMeshFormat\n";
199 ofile <<
"$EndNodes\n";
200 ofile <<
"$Elements\n";
207 int nbNodes = cell.
nbNode();
210 ofile <<
" 1 " << nbNodes <<
" ";
213 for(Integer
j=0;
j<nbNodes;++
j)
218 ofile <<
"$EndElements\n";
#define ARCANE_REGISTER_SUB_DOMAIN_FACTORY(aclass, ainterface, aname)
Enregistre un service de fabrique pour la classe aclass.
Classe de base d'un service.
virtual Integer nbCell()=0
Nombre de mailles du maillage.
virtual Integer nbNode()=0
Nombre de noeuds du maillage.
virtual NodeGroup allNodes()=0
Groupe de tous les noeuds.
virtual CellGroup allCells()=0
Groupe de toutes les mailles.
Interface d'un service d'écriture d'un maillage.
virtual SharedVariableNodeReal3 sharedNodesCoordinates()=0
Coordonnées des noeuds.
Exception lorsqu'une erreur d'entrée/sortie est détectée.
Groupe d'entités de maillage.
Node node(Int32 i) const
i-ème noeud de l'entité
Int32 nbNode() const
Nombre de noeuds de l'entité
ItemUniqueId uniqueId() const
Identifiant unique sur tous les domaines.
Int16 type() const
Type de l'entité
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Ecriture des fichiers de maillage aux format msh.
Integer _switchMshType(Integer mshElemType)
virtual void build()
Construction de niveau build du service.
virtual bool writeMeshToFile(IMesh *mesh, const String &file_name)
writeMeshToFile écrit au format gmsh tel que spécifié ci-dessous:
Classe gérant un vecteur de réel de dimension 3.
Structure contenant les informations pour créer un service.
Chaîne de caractères unicode.
TraceMessage info() const
Flot pour un message d'information.
double toDouble(Real r)
Converti un Real en double.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-