mmd_remesh/mms_prism_t4_remesh_intf.cpp File Reference

#include <cstdlib>
#include <iostream>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <ctime>
#include <cmath>
#include <assert.h>
#include "../include/mmh_intf.h"
#include "../include/uth_log.h"
#include "ticooMesh3D.h"
Include dependency graph for mms_prism_t4_remesh_intf.cpp:

Defines

#define _USE_MATH_DEFINES

Functions

void atExitClearMeshes ()
int mmr_chk_list (int Num, int *List, int Ll)
void select_mesh (const int mesh_id)
int mmr_module_introduce (char *Mesh_name)
void mmr_init_all_change (const int Mesh_id, int a)
voidmmr_module_internals (int Mesh_id)
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_finish_read (const 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_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])
void mmr_get_vec_norm_at_node (const int Mesh_id, int node_id, double *vec_norm)
 mmr_get_fa_el_bc_connect
void mmr_copyMESH (const int Mesh_id, int flaga)
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_get_fa_el_bc_connect (const int Mesh_id, int face_id, int *el_id)
void mmr_get_coor_from_motion_element (const int Mesh_id, int idEl, int idLP, double *coor, int flagaSiatki)
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)
int mmr_groups_number (const int Mesh_id)
 *------------------------------------------------------------
int mmr_groups_ids (const int Mesh_id, int *tab, int l_tab)
int mmr_init_mesh (int Control, char *Filename, FILE *interactive_output)
int mmr_export_mesh (int Mesh_id, int Control, char *Filename)
int mmr_test_mesh (int Mesh_id)
int mmr_get_nr_elem (int Mesh_id)
int mmr_get_max_elem_id (int Mesh_id)
int mmr_get_max_elem_max (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_max_node_max (int Mesh_id)
int mmr_get_next_node_all (int Mesh_id, int Nno)
int mmr_set_max_gen (int Mesh_id, int Max_gen)
int mmr_set_max_gen_diff (int Mesh_id, int Max_gen_diff)
int mmr_init_ref (int Mesh_id)
int mmr_refine (int Mesh_id, int El)
int mmr_refine_el (int Mesh_id, int El)
int mmr_refine_mesh (int Mesh_id)
int mmr_gen_boundary_layer (int Mesh_id, int Bc, int thicknessProc, int noLayers, int distrib, double *ignoreVec)
int mmr_r_refine (int Mesh_id, int Bc, void(*reallocation_func)(double *x, double *y, double *z))
int mmr_derefine (int Mesh_id, int El)
int mmr_derefine_el (int Mesh_id, int El)
int mmr_derefine_mesh (int Mesh_id)
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 Mat_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_fam (int Mesh_id, int El, int *Elsons, int *Type)
int mmr_el_fam_all (int Mesh_id, int El, int *Elsons)
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_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_node_coor (int Mesh_id, int Fa, int *Nodes, double *Node_coor)
int mmr_fa_fam (int Mesh_id, int Fa, int *Fasons, int *Node_mid)
void mmr_fa_elem_coor (int Mesh_id, double *Xloc, int *Fa_neig, int *Neig_sides, int, 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_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_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_fa4_t (int Mesh_id, int Face, int *Face_sons)
int mmr_clust_fa4_q (int Mesh_id, int Face, int *Face_sons)
int mmr_clust_edge (int Mesh_id, int Edge_id)
int mmr_divide_face4_t (int Mesh_id, int Fa, int *Face_sons, int *Sons_edges, int *New_nodes)
int mmr_divide_face4_q (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_edge_elems (int Mesh_id, int Ed, int *Edge_elems)
int mmr_el_edges (int Mesh_id, int El, int *Edges)
int mmr_el_fa_nodes (int Mesh_id, int El, int Fa, int *fa_nodes)
int mmr_create_edge_elems (int Mesh_id, int Max_edge_id)
int mmr_get_max_gen (int Mesh_id)
int mmr_get_max_gen_diff (int Mesh_id)
int mmr_is_ready_for_proj_dof_ref (int Mesh_id)
double mmr_get_el_dist2boundary (const int Mesh_id, const int El_id, const double *Coord)
int mmr_init_dist2bound (const int Mesh_id, const int *BCs, const int nBCs)
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_set_node_coor (int Mesh_id, int Node, double *Xcoor)

Variables

TicooMesh3D mes3d (50)
TicooMesh3Dmmv_current_mesh = &mes3d
const int FIRST = 1
const int MMC_CUR_MESH_ID = 0
const int MMC_AUTO_GENERATE_ID = 0
const int MMC_DO_UNI_REF = -1
const int MMC_DO_UNI_DEREF = -2
const int MMC_REF_ANI = 2
const int MMC_ACTIVE = 1
const int MMC_INACTIVE = -1
const int MMC_FREE = 0
const int MMC_PRINT_NOT = 0
const int MMC_PRINT_ERRORS = 1
const int MMC_PRINT_INFO = 2
const int MMC_PRINT_ALLINFO = 3
const int MMC_BOUNDARY = 0
const int MMC_BIG_NGB = -1
const int MMC_SUB_BND = -2
const int MMC_NOT_REF = 0
const int MMC_REF_ISO = 1
const int MMC_NO_FATH = 0
const int MMC_SAME_ORIENT = 1
const int MMC_OPP_ORIENT = -1
const int MMC_MAX_EDGE_ELEMS = 20
const double SMALL = 1e-10
const int MMC_FACE_NODES_FOR_TETRA [4][3] = {{3,0,1} ,{3,1,2} ,{3,2,0} ,{0,2,1}}
const int MMC_FACE_NODES_FOR_PRISM [5][4] = {{0,1,2,-1} ,{3,4,5,-1} ,{0,1,3,4} ,{1,2,4,5} ,{2,0,5,3}}
const int MMC_IS_SUPPORTING_NEW_MPI = 0
int mmv_current_mesh_id = 0

Define Documentation

#define _USE_MATH_DEFINES

Function Documentation

void atExitClearMeshes (  ) 
int mmr_chk_list ( int  Num,
int *  List,
int  Ll 
)

-------------------------------------------------------- mmr_chk_list - to check whether Num is on the list List with length Ll ---------------------------------------------------------

int mmr_clust_fa4_q ( int  Mesh_id,
int  Face,
int *  Face_sons 
)
int mmr_clust_fa4_t ( int  Mesh_id,
int  Face,
int *  Face_sons 
)
int mmr_derefine ( int  Mesh_id,
int  El 
)
int mmr_divide_face4_q ( int  Mesh_id,
int  Fa,
int *  Face_sons,
int *  Sons_edges,
int *  New_nodes 
)
int mmr_divide_face4_t ( int  Mesh_id,
int  Fa,
int *  Face_sons,
int *  Sons_edges,
int *  New_nodes 
)
int mmr_refine ( int  Mesh_id,
int  El 
)
void select_mesh ( const int  mesh_id  )  [inline]

Variable Documentation

const int FIRST = 1
const int MMC_OPP_ORIENT = -1
const int MMC_SAME_ORIENT = 1
const double SMALL = 1e-10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1