137 void scale (
const double *s);
139 void local2global (
const double *origin,
const double *TInv);
169 void compute_node_fields (
char flag,
bool displc_flag,
bool strain_flag,
bool stress_flag,
int pid,
int lc,
int nLC,
PFCmode pfcMode);
191 double give_error (
int pid1,
int pid2,
int lc);
211 void set_node_rslt_flags (
bool displc_flag,
bool strain_flag,
bool stress_flag,
int pid,
int lc,
int nLC);
213 void set_elem_rslt_flags (
bool displc_flag,
bool strain_flag,
bool stress_flag,
int pid,
int lc,
int nLC);
217 void average_fields (
bool displc_flag,
bool strain_flag,
bool stress_flag,
int lc,
int nLC);
225 #endif // end of MUMECH_MESH_H void print_geometry_file_vtk(const char *rsltFileName, int pid, int lc, int nLC)
Print output file with mesh geometry with results to vtk file.
void generate_regular_mesh(const double *p1, const double *p2, const long *n)
Generate regular mesh geometry of rectangular cuboid shape compound of rectangular cuboid shape eleme...
void shift_id(long snn, long sne)
file of various types and symbolic constant definitions
void generate_regularSphereMesh_2d(int n, const double *a)
Function generates uniform mesh on an unit circle.
double volume
Volume/Area.
void integrate_energy_at_elems(int lc, int nLC)
void local2global(const double *origin, const double *TInv)
Local to global transformation of all nodes.
Class mNode contains and handles all mesh node data.
Mesh(long i, const Problems *p)
Constructor.
long id
identification number
void generate_regularSphereMesh_3d(int n, const double *a)
Function generates uniform mesh on an unit sphere.
long nNodes
Number of nodes.
mNode ** Nodes
1d array of pointers to Node.
PFCmode
Algorithm type of a point fields calculation.
bool is_unset(void)
Returns true, if the receiver is unset, only constructor was called.
int np
number of pointers to problems
void average_fields(bool displc_flag, bool strain_flag, bool stress_flag, int lc, int nLC)
int nLC
number of load cases
virtual ~Mesh()
Destructor.
void compute_node_fields(char flag, bool displc_flag, bool strain_flag, bool stress_flag, int pid, int lc, int nLC, PFCmode pfcMode)
void read_geometry_file_vtk(const char *vtkMeshFile, int pid, int lc, bool add)
Read input file with mesh geometry from vtk file.
long nElems
Number of elements.
double give_homog_energy(int lc, int pid=0)
int npa
number of allocated pointers
double give_error(int pid1, int pid2, int lc)
MeshType mtA
type of mesh, structured grid or unstructured
void compute_element_fields(char flag, bool displc_flag, bool strain_flag, bool stress_flag, int pid, int lc, int nLC, PFCmode pfcMode)
predpokladame trojuhelnikove nebo tetrahedron prvky, tj. na elementu budeme drzet jednu hodnotu ...
void set_and_alloc_nElems(long ne)
Set nElems and allocate array Elems.
bool equal_dimensions(int pid) const
Returns true when mesh and problem dimensions are same.
bool give_twodim(void) const
void set_node_rslt_flags(bool displc_flag, bool strain_flag, bool stress_flag, int pid, int lc, int nLC)
void set_and_alloc_nNodes(long nn)
Set nNodes and allocate array Nodes.
bool ** el_dspl_rf
pid x nlc
int file_type_s2e(const char *s)
void set_elem_rslt_flags(bool displc_flag, bool strain_flag, bool stress_flag, int pid, int lc, int nLC)
const Problems ** P
set of pointers to solved problems
double give_total_energy(int pid, int lc)
bool geom_is_readed(void)
Class Mesh contains and handles all mesh data.
int add_problem(const Problems *p)
mElement ** Elems
1d array of pointers to Element.
double give_regular_element_volume(void) const
void scale(const double *s)
Scale all nodes coordinates by vector s.
Class mElement contains and handles all mesh element data.
double give_total_volume(void) const