omega_h
Reliable mesh adaptation
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
Omega_h_file.hpp File Reference
#include <iosfwd>
#include <vector>
#include <fstream>
#include <Omega_h_config.h>
#include <Omega_h_array.hpp>
#include <Omega_h_comm.hpp>
#include <Omega_h_defines.hpp>
#include <Omega_h_filesystem.hpp>
#include <Omega_h_mesh.hpp>
#include <Omega_h_mixedMesh.hpp>
#include <Omega_h_tag.hpp>
#include "MeshSim.h"

Go to the source code of this file.

Classes

class  Omega_h::vtk::Writer
 
class  Omega_h::vtk::FullWriter
 

Namespaces

 Omega_h
 
 Omega_h::meshsim
 
 Omega_h::exodus
 

Macros

#define OMEGA_H_DEFAULT_COMPRESS   false
 
#define INST_DECL(T)
 

Typedefs

typedef std::vector< std::string > Omega_h::exodus::FieldNames
 

Enumerations

enum  ClassifyWith { NODE_SETS = 0x1 , SIDE_SETS = 0x2 }
 

Functions

OMEGA_H_DLL Mesh Omega_h::read_mesh_file (filesystem::path const &path, CommPtr comm)
 
bool Omega_h::is_little_endian_cpu ()
 
void Omega_h::meshb::read (Mesh *mesh, std::string const &filepath)
 
void Omega_h::meshb::write (Mesh *mesh, std::string const &filepath, int version=2)
 
void Omega_h::meshb::read_sol (Mesh *mesh, std::string const &filepath, std::string const &sol_name)
 
void Omega_h::meshb::write_sol (Mesh *mesh, std::string const &filepath, std::string const &sol_name, int version=2)
 
bool Omega_h::meshsim::isMixed (filesystem::path const &mesh, filesystem::path const &model)
 
Mesh Omega_h::meshsim::read (pMesh *m, filesystem::path const &numbering_fname, CommPtr comm, pMeshDataId *transformedCoordId=NULL)
 
Mesh Omega_h::meshsim::read (filesystem::path const &mesh, filesystem::path const &model, CommPtr comm)
 
Mesh Omega_h::meshsim::read (filesystem::path const &mesh, filesystem::path const &model, filesystem::path const &numbering, CommPtr comm)
 
MixedMesh Omega_h::meshsim::readMixed (filesystem::path const &mesh, filesystem::path const &model, CommPtr comm)
 
void Omega_h::meshsim::matchRead (filesystem::path const &mesh_fname, filesystem::path const &model, CommPtr comm, Mesh *mesh, I8 is_in)
 
int Omega_h::exodus::open (filesystem::path const &path, bool verbose)
 
void Omega_h::exodus::close (int exodus_file)
 
int Omega_h::exodus::get_num_time_steps (int exodus_file)
 
void Omega_h::exodus::read_mesh (int exodus_file, Mesh *mesh, bool verbose=false, int classify_with=NODE_SETS|SIDE_SETS)
 Read an Exodus II file into an Omega_h::Mesh and assign geometric classification. More...
 
void Omega_h::exodus::read_nodal_fields (int exodus_file, Mesh *mesh, int time_step, std::string const &prefix, std::string const &postfix, bool verbose)
 
void Omega_h::exodus::read_element_fields (int exodus_file, Mesh *mesh, int time_step, std::string const &prefix, std::string const &postfix, bool verbose)
 
void Omega_h::exodus::write (filesystem::path const &path, Mesh *mesh, bool verbose, int classify_with, FieldNames excludedNodalFields)
 
Mesh Omega_h::exodus::read_sliced (filesystem::path const &, CommPtr, bool, int, int)
 
Mesh Omega_h::gmsh::read (std::istream &stream, CommPtr comm)
 
Mesh Omega_h::gmsh::read (filesystem::path const &filename, CommPtr comm)
 
void Omega_h::gmsh::write (std::ostream &stream, Mesh *mesh)
 
void Omega_h::gmsh::write (filesystem::path const &filepath, Mesh *mesh)
 
Mesh Omega_h::gmsh::read_parallel (filesystem::path filename, CommPtr comm)
 
void Omega_h::gmsh::write_parallel (filesystem::path const &filename, Mesh &mesh)
 
TagSet Omega_h::vtk::get_all_vtk_tags (Mesh *mesh, Int cell_dim)
 
TagSet Omega_h::vtk::get_all_vtk_tags_mix (Mesh *mesh, Int cell_dim)
 
void Omega_h::vtk::write_vtu (std::ostream &stream, Mesh *mesh, Int cell_dim, TagSet const &tags, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::write_vtu (filesystem::path const &filename, Mesh *mesh, Int cell_dim, TagSet const &tags, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::write_vtu (std::string const &filename, Mesh *mesh, Int cell_dim, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::write_vtu (std::string const &filename, Mesh *mesh, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::write_vtu (filesystem::path const &filename, MixedMesh *mesh, Topo_type max_type, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::write_parallel (filesystem::path const &path, Mesh *mesh, Int cell_dim, TagSet const &tags, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::write_parallel (std::string const &path, Mesh *mesh, Int cell_dim, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::write_parallel (std::string const &path, Mesh *mesh, bool compress=OMEGA_H_DEFAULT_COMPRESS)
 
void Omega_h::vtk::read_parallel (filesystem::path const &pvtupath, CommPtr comm, Mesh *mesh)
 
void Omega_h::vtk::read_vtu (std::istream &stream, CommPtr comm, Mesh *mesh)
 
void Omega_h::binary::write (filesystem::path const &path, Mesh *mesh)
 
Mesh Omega_h::binary::read (filesystem::path const &path, Library *lib, bool strict)
 
Mesh Omega_h::binary::read (filesystem::path const &path, CommPtr comm, bool strict)
 
I32 Omega_h::binary::read (filesystem::path const &path, CommPtr comm, Mesh *mesh, bool strict)
 
I32 Omega_h::binary::read_nparts (filesystem::path const &path, CommPtr comm)
 
I32 Omega_h::binary::read_version (filesystem::path const &path, CommPtr comm)
 
void Omega_h::binary::read_in_comm (filesystem::path const &path, CommPtr comm, Mesh *mesh, I32 version)
 
template<typename T >
void Omega_h::binary::swap_bytes (T &ptr)
 
template<typename T >
Read< T > Omega_h::binary::swap_bytes (Read< T > array, bool needs_swapping)
 
template<typename T >
void Omega_h::binary::write_value (std::ostream &stream, T val, bool needs_swapping)
 
template<typename T >
void Omega_h::binary::read_value (std::istream &stream, T &val, bool needs_swapping)
 
template<typename T >
void Omega_h::binary::write_array (std::ostream &stream, Read< T > array, bool is_compressed, bool needs_swapping)
 
template<typename T >
void Omega_h::binary::read_array (std::istream &stream, Read< T > &array, bool is_compressed, bool needs_swapping)
 
void Omega_h::binary::write (std::ostream &stream, std::string const &val, bool needs_swapping)
 
void Omega_h::binary::read (std::istream &stream, std::string &val, bool needs_swapping)
 
void Omega_h::binary::write (std::ostream &stream, Mesh *mesh)
 
void Omega_h::binary::read (std::istream &stream, Mesh *mesh, I32 version)
 
template void Omega_h::binary::swap_bytes (std::uint64_t &)
 
void Omega_h::write_reals_txt (filesystem::path const &filename, Reals a, Int ncomps)
 
void Omega_h::write_reals_txt (std::ostream &stream, Reals a, Int ncomps)
 
Reals Omega_h::read_reals_txt (filesystem::path const &filename, LO n, Int ncomps)
 
Reals Omega_h::read_reals_txt (std::istream &stream, LO n, Int ncomps)
 

Variables

constexpr I32 Omega_h::binary::latest_version = 11
 

Detailed Description

Interfaces for file I/O with other libraries and file formats.

Macro Definition Documentation

◆ INST_DECL

#define INST_DECL (   T)
Value:
extern template void swap_bytes(T&); \
extern template Read<T> swap_bytes(Read<T> array, bool needs_swapping); \
extern template void write_value(std::ostream& stream, T val, bool); \
extern template void read_value(std::istream& stream, T& val, bool); \
extern template void write_array( \
std::ostream& stream, Read<T> array, bool, bool); \
extern template void read_array( \
std::istream& stream, Read<T>& array, bool, bool);

Function Documentation

◆ read_parallel()

Mesh Omega_h::gmsh::read_parallel ( filesystem::path  filename,
CommPtr  comm 
)

Load a parallel MSH file specified in format version 4.1 or higher.

Parameters
filenamepath to mesh prefix. If "/path/to/square" is passed, then the loader looks for parts "/path/to/square_$((RANK+1)).msh"
Note
The caller has the responsibility to initialize Gmsh library before calling this function with ::gmsh::initialize

◆ write_parallel()

void Omega_h::gmsh::write_parallel ( filesystem::path const &  filename,
Mesh mesh 
)

Write the specified mesh in MSH format version 4.1

Note
The caller has the responsibility to initialize Gmsh library before calling this function with ::gmsh::initialize