mFES - molecular Finite Element Solver  0.4
Namespaces | Functions
writeOpenFOAM15x.cpp File Reference

Export Netgen Mesh in the OpenFOAM 1.5+ File format. More...

#include <mystdlib.h>
#include <myadt.hpp>
#include <linalg.hpp>
#include <csg.hpp>
#include <meshing.hpp>
#include <sys/stat.h>
#include "writeuser.hpp"

Namespaces

namespace  netgen
 

namespace defined for NETGEN


Functions

void netgen::WriteFile (int typ, const Mesh &mesh, const CSGeometry &geom, const char *filename, const char *geomfile=NULL, double h=0)
void netgen::ReadFile (Mesh &mesh, const string &filename)
void netgen::WriteNeutralFormat (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::WriteSurfaceFormat (const Mesh &mesh, const string &filename)
void netgen::WriteSTLFormat (const Mesh &mesh, const string &filename)
void netgen::WriteSTLExtFormat (const Mesh &mesh, const string &filename)
void netgen::WriteVRMLFormat (const Mesh &mesh, bool faces, const string &filename)
void netgen::WriteFEPPFormat (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::WriteGmshFormat (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::WriteGmsh2Format (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::WriteOpenFOAM15xFormat (const Mesh &mesh, const string &casename, const bool compressed)
void netgen::WriteUserChemnitz (const Mesh &mesh, const string &filename)
void netgen::WriteJCMFormat (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::WriteDiffPackFormat (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::WriteTochnogFormat (const Mesh &mesh, const string &filename)
void netgen::WriteTecPlotFormat (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::WriteAbaqusFormat (const Mesh &mesh, const string &filename)
void netgen::WriteFluentFormat (const Mesh &mesh, const string &filename)
void netgen::WritePermasFormat (const Mesh &mesh, const string &filename)
void netgen::WriteFEAPFormat (const Mesh &mesh, const string &filename)
void netgen::WriteElmerFormat (const Mesh &mesh, const string &filename)
void netgen::WriteEdgeElementFormat (const Mesh &mesh, const CSGeometry &geom, const string &filename)
void netgen::ReadTETFormat (Mesh &mesh, const string &filename)
void netgen::ReadFNFFormat (Mesh &mesh, const string &filename)
void netgen::WriteDolfinFormat (const Mesh &mesh, const string &filename)
void netgen::RegisterUserFormats (Array< const char * > &names, Array< const char * > &extensions)
bool netgen::WriteUserFormat (const string &format, const Mesh &mesh, const NetgenGeometry &geom, const string &filename)

Detailed Description

Export Netgen Mesh in the OpenFOAM 1.5+ File format.

Author:
Philippose Rajan
Date:
25 October 2009

This function extends the export capabilities of Netgen to include the OpenFOAM 1.5+ File Format.

The OpenFOAM 1.5+ mesh format consists of a set of 5 files which together define the mesh points, faces, cells and boundary conditions.

The files are: 1. points -> A list of the point co-ordinates 2. faces -> A list of the faces with format <n>(pnt_ind1 pnt_ind2 .... pnt_ind<n>) 3. owner -> The owner cell of each face 4. neighbour -> The neighbour cell of each face 5. boundary -> The set of boundaries with name, start face, and num. of faces

For a detailed description of the format, refer to the following link: http://openfoamwiki.net/index.php/Write_OpenFOAM_meshes