CAD Exchanger SDK
cadex::Mesh_NetgenOpenFOAMWriter Class Reference

Writes Netgen mesh to OpenFOAM format. More...

Inheritance diagram for cadex::Mesh_NetgenOpenFOAMWriter:
cadex::Mesh_NetgenBaseWriter

Public Member Functions

 Mesh_NetgenOpenFOAMWriter ()
 Constructor.
 
void SetBCProvider (const std::shared_ptr< Mesh_NetgenOpenFOAMBCProvider > &theBCProvider)
 Sets a custom OpenFOAM boundary conditions describer. More...
 
void SetCompression (bool theFlag)
 Switches the use of zlib compression. More...
 
- Public Member Functions inherited from cadex::Mesh_NetgenBaseWriter
bool WriteFile (const Mesh_NetgenMeshDS &theNetgenMeshDS, const Base_String &theFileName) const
 Writes internal Netgen mesh stored in theNetgenMeshDS to a target file.
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::Mesh_NetgenBaseWriter
 Mesh_NetgenBaseWriter (const std::shared_ptr< internal::Mesh_NetgenBaseWriterImpl > &theImpl)
 Constructor. More...
 
- Protected Attributes inherited from cadex::Mesh_NetgenBaseWriter
std::shared_ptr< internal::Mesh_NetgenBaseWriterImpl > myImpl
 Implementation object.
 

Detailed Description

Writes Netgen mesh to OpenFOAM format.

If the specific Boundary conditions provider (subclass of Mesh_NetgenOpenFOAMBCProvider) has been set with SetBCProvider() then the writer will output populated list of strings for each boundary condition. Otherwise a predefined contents will be output for each boundary condition:
{
type patch;
physicalType patch;
...
}

The writer supports a compressed mode (enabled with SetCompression()). In this case all the files (except the 'boundary' one) are compressed with gzip compression.

Member Function Documentation

◆ SetBCProvider()

void cadex::Mesh_NetgenOpenFOAMWriter::SetBCProvider ( const std::shared_ptr< Mesh_NetgenOpenFOAMBCProvider > &  theBCProvider)

Sets a custom OpenFOAM boundary conditions describer.

If not set, the default Netgen's one is used.

◆ SetCompression()

void cadex::Mesh_NetgenOpenFOAMWriter::SetCompression ( bool  theFlag)

Switches the use of zlib compression.

False by default.