openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
Functions related to mesh IO. More...
#include <cstddef>
#include <list>
#include <string>
#include <cstring>
#include <unistd.h>
#include <mpi.h>
#include "SF_container.h"
#include "SF_io_base.h"
#include "SF_network.h"
#include "SF_globals.h"
#include "SF_vector.h"
Go to the source code of this file.
Namespaces | |
SF | |
Macros | |
#define | HDR_SIZE 1024 |
Functions | |
size_t | SF::read_num_pts (std::string basename) |
Function returns the number of points in a CARP points file. More... | |
void | SF::read_headers (FILE *ele_fd, FILE *fib_fd, bool read_binary, size_t &numelem, bool &twoFib) |
Read the header from the element and fiber files. More... | |
void | SF::write_elem_headers (FILE *&ele_fd, FILE *&fib_fd, bool binary, size_t numelem, bool twoFib) |
Write the header of the element and fiber files. More... | |
void | SF::write_pts_header (FILE *&pts_fd, bool binary, size_t numpts) |
Write the header of the points file. More... | |
template<class T , class S > | |
void | SF::read_elem_block (FILE *&fd, bool read_binary, size_t bstart, size_t bsize, meshdata< T, S > &mesh) |
Read a block of size bsize from an CARP element file. More... | |
template<class T , class S > | |
void | SF::write_elem_block (FILE *fd, bool write_binary, const meshdata< T, S > &mesh) |
Write the local element block to a file. More... | |
template<class T , class S > | |
void | SF::read_fib_block (FILE *&fd, bool read_binary, bool twoFib, size_t bsize, meshdata< T, S > &mesh) |
Read a chunk of fibers from a file descriptor. More... | |
template<class T , class S > | |
void | SF::write_fib_block (FILE *&fd, bool write_binary, const meshdata< T, S > &mesh) |
Write the local chunk of fibers to a file. More... | |
template<class T , class S > | |
void | SF::read_elements (meshdata< T, S > &mesh, std::string basename) |
Read the element data (elements and fibers) of a CARP mesh. More... | |
template<class T , class S > | |
void | SF::write_elements (const meshdata< T, S > &mesh, bool binary, std::string basename) |
Write the element data (elements and fibers) of a CARP mesh. More... | |
template<class T , class S > | |
void | SF::write_surface (const meshdata< T, S > &surfmesh, std::string surffile) |
template<class S > | |
void | SF::read_pts_block (FILE *&fd, bool read_binary, size_t bsize, vector< S > &xyz) |
Read a chunk of points from a file descriptor. More... | |
template<class S > | |
void | SF::write_pts_block (FILE *&fd, bool write_binary, const vector< S > &xyz) |
Write a chunk of points to a file. More... | |
template<class T , class S > | |
void | SF::read_points (const std::string basename, const MPI_Comm comm, vector< S > &pts, vector< T > &ptsidx) |
Read the points and insert them into a list of meshes. More... | |
template<class T , class S > | |
void | SF::insert_points (const vector< S > &pts, const vector< T > &ptsidx, std::list< meshdata< T, S > *> &meshlist) |
Insert the points from the read-in buffers into a list of distributed meshes. More... | |
template<class T , class S > | |
void | SF::writeVTKmesh_binary (const meshdata< T, S > &mesh, std::string file) |
Write a mesh in binary vtk format. More... | |
#define HDR_SIZE 1024 |
Definition at line 44 of file SF_mesh_io.h.