Skip to content

Commit 21d3908

Browse files
authored
Merge branch 'develop' into feature_coolprop
2 parents d7f3a43 + a3a102d commit 21d3908

105 files changed

Lines changed: 6281 additions & 4244 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/regression.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
key: ${{ matrix.config_set }}-${{ github.sha }}
5353
restore-keys: ${{ matrix.config_set }}
5454
- name: Pre Cleanup
55-
uses: docker://ghcr.io/su2code/su2/build-su2:221224-1158
55+
uses: docker://ghcr.io/su2code/su2/build-su2:230225-2136
5656
with:
5757
entrypoint: /bin/rm
5858
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
5959
- name: Build
60-
uses: docker://ghcr.io/su2code/su2/build-su2:221224-1158
60+
uses: docker://ghcr.io/su2code/su2/build-su2:230225-2136
6161
with:
6262
args: -b ${{github.ref}} -f "${{matrix.flags}}"
6363
- name: Compress binaries
@@ -68,7 +68,7 @@ jobs:
6868
name: ${{ matrix.config_set }}
6969
path: install_bin.tgz
7070
- name: Post Cleanup
71-
uses: docker://ghcr.io/su2code/su2/build-su2:221224-1158
71+
uses: docker://ghcr.io/su2code/su2/build-su2:230225-2136
7272
with:
7373
entrypoint: /bin/rm
7474
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -99,7 +99,7 @@ jobs:
9999
tag: OMP
100100
steps:
101101
- name: Pre Cleanup
102-
uses: docker://ghcr.io/su2code/su2/test-su2:221224-1158
102+
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
103103
with:
104104
entrypoint: /bin/rm
105105
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -125,12 +125,12 @@ jobs:
125125
chmod a+x $BIN_FOLDER/*
126126
ls -lahR $BIN_FOLDER
127127
- name: Run Tests in Container
128-
uses: docker://ghcr.io/su2code/su2/test-su2:221224-1158
128+
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
129129
with:
130130
# -t <Tutorials-branch> -c <Testcases-branch>
131131
args: -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}}
132132
- name: Cleanup
133-
uses: docker://ghcr.io/su2code/su2/test-su2:221224-1158
133+
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
134134
with:
135135
entrypoint: /bin/rm
136136
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -151,7 +151,7 @@ jobs:
151151
tag: MPI
152152
steps:
153153
- name: Pre Cleanup
154-
uses: docker://ghcr.io/su2code/su2/test-su2:221224-1158
154+
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
155155
with:
156156
entrypoint: /bin/rm
157157
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}
@@ -212,11 +212,11 @@ jobs:
212212
echo $PWD
213213
ls -lahR
214214
- name: Run Unit Tests
215-
uses: docker://ghcr.io/su2code/su2/test-su2:221224-1158
215+
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
216216
with:
217217
entrypoint: install/bin/${{matrix.testdriver}}
218218
- name: Post Cleanup
219-
uses: docker://ghcr.io/su2code/su2/test-su2:221224-1158
219+
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
220220
with:
221221
entrypoint: /bin/rm
222222
args: -rf install install_bin.tgz src ccache ${{ matrix.config_set }}

.github/workflows/release-management.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
key: ${{ matrix.os_bin }}-${{ github.sha }}
3636
restore-keys: ${{ matrix.os_bin }}
3737
- name: Build
38-
uses: docker://ghcr.io/su2code/su2/build-su2-cross:221224-1158
38+
uses: docker://ghcr.io/su2code/su2/build-su2-cross:230225-2136
3939
with:
4040
args: -b ${{ github.sha }} -f "${{matrix.flags}}"
4141
- name: Create Archive

Common/include/CConfig.hpp

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6559,26 +6559,38 @@ class CConfig {
65596559
* \brief Get the internal index for a moving boundary <i>val_marker</i>.
65606560
* \return Internal index for a moving boundary <i>val_marker</i>.
65616561
*/
6562-
unsigned short GetMarker_Moving(string val_marker) const;
6562+
unsigned short GetMarker_Moving(const string& val_marker) const;
65636563

65646564
/*!
6565-
* \brief Get bool if marker is moving. <i>val_marker</i>.
6566-
* \param[in] val_marker - String of the marker to test.
6567-
* \return Bool if the marker is a moving boundary <i>val_marker</i>.
6565+
* \brief Get a bool for whether a marker is moving. <i>val_marker</i>.
6566+
* \param[in] val_marker - Name of the marker to test.
6567+
* \return True if the marker is a moving boundary <i>val_marker</i>.
65686568
*/
6569-
bool GetMarker_Moving_Bool(string val_marker) const;
6569+
inline bool GetMarker_Moving_Bool(const string& val_marker) const {
6570+
return GetMarker_Moving(val_marker) < nMarker_Moving;
6571+
}
65706572

65716573
/*!
65726574
* \brief Get the internal index for a DEFORM_MESH boundary <i>val_marker</i>.
65736575
* \return Internal index for a DEFORM_MESH boundary <i>val_marker</i>.
65746576
*/
6575-
unsigned short GetMarker_Deform_Mesh(string val_marker) const;
6577+
unsigned short GetMarker_Deform_Mesh(const string& val_marker) const;
65766578

65776579
/*!
65786580
* \brief Get the internal index for a DEFORM_MESH_SYM_PLANE boundary <i>val_marker</i>.
65796581
* \return Internal index for a DEFORM_MESH_SYM_PLANE boundary <i>val_marker</i>.
65806582
*/
6581-
unsigned short GetMarker_Deform_Mesh_Sym_Plane(string val_marker) const;
6583+
unsigned short GetMarker_Deform_Mesh_Sym_Plane(const string& val_marker) const;
6584+
6585+
/*!
6586+
* \brief Get a bool for whether the marker is deformed. <i>val_marker</i>.
6587+
* \param[in] val_marker - Name of the marker to test.
6588+
* \return True if the marker is a deforming boundary <i>val_marker</i>.
6589+
*/
6590+
inline bool GetMarker_Deform_Mesh_Bool(const string& val_marker) const {
6591+
return GetMarker_Deform_Mesh(val_marker) < nMarker_Deform_Mesh ||
6592+
GetMarker_Deform_Mesh_Sym_Plane(val_marker) < nMarker_Deform_Mesh_Sym_Plane;
6593+
}
65826594

65836595
/*!
65846596
* \brief Get the internal index for a Fluid_Load boundary <i>val_marker</i>.

Common/include/containers/CFileReaderLUT.hpp

Lines changed: 70 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,28 @@ class CFileReaderLUT {
4242
protected:
4343
int rank;
4444

45+
unsigned short table_dim = 2;
4546
std::string version_lut;
4647
std::string version_reader;
47-
unsigned long n_points;
48-
unsigned long n_triangles;
49-
unsigned long n_hull_points;
48+
unsigned long n_levels = 1;
49+
su2vector<unsigned long> n_points, n_triangles, n_hull_points;
50+
5051
unsigned long n_variables;
52+
su2vector<su2double> table_levels;
5153

5254
/*! \brief Holds the variable names stored in the table file.
5355
* Order is in sync with tableFlamelet.
5456
*/
55-
std::vector<std::string> names_var;
57+
su2vector<std::string> names_var;
5658

5759
/*! \brief Holds all data stored in the table.
5860
* First index addresses the variable while second index addresses the point.
5961
*/
60-
su2activematrix table_data;
61-
62-
su2matrix<unsigned long> triangles;
62+
su2vector<su2activematrix> table_data;
6363

64-
std::vector<unsigned long> hull;
64+
su2vector<su2matrix<unsigned long>> triangles;
6565

66+
su2vector<su2vector<unsigned long>> hull;
6667
/*! \brief Searches for the position of flag in file_stream and
6768
* sets the stream position of file_stream to that position.
6869
*/
@@ -78,22 +79,74 @@ class CFileReaderLUT {
7879
bool GetStrippedLine(std::ifstream& file_stream, std::string& line) const;
7980

8081
public:
81-
CFileReaderLUT(){};
82-
82+
/*! \brief Get table version as listed in input file.
83+
*/
8384
inline const std::string& GetVersionLUT() const { return version_lut; }
85+
86+
/*! \brief Get table reader version.
87+
*/
8488
inline const std::string& GetVersionReader() const { return version_reader; }
85-
inline unsigned long GetNPoints() const { return n_points; }
86-
inline unsigned long GetNTriangles() const { return n_triangles; }
87-
inline unsigned long GetNHullPoints() const { return n_hull_points; }
89+
90+
/*! \brief Get number of data points at specific table level.
91+
* \param[in] i_level - table level index.
92+
* \returns data point count at table level.
93+
*/
94+
inline unsigned long GetNPoints(std::size_t i_level = 0) const { return n_points[i_level]; }
95+
96+
/*! \brief Get number of triangles at specific table level.
97+
* \param[in] i_level - table level index.
98+
* \returns triangle count at table level.
99+
*/
100+
inline unsigned long GetNTriangles(std::size_t i_level = 0) const { return n_triangles[i_level]; }
101+
102+
/*! \brief Get number of hull points at specific table level.
103+
* \param[in] i_level - table level index.
104+
* \returns hull point count at table level.
105+
*/
106+
inline unsigned long GetNHullPoints(std::size_t i_level = 0) const { return n_hull_points[i_level]; }
107+
108+
/*! \brief Get number of variables for which data is stored in the table
109+
*/
88110
inline unsigned long GetNVariables() const { return n_variables; }
89111

90-
inline const std::vector<std::string>& GetNamesVar() const { return names_var; }
112+
/*! \brief Get number of table levels.
113+
*/
114+
inline unsigned long GetNLevels() const { return n_levels; }
115+
116+
/*! \brief Get variable names for which data is stored in the table
117+
*/
118+
inline const su2vector<std::string>& GetNamesVar() const { return names_var; }
119+
120+
/*! \brief Get table data at a specific level.
121+
* \param[in] i_level - table level index.
122+
* \returns table data
123+
*/
124+
inline const su2activematrix& GetTableData(std::size_t i_level = 0) const { return table_data[i_level]; }
125+
126+
/*! \brief Get table connectivity at a specific level.
127+
* \param[in] i_level - table level index.
128+
* \returns data connectivity
129+
*/
130+
inline const su2matrix<unsigned long>& GetTriangles(std::size_t i_level = 0) const { return triangles[i_level]; }
91131

92-
inline const su2activematrix& GetTableData() const { return table_data; }
132+
/*! \brief Get hull node information at a specific table level.
133+
* \param[in] i_level - table level index.
134+
* \returns hull node indices.
135+
*/
136+
inline const su2vector<unsigned long>& GetHull(std::size_t i_level = 0) const { return hull[i_level]; }
93137

94-
inline const su2matrix<unsigned long>& GetTriangles() const { return triangles; };
138+
/*! \brief Get table level value.
139+
* \param[in] i_level - table level index.
140+
* \returns value of the third controlling variable at table level.
141+
*/
142+
inline su2double GetTableLevel(std::size_t i_level) const { return table_levels[i_level]; }
95143

96-
inline const std::vector<unsigned long>& GetHull() const { return hull; };
144+
/*! \brief Get table dimension
145+
*/
146+
inline unsigned short GetTableDim() const { return table_dim; }
97147

148+
/*! \brief Read LUT file and store information
149+
* \param[in] file_name - LUT input file name.
150+
*/
98151
void ReadRawLUT(const std::string& file_name);
99152
};

0 commit comments

Comments
 (0)