Chi-Tech
FLUDSCommonData.h
Go to the documentation of this file.
1#ifndef CHITECH_FLUDSCOMMONDATA_H
2#define CHITECH_FLUDSCOMMONDATA_H
3
4#include <vector>
5#include <cstdint>
6
8{
9class SPDS;
11{
12 /**Face index on the neighbor cell.*/
14 /**Face-node index on the neighbor face.*/
15 const std::vector<short> face_node_mapping_;
16 /**Cell-node index on the neighbor cell.*/
17 const std::vector<short> cell_node_mapping_;
18
19 FaceNodalMapping(int ass_face,
20 const std::vector<short>& node_mapping,
21 const std::vector<short>& cell_node_mapping)
22 : associated_face_(ass_face),
23 face_node_mapping_(node_mapping),
24 cell_node_mapping_(cell_node_mapping)
25 {
26 }
27};
28typedef std::vector<FaceNodalMapping> CellFaceNodalMapping;
29
31{
32public:
33 explicit FLUDSCommonData(
34 const SPDS& spds,
35 const std::vector<CellFaceNodalMapping>& grid_nodal_mappings);
36
37 virtual ~FLUDSCommonData() = default;
38
39 const SPDS& GetSPDS() const;
40 const FaceNodalMapping& GetFaceNodalMapping(uint64_t cell_local_id,
41 unsigned int face_id) const;
42
43protected:
44 const SPDS& spds_;
45 const std::vector<CellFaceNodalMapping>& grid_nodal_mappings_;
46};
47
48} // namespace chi_mesh::sweep_management
49
50#endif // CHITECH_FLUDSCOMMONDATA_H
FLUDSCommonData(const SPDS &spds, const std::vector< CellFaceNodalMapping > &grid_nodal_mappings)
const FaceNodalMapping & GetFaceNodalMapping(uint64_t cell_local_id, unsigned int face_id) const
const std::vector< CellFaceNodalMapping > & grid_nodal_mappings_
std::vector< FaceNodalMapping > CellFaceNodalMapping
const std::vector< short > face_node_mapping_
const std::vector< short > cell_node_mapping_
FaceNodalMapping(int ass_face, const std::vector< short > &node_mapping, const std::vector< short > &cell_node_mapping)