#include <stdio.h>
Go to the source code of this file.
Defines | |
#define | MMC_MAXELFAC 5 |
#define | MMC_MAXFAVNO 4 |
#define | MMC_MAXELVNO 6 |
#define | MMC_MAXELSONS 8 |
#define | MMC_MAXELEDGES 9 |
Enumerations | |
enum | mmt_file_type { MMC_MOD_FEM_MESH_DATA = 0, MMC_MOD_FEM_PRISM_DATA = 1, MMC_MOD_FEM_TETRA_DATA = 2, MMC_MOD_FEM_HYBRID_DATA = 3, MMC_GRADMESH_DATA = 10, MMC_HP_FEM_MESH_DATA = 1, MMC_NASTRAN_DATA = (int)'n', MMC_NASTRAN_FREE_DATA = MMC_NASTRAN_DATA, MMC_NASTRAN_SHORT_DATA = (int)'s', MMC_NASTRAN_LONG_DATA = (int)'l', MMC_BINARY_DATA = (int)'b', MMC_BOUND_VERTS_DATA = (int)'m', MMC_IN_ANSYS_DATA = (int)'i', MMC_PARAVIEW_VTK_DATA = (int)'v', MMC_MSH_DATA = (int)'f', MMC_MAX_FILE_TYPE = 126 } |
enum | mmt_mesh_entity { MMC_NODE = 0, MMC_EDGE = 1, MMC_FACE = 2, MMC_ELEMENT = 3, MMC_ALL_N_TYPES } |
enum | mmt_mesh_entity_types { MMC_QUAD = 4, MMC_TRIA = 3, MMC_TETRA = 7, MMC_PRISM = 5, MMC_BRICK = 6, MMC_ENTITY_UNKNOWN = -1 } |
Functions | |
int | mmr_module_introduce (char *Mesh_name) |
void * | mmr_module_internals (int Mesh_id) |
int | mmr_init_mesh (int Control, char *Filename, FILE *interactive_output) |
int | mmr_init_mesh2 (FILE *Interactive_output, const int N_nodes, const int N_edges, const int N_faces, const int N_elems) |
int | mmr_export_mesh (int Mesh_id, int Control, char *Filename) |
int | mmr_test_mesh (int Mesh_id) |
int | mmr_mesh_i_params (int Mesh_id, int Num) |
int | mmr_get_nr_elem (int Mesh_id) |
int | mmr_get_max_elem_id (int Mesh_id) |
int | mmr_get_next_act_elem (int Mesh_id, int Nel) |
int | mmr_get_next_elem_all (int Mesh_id, int Nel) |
int | mmr_get_nr_face (int Mesh_id) |
int | mmr_get_max_face_id (int Mesh_id) |
int | mmr_get_next_act_face (int Mesh_id, int Nfa) |
int | mmr_get_next_face_all (int Mesh_id, int Nfa) |
int | mmr_get_nr_edge (int Mesh_id) |
int | mmr_get_max_edge_id (int Mesh_id) |
int | mmr_get_next_edge_all (int Mesh_id, int Ned) |
int | mmr_get_nr_node (int Mesh_id) |
int | mmr_get_max_node_id (int Mesh_id) |
int | mmr_get_next_node_all (int Mesh_id, int Nno) |
int | mmr_get_max_gen (int Mesh_id) |
int | mmr_set_max_gen (int Mesh_id, int Max_gen) |
int | mmr_get_max_gen_diff (int Mesh_id) |
int | mmr_set_max_gen_diff (int Mesh_id, int Max_gen_diff) |
int | mmr_init_ref (int Mesh_id) |
int | mmr_refine_el (int Mesh_id, int El) |
int | mmr_derefine_el (int Mesh_id, int El) |
int | mmr_refine_mesh (int Mesh_id) |
int | mmr_derefine_mesh (int Mesh_id) |
int | mmr_is_ready_for_proj_dof_ref (int Mesh_id) |
int | mmr_r_refine (int Mesh_id, int Bc, void(*reallocation_func)(double *x, double *y, double *z)) |
int | mmr_gen_boundary_layer (int Mesh_id, int Bc, int thicknessProc, int noLayers, int distribuiton, double *ignoreVect) |
int | mmr_final_ref (int Mesh_id) |
int | mmr_free_mesh (int Mesh_id) |
int | mmr_elem_structure (int Mesh_id, int El, int *Elem_struct) |
int | mmr_el_status (int Mesh_id, int El) |
int | mmr_el_type (int Mesh_id, int El) |
int | mmr_el_groupID (int Mesh_id, int El) |
Replaces old mmr_el_mat() routine. Returns ID of group for given element number. In order to get the material number, pass obtained groupID into utr_mat_get_matID. In order to get the block number, pass obtained groupID into utr_mat_get_blockID . | |
int | mmr_el_set_groupID (int Mesh_id, int El, int Group_id) |
Replaces old mmr_el_set_mat() routine. Assigns given element for group with given ID. Note, that this can effectively change element material number ( utr_mat_get_matID ), element block assignment ( utr_mat_get_blockID ), and is some circumstances also affects boundary conditions definitions ( utr_mesh_insert_BC_contact ). | |
int | mmr_el_type_ref (int Mesh_id, int El) |
int | mmr_el_faces (int Mesh_id, int El, int *Faces, int *Orient) |
int | mmr_el_node_coor (int Mesh_id, int El, int *Nodes, double *Node_coor) |
int | mmr_el_edges (int Mesh_id, int El, int *Edges) |
int | mmr_el_fam (int Mesh_id, int El, int *Elsons, int *Type) |
int | mmr_el_fam_all (int Mesh_id, int El, int *Elsonscd) |
int | mmr_el_gen (int Mesh_id, int El) |
int | mmr_el_ancestor (int Mesh_id, int El, int Ilev) |
double | mmr_el_hsize (int Mesh_id, int El, double *Size_x, double *Size_y, double *Size_z) |
int | mmr_el_eq_neig (int Mesh_id, int El, int *Neig, int *Neig_sides) |
int | mmr_face_structure (int Mesh_id, int Fa, int *Face_struct) |
int | mmr_fa_status (int Mesh_id, int Fa) |
int | mmr_fa_type (int Mesh_id, int Fa) |
int | mmr_fa_bc (int Mesh_id, int Fa) |
int | mmr_fa_set_bc (int Mesh_id, int Fa, int Bc_num) |
int | mmr_fa_sub_bnd (int Mesh_id, int Face_id) |
int | mmr_fa_set_sub_bnd (int Mesh_id, int Face_id, int Side_id) |
int | mmr_fa_edges (int Mesh_id, int Fa, int *Fa_edges, int *Ed_orient) |
void | mmr_fa_eq_neig (int Mesh_id, int Fa, int *Fa_neig, int *Neig_sides, int *Node_shift) |
void | mmr_fa_neig (int Mesh_id, int Fa, int *Fa_neig, int *Neig_sides, int *Node_shift, int *Diff_gen, double *Acoeff, double *Bcoeff) |
int | mmr_fa_fam (int Mesh_id, int Fa, int *Fasons, int *Node_mid) |
int | mmr_fa_node_coor (int Mesh_id, int Fa, int *Nodes, double *Node_coor) |
int | mmr_el_fa_nodes (int Mesh_id, int El, int Fa, int *Fa_nodes) |
void | mmr_fa_elem_coor (int Mesh_id, double *Xloc, int *Fa_neig, int *Neig_sides, int Node_shift, double *Acoeff, double *Bcoeff, double *Xneig) |
void | mmr_fa_area (int Mesh_id, int Fa, double *Area, double *Vec_norm) |
int | mmr_edge_status (int Mesh_id, int Ed) |
int | mmr_edge_nodes (int Mesh_id, int Ed, int *Edge_nodes) |
int | mmr_edge_elems (int Mesh_id, int Ed, int *Edge_elems) |
int | mmr_create_edge_elems (int Mesh_id, int Max_edge_id) |
int | mmr_edge_sons (int Mesh_id, int Ed, int *Edge_sons, int *Edge_mid_node) |
int | mmr_edge_structure (int Mesh_id, int Ed, int *Edge_struct) |
int | mmr_set_edge_type (int Mesh_id, int Edge_id, int Type) |
int | mmr_set_edge_fam (int Mesh_id, int Edge_id, int Son1, int Son2) |
int | mmr_set_face_fam (int Mesh_id, int Face_id, int *Sons) |
int | mmr_set_face_neig (int Mesh_id, int Face_id, int Neig1, int Neig2, int Neig1Type, int Neig2Type) |
int | mmr_set_elem_fath (int Mesh_id, int Elem_id, int Fath) |
int | mmr_set_elem_fam (int Mesh_id, int Elem_id, int Fath, int *Sons) |
int | mmr_node_status (int Mesh_id, int Node) |
int | mmr_node_coor (int Mesh_id, int Node, double *Coor) |
int | mmr_set_node_coor (int Mesh_id, int Node, double *Xcoor) |
int | mmr_move_node (int Mesh_id, int Node, double *Dx) |
int | mmr_loc_loc (int Mesh_id, int El_from, double *X_from, int El_to, double *X_to) |
int | mmr_create_element (int Mesh_id, int Type, int Mate, int Fath, int Refi, int *Faces, int *Sons) |
int | mmr_create_face (int Mesh_id, int Type, int Flag_bc, int *Edges, int *Neig, int *Sons) |
int | mmr_create_edge (int Mesh_id, int Type, int Node1, int Node2) |
int | mmr_create_node (int Mesh_id, double Xcoor, double Ycoor, double Zcoor) |
int | mmr_clust_face (int Mesh_id, int Face, int *Face_sons) |
int | mmr_clust_edge (int Mesh_id, int Edge_id) |
int | mmr_divide_face (int Mesh_id, int Fa, int *Face_sons, int *Sons_edges, int *New_nodes) |
int | mmr_divide_edge (int Mesh_id, int Edge, int *Edge_sons, int *Node_mid) |
int | mmr_del_elem (int Mesh_id, int Elem) |
int | mmr_del_face (int Mesh_id, int Face) |
int | mmr_del_edge (int Mesh_id, int Edge) |
int | mmr_del_node (int Mesh_id, int Node) |
int | mmr_get_max_elem_max (int Mesh_id) |
int | mmr_get_max_face_max (int Mesh_id) |
int | mmr_get_max_edge_max (int Mesh_id) |
int | mmr_get_max_node_max (int Mesh_id) |
int | mmr_init_read (const int Mesh_id, const int N_nodes, const int N_edges, const int N_faces, const int N_elems) |
int | mmr_finish_read (const int Mesh_id) |
int | mmr_add_elem (const int Mesh_id, const int Id, const int El_type, const int El_nodes[6], const int El_faces[5], const int Material_idx) |
int | mmr_add_face (const int Mesh_id, const int Id, const int Fa_type, const int Fa_nodes[4], const int Fa_edges[4], const int Fa_neigs[2], const int B_cond_val) |
int | mmr_add_edge (const int Mesh_id, const int Id, const int nodes[2]) |
int | mmr_add_node (const int Mesh_id, const int Id, const double Coords[3]) |
int | mmr_current_mesh_state_hash (const int Mesh_id) |
mmr_current_mesh_state_hash - returns an current unique value (state hash, state stamp) that can be used to compare with value returned from this function at other time. If values are different, then one can assume that mesh internal state has changed. | |
int | mmr_init_dist2bound (const int Mesh_id, const int *BCs, const int nBCs) |
double | mmr_get_el_dist2boundary (const int Mesh_id, const int El_id, const double *Coord) |
void | mmr_get_coor_from_motion_element (const int Mesh_id, int idEl, int idLP, double *coor, int flagaSiatki) |
void | mmr_copyMESH (const int Mesh_id, int flaga) |
void | mmr_create_mesh_Cube (const int Mesh_id, const char *nazwa, int node_x, int node_y, int node_z, double size_x, double size_y, double size_z, double divide, int *warunki) |
void | mmr_init_all_change (const int Mesh_id, int a) |
void | mmr_test_mesh_motion (const int Mesh_id, int ileWarstw, int obecny_krok, int od_krok, int ileKrok, double minPoprawy, double px0, double py0, double pz0, double px1, double py1, double pz1, double endX, double endY, double endZ) |
double | mmr_test_weldpool (const int Mesh_id, double obecnyKrok, double krok_start, double minPoprawy, double doX, double doY, double dl, double zmiejszaPrzes, double limit, double szerokosc) |
int | mmr_groups_number (const int Mesh_id) |
*------------------------------------------------------------ | |
int | mmr_groups_ids (const int Mesh_id, int *tab, int l_tab) |
void | mmr_get_vec_norm_at_node (const int Mesh_id, int node_id, double *vec_norm) |
mmr_get_fa_el_bc_connect | |
int | mmr_get_fa_el_bc_connect (const int Mesh_id, int face_id, int *el_id) |
Variables | |
const int | MMC_MAX_EDGE_ELEMS |
const int | MMC_CUR_MESH_ID |
const int | MMC_INIT_GEN_LEVEL |
const int | MMC_AUTO_GENERATE_ID |
const int | MMC_BOUNDARY |
const int | MMC_BIG_NGB |
const int | MMC_SUB_BND |
const int | MMC_DO_UNI_REF |
const int | MMC_DO_UNI_DEREF |
const int | MMC_ACTIVE |
const int | MMC_INACTIVE |
const int | MMC_FREE |
const int | MMC_PRINT_NOT |
const int | MMC_PRINT_ERRORS |
const int | MMC_PRINT_INFO |
const int | MMC_PRINT_ALLINFO |
const int | MMC_NOT_REF |
const int | MMC_REF_ISO |
const int | MMC_REF_ANI |
const int | MMC_NO_FATH |
const int | MMC_FACE_NODES_FOR_TETRA [4][3] |
const int | MMC_FACE_NODES_FOR_PRISM [5][4] |
const int | MMC_IS_SUPPORTING_NEW_MPI |