MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
vtk.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  mfem
 

Functions

int mfem::BarycentricToVTKTriangle (int *b, int ref)
 Return the VTK node index of the barycentric point b in a triangle with refinement level ref.
 
int mfem::BarycentricToVTKTetra (int *b, int ref)
 
int mfem::VTKTriangleDOFOffset (int ref, int i, int j)
 
int mfem::CartesianToVTKPrism (int i, int j, int k, int ref)
 
int mfem::CartesianToVTKTensor (int idx_in, int ref, Geometry::Type geom)
 
void mfem::CreateVTKElementConnectivity (Array< int > &con, Geometry::Type geom, int ref)
 Create the VTK element connectivity array for a given element geometry and refinement level.
 
void mfem::WriteVTKEncodedCompressed (std::ostream &os, const void *bytes, uint32_t nbytes, int compression_level)
 Outputs encoded binary data in the base 64 format needed by VTK.
 
bool mfem::IsBigEndian ()
 
const char * mfem::VTKByteOrder ()
 Determine the byte order and return either "BigEndian" or "LittleEndian".
 
template<>
void mfem::WriteBinaryOrASCII< uint8_t > (std::ostream &os, std::vector< char > &buf, const uint8_t &val, const char *suffix, VTKFormat format)
 Specialization of WriteBinaryOrASCII for uint8_t to ensure ASCII output is numeric (rather than interpreting val as a character.)
 
template<>
void mfem::WriteBinaryOrASCII< double > (std::ostream &os, std::vector< char > &buf, const double &val, const char *suffix, VTKFormat format)
 Specialization of WriteBinaryOrASCII for double.
 
template<>
void mfem::WriteBinaryOrASCII< float > (std::ostream &os, std::vector< char > &buf, const float &val, const char *suffix, VTKFormat format)
 Specialization of WriteBinaryOrASCII<T> for float.
 
void mfem::WriteBase64WithSizeAndClear (std::ostream &os, std::vector< char > &buf, int compression_level)
 Encode in base 64 (and potentially compress) the given data, write it to the output stream (with a header) and clear the buffer.