2013-05-02 23:51:04 +06:00
|
|
|
#ifndef WRITEUSER
|
|
|
|
#define WRITEUSER
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* File: writeuser.hh */
|
|
|
|
/* Authors: many */
|
|
|
|
/* Date: 10. Dec. 97 */
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern
|
2013-05-02 23:51:04 +06:00
|
|
|
void WriteFile (int typ,
|
|
|
|
const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const char * filename,
|
|
|
|
const char * geomfile = NULL,
|
|
|
|
double h = 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-19 13:08:30 +05:00
|
|
|
DLL_HEADER extern
|
2013-05-02 23:51:04 +06:00
|
|
|
void ReadFile (Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteNeutralFormat (const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteSurfaceFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteSTLFormat (const Mesh & mesh,
|
|
|
|
const string & 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,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteVRMLFormat (const Mesh & mesh,
|
|
|
|
bool faces,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteFEPPFormat (const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteGmshFormat (const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & 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,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
// Philippose - 25/10/2009
|
|
|
|
// Added OpenFOAM 1.5+ Mesh Export support
|
|
|
|
extern
|
|
|
|
void WriteOpenFOAM15xFormat (const Mesh & mesh,
|
|
|
|
const string & casename,
|
2014-08-30 06:15:59 +06:00
|
|
|
const bool compressed);
|
2013-05-02 23:51:04 +06:00
|
|
|
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteUserChemnitz (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteJCMFormat (const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteDiffPackFormat (const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteTochnogFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteTecPlotFormat (const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteAbaqusFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteFluentFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WritePermasFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteFEAPFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteElmerFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
extern
|
|
|
|
void WriteEdgeElementFormat (const Mesh & mesh,
|
2014-08-30 06:15:59 +06:00
|
|
|
const NetgenGeometry & geom,
|
2013-05-02 23:51:04 +06:00
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef OLIVER
|
|
|
|
extern
|
|
|
|
void WriteTETFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern void ReadTETFormat (Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
extern void ReadFNFFormat (Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void WriteDolfinFormat (const Mesh & mesh,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
|
2015-10-19 13:08:30 +05:00
|
|
|
extern void DLL_HEADER RegisterUserFormats (Array<const char*> & names,
|
2013-05-02 23:51:04 +06:00
|
|
|
Array<const char*> & extensions);
|
|
|
|
|
|
|
|
|
2015-10-19 13:08:30 +05:00
|
|
|
extern bool DLL_HEADER WriteUserFormat (const string & format,
|
2013-05-02 23:51:04 +06:00
|
|
|
const Mesh & mesh,
|
|
|
|
const NetgenGeometry & geom,
|
|
|
|
const string & filename);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|