00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef __GET_MESH_H
00035 #define __GET_MESH_H
00036
00037 #include <stdlib.h>
00038 #include <iostream>
00039 #include <fstream>
00040 #include <sstream>
00041 using std::ostream;
00042 using std::ifstream;
00043 using std::ofstream;
00044 using std::istringstream;
00045 using std::endl;
00046
00047 #include <iomanip>
00048 using std::setw;
00049 using std::ios;
00050 using std::setprecision;
00051
00052
00053 #include "OFELI_Config.h"
00054 #include "FFI.h"
00055 #include "Mesh.h"
00056 #include "MeshUtil.h"
00057 #include "Point.h"
00058 #include "util.h"
00059 #include "DMatrix.h"
00060
00061
00062 namespace OFELI {
00063
00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00070 struct El {
00071 size_t label, type, region, nb_nodes, node[30];
00072 int code[6], cc;
00073 };
00074
00075 struct Nd {
00076 size_t label;
00077 int code[6], cc;
00078 double x[3];
00079 };
00080
00081
00082 #endif
00083
00084
00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00086 void getAMD(const string &file, Mesh &mesh, size_t nb_dof=1);
00087 #endif
00088
00104 void getBamg(const string &file, Mesh &mesh, size_t nb_dof=1);
00105
00122 void getEasymesh(const string &file, Mesh &mesh, size_t nb_dof=1);
00123
00138 void getEMC2(const string &file, Mesh &mesh, size_t nb_dof=1);
00139
00153 void getGambit(const string &file, Mesh &mesh, size_t nb_dof=1);
00154
00166 void getGmsh(const string &file, Mesh &mesh, size_t nb_dof=1);
00167
00180 void getMatlab(const string &file, Mesh &mesh, size_t nb_dof=1);
00181
00193 void getNetgen(const string &file, Mesh &mesh, size_t nb_dof=1);
00194
00207 void getTetgen(const string &file, Mesh &mesh, size_t nb_dof=1);
00208
00209
00223 void getTriangle(const string &file, Mesh &mesh, size_t nb_dof=1);
00224
00225 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00226 struct ErrorIngetMesh {
00227 void Message(const char *file, size_t line, int code, const char *p1=NULL, const string &p2="", int p3=0);
00228 };
00229 #endif
00230
00231 }
00232
00233 #endif