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 "SolutionStates.h"
9#include "Simulation.h"
10#include "Vector.h"
11
12#include "utils.h"
13
14#include <string>
15
16namespace read_msh_ns {
17
18 class blkType
19 {
20 public:
21 int n = 0;
22 Vector<int> gN;
23 };
24
25 void calc_elem_ar(ComMod& com_mod, const CmMod& cm_mod, mshType& lM, bool& rflag, const SolutionStates& solutions);
26 void calc_elem_jac(ComMod& com_mod, const CmMod& cm_mod, mshType& lM, bool& rflag, const SolutionStates& solutions);
27 void calc_elem_skew(ComMod& com_mod, const CmMod& cm_mod, mshType& lM, bool& rflag, const SolutionStates& solutions);
28
29 void calc_mesh_props(ComMod& com_mod, const CmMod& cm_mod, const int nMesh, std::vector<mshType>& mesh, const SolutionStates& solutions);
30
31 void calc_nbc(mshType& mesh, faceType& face);
32
33 void check_ien(Simulation* simulation, mshType& mesh);
34 void check_line_conn(mshType& mesh);
35 void check_hex8_conn(mshType& mesh);
36 void check_hex20_conn(mshType& mesh);
37 void check_hex27_conn(mshType& mesh);
38 void check_quad4_conn(mshType& mesh);
39 void check_tet_conn(mshType& mesh);
40 void check_tri3_conn(mshType& mesh);
41 void check_tri6_conn(mshType& mesh);
42 void check_wedge_conn(mshType& mesh);
43
44 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);
45
46 void load_var_ini(Simulation* simulation, const ComMod& com_mod);
47
48 void match_faces(const ComMod& com_mod, const faceType& face1, const faceType& face2, const double tol, utils::stackType& lPrj);
49 void match_nodes(const ComMod& com_mod, const faceType& lFa, const faceType& pFa,
50 const double ptol, const int nNds, Array<int>& map);
51
52 void read_fib_nff(Simulation* simulation, mshType& mesh, const std::string& fName, const std::string& kwrd, const int idx);
53 void read_msh(Simulation* simulation);
54
55 void set_dmn_id_ff(Simulation* simulation, mshType& mesh, const std::string& file_name);
56 void set_dmn_id_vtk(Simulation* simulation, mshType& lM, const std::string& file_name, const std::string& kwrd);
57 void set_projector(Simulation* simulation, utils::stackType& avNds);
58 void set_ris_projector(Simulation* simulation);
59 void set_uris_meshes(Simulation* simulation);
60
61};
62
63#endif
64
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:1525
Definition Simulation.h:19
The Vector template class is used for storing int and double data.
Definition Vector.h:24
The face type containing mesh at boundary.
Definition ComMod.h:519
This is the container for a mesh or NURBS patch, those specific to NURBS are noted.
Definition ComMod.h:871
Definition read_msh.h:19
Definition utils.h:12
Holds solution state at old, current, and intermediate time levels.
Definition SolutionStates.h:39