mesh.hpp
Go to the documentation of this file.
void debug_print(std::ostream &os) const
Print debugging information to stream os.
Definition: mesh.cpp:185
Vec3D max(void) const
Returns vector pointing to the last mesh point opposite of origo.
Definition: mesh.hpp:137
double max(int i) const
Returns i-th component of vector pointing to the last mesh point opposite of origo.
Definition: mesh.hpp:142
Vec3D _max
Location of mesh point (size[0]-1,size[1]-1,size[2]-1) [m].
Definition: mesh.hpp:73
double div_h(void) const
Returns reciprocal of mesh cell size (1/h).
Definition: mesh.hpp:150
Int3D mesh_number(Vec3D x) const
Returns node, which contains x.
Definition: mesh.cpp:138
Int3D closest_node(Vec3D x) const
Returns node closest to location x.
Definition: mesh.cpp:130
uint32_t nodecount(void) const
Returns number of nodes in the mesh.
Definition: mesh.hpp:124
void save(std::ostream &os) const
Saves geometry data to stream os.
Definition: mesh.cpp:154
void reset(geom_mode_e geom_mode, Int3D size, Vec3D origo, double h)
Reset mesh definition.
Definition: mesh.cpp:75
Vec3D coord_of_node(Int3D n) const
Returns coordinates of node i.
Definition: mesh.cpp:146
uint32_t size(int i) const
Returns size of solid mesh in direction i.
Definition: mesh.hpp:120
Bindary file writing and reading tools.
Base types.
Three dimensional vectors.