svMultiPhysics
Loading...
Searching...
No Matches
read_msh.h
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef READ_MSH_H
5#define READ_MSH_H
6
7#include "ComMod.h"
8#include "Simulation.h"
9#include "Vector.h"
10
11#include "utils.h"
12
13#include <string>
14
15namespace read_msh_ns {
16
17 class blkType
18 {
19 public:
20 int n = 0;
21 Vector<int> gN;
22 };
23
24 void calc_elem_ar(ComMod& com_mod, const CmMod& cm_mod, mshType& lM, bool& rflag);
25 void calc_elem_jac(ComMod& com_mod, const CmMod& cm_mod, mshType& lM, bool& rflag);
26 void calc_elem_skew(ComMod& com_mod, const CmMod& cm_mod, mshType& lM, bool& rflag);
27
28 void calc_mesh_props(ComMod& com_mod, const CmMod& cm_mod, const int nMesh, std::vector<mshType>& mesh);
29
30 void calc_nbc(mshType& mesh, faceType& face);
31
32 void check_ien(Simulation* simulation, mshType& mesh);
33 void check_line_conn(mshType& mesh);
34 void check_hex8_conn(mshType& mesh);
35 void check_hex20_conn(mshType& mesh);
36 void check_hex27_conn(mshType& mesh);
37 void check_quad4_conn(mshType& mesh);
38 void check_tet_conn(mshType& mesh);
39 void check_tri3_conn(mshType& mesh);
40 void check_tri6_conn(mshType& mesh);
41 void check_wedge_conn(mshType& mesh);
42
43 int find_blk(const int nsd, const int nBkd, const std::vector<bool>& nFlt, const Vector<double>&xMin, const Vector<double>&dx, const Vector<double>& x);
44
45 void load_var_ini(Simulation* simulation, const ComMod& com_mod);
46
47 void match_faces(const ComMod& com_mod, const faceType& face1, const faceType& face2, const double tol, utils::stackType& lPrj);
48 void match_nodes(const ComMod& com_mod, const faceType& lFa, const faceType& pFa,
49 const double ptol, const int nNds, Array<int>& map);
50
51 void read_fib_nff(Simulation* simulation, mshType& mesh, const std::string& fName, const std::string& kwrd, const int idx);
52 void read_msh(Simulation* simulation);
53
54 void set_dmn_id_ff(Simulation* simulation, mshType& mesh, const std::string& file_name);
55 void set_dmn_id_vtk(Simulation* simulation, mshType& mesh, const std::string& file_name, const std::string& kwrd);
56 void set_projector(Simulation* simulation, utils::stackType& avNds);
57 void set_ris_projector(Simulation* simulation);
58 void set_uris_meshes(Simulation* simulation);
59
60};
61
62#endif
63
The CmMod class duplicates the data structures in the Fortran CMMOD module defined in COMU....
Definition CmMod.h:35
The ComMod class duplicates the data structures in the Fortran COMMOD module defined in MOD....
Definition ComMod.h:1514
Definition Simulation.h:14
The Vector template class is used for storing int and double data.
Definition Vector.h:23
The face type containing mesh at boundary.
Definition ComMod.h:511
This is the container for a mesh or NURBS patch, those specific to NURBS are noted.
Definition ComMod.h:863
Definition read_msh.h:18
Definition utils.h:12