netgen/libsrc/interface/writeuser.hpp

184 lines
5.4 KiB
C++
Raw Normal View History

#ifndef WRITEUSER
#define WRITEUSER
/**************************************************************************/
/* File: writeuser.hh */
/* Authors: many */
/* Date: 10. Dec. 97 */
/**************************************************************************/
2016-07-10 21:07:36 +05:00
namespace netgen {
2015-10-19 13:08:30 +05:00
DLL_HEADER extern
void WriteFile (int typ,
const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename,
const filesystem::path & geomfile = "",
double h = 0);
2015-10-19 13:08:30 +05:00
DLL_HEADER extern
void ReadFile (Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteNeutralFormat (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteSurfaceFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteSTLFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
// Philippose - 16 August 2010
// Added the STL Extended format in which
// each face of the geometry is treated as
// a separate "solid" entity in the STL file
extern
void WriteSTLExtFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteVRMLFormat (const Mesh & mesh,
bool faces,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteFEPPFormat (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteGmshFormat (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
// Philippose - 29/01/2009
// Added GMSH v2.xx Mesh Export support
void WriteGmsh2Format (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
// Philippose - 25/10/2009
// Added OpenFOAM 1.5+ Mesh Export support
extern
void WriteOpenFOAM15xFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & casename,
2014-08-30 06:15:59 +06:00
const bool compressed);
extern
void WriteUserChemnitz (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteJCMFormat (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteDiffPackFormat (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteTochnogFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteTecPlotFormat (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteAbaqusFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteFluentFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WritePermasFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteFEAPFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteElmerFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern
void WriteEdgeElementFormat (const Mesh & mesh,
2014-08-30 06:15:59 +06:00
const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
#ifdef OLIVER
extern
void WriteTETFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
#endif
extern void ReadTETFormat (Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
extern void ReadFNFFormat (Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
2020-03-11 15:48:05 +05:00
extern void DLL_HEADER ReadCGNSMesh (Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
2020-03-11 15:48:05 +05:00
2020-08-04 14:12:47 +05:00
extern void DLL_HEADER WriteCGNSMesh (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
2020-08-04 14:12:47 +05:00
// read/write mesh and solutions from CGNS file
2020-03-11 15:48:05 +05:00
extern tuple<shared_ptr<Mesh>, vector<string>, vector<Array<double>>, vector<int>>
2022-02-17 20:52:07 +05:00
DLL_HEADER ReadCGNSFile(const filesystem::path & filename, int base);
2020-03-11 15:48:05 +05:00
2022-02-17 20:52:07 +05:00
extern void DLL_HEADER WriteCGNSFile(shared_ptr<Mesh> mesh, const filesystem::path & filename, vector<string> fields,
2020-08-04 14:12:47 +05:00
vector<Array<double>> values, vector<int> locations);
2020-03-11 15:48:05 +05:00
void WriteDolfinFormat (const Mesh & mesh,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
2019-07-09 13:39:16 +05:00
extern void DLL_HEADER RegisterUserFormats (NgArray<const char*> & names,
NgArray<const char*> & extensions);
2022-02-17 20:52:07 +05:00
extern bool DLL_HEADER WriteUserFormat (const filesystem::path & format,
const Mesh & mesh,
// const NetgenGeometry & geom,
2022-02-17 20:52:07 +05:00
const filesystem::path & filename);
2016-07-10 21:07:36 +05:00
}
#endif