Skip to content

Commit 08c5178

Browse files
committed
Merging develop.
2 parents ccd96a0 + 28753f0 commit 08c5178

File tree

63 files changed

+4211
-1555
lines changed

Some content is hidden

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

63 files changed

+4211
-1555
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ before_script:
9191

9292
script:
9393
# Run the tests via the Python scripts
94-
- travis_wait 90 python $TEST_SCRIPT
94+
- python $TEST_SCRIPT

Common/include/config_structure.hpp

Lines changed: 88 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ class CConfig {
230230
nMarker_CfgFile; /*!< \brief Total number of markers using the config file
231231
(note that using parallel computation this number can be different
232232
from nMarker_All). */
233+
bool Inlet_From_File; /*!< \brief True if the inlet profile is to be loaded from a file. */
234+
string Inlet_Filename; /*!< \brief Filename specifying an inlet profile. */
235+
su2double Inlet_Matching_Tol; /*!< \brief Tolerance used when matching a point to a point from the inlet file. */
233236
string *Marker_Euler, /*!< \brief Euler wall markers. */
234237
*Marker_FarField, /*!< \brief Far field markers. */
235238
*Marker_Custom,
@@ -417,6 +420,7 @@ class CConfig {
417420
unsigned short nGridMovement; /*!< \brief Number of grid movement types specified. */
418421
unsigned short nTurboMachineryKind; /*!< \brief Number turbomachinery types specified. */
419422
unsigned short nParamDV; /*!< \brief Number of parameters of the design variable. */
423+
string DV_Filename; /*!< \brief Filename for providing surface positions from an external parameterization. */
420424
su2double **ParamDV; /*!< \brief Parameters of the design variable. */
421425
su2double **CoordFFDBox; /*!< \brief Coordinates of the FFD boxes. */
422426
unsigned short **DegreeFFDBox; /*!< \brief Degree of the FFD boxes. */
@@ -726,20 +730,24 @@ class CConfig {
726730
Wrt_Vol_Sol, /*!< \brief Write a volume solution file */
727731
Wrt_Srf_Sol, /*!< \brief Write a surface solution file */
728732
Wrt_Csv_Sol, /*!< \brief Write a surface comma-separated values solution file */
733+
Wrt_Crd_Sol, /*!< \brief Write a binary file with the grid coordinates only. */
729734
Wrt_Residuals, /*!< \brief Write residuals to solution file */
730735
Wrt_Surface, /*!< \brief Write solution at each surface */
731736
Wrt_Limiters, /*!< \brief Write residuals to solution file */
732737
Wrt_SharpEdges, /*!< \brief Write residuals to solution file */
733738
Wrt_Halo, /*!< \brief Write rind layers in solution files */
739+
Wrt_Performance, /*!< \brief Write the performance summary at the end of a calculation. */
740+
Wrt_InletFile, /*!< \brief Write a template inlet profile file */
734741
Wrt_Slice, /*!< \brief Write 1D slice of a 2D cartesian solution */
735742
Plot_Section_Forces; /*!< \brief Write sectional forces for specified markers. */
736743
unsigned short Console_Output_Verb, /*!< \brief Level of verbosity for console output */
737744
Kind_Average; /*!< \brief Particular average for the marker analyze. */
738745
su2double Gamma, /*!< \brief Ratio of specific heats of the gas. */
739746
Bulk_Modulus, /*!< \brief Value of the bulk modulus for incompressible flows. */
740-
ArtComp_Factor, /*!< \brief Value of the artificial compresibility factor for incompressible flows. */
747+
Beta_Factor, /*!< \brief Value of the epsilon^2 multiplier for Beta for the incompressible preconditioner. */
741748
Gas_Constant, /*!< \brief Specific gas constant. */
742749
Gas_ConstantND, /*!< \brief Non-dimensional specific gas constant. */
750+
Molecular_Weight, /*!< \brief Molecular weight of an incompressible ideal gas (g/mol). */
743751
Specific_Heat_Cp, /*!< \brief Specific heat at constant pressure. */
744752
Specific_Heat_CpND, /*!< \brief Non-dimensional specific heat at constant pressure. */
745753
Specific_Heat_Cp_Solid, /*!< \brief Specific heat in solids. */
@@ -838,7 +846,6 @@ class CConfig {
838846
su2double Thermal_Diffusivity; /*!< \brief Thermal diffusivity used in the heat solver. */
839847
su2double Cyclic_Pitch, /*!< \brief Cyclic pitch for rotorcraft simulations. */
840848
Collective_Pitch; /*!< \brief Collective pitch for rotorcraft simulations. */
841-
string Motion_Filename; /*!< \brief Arbitrary mesh motion input base filename. */
842849
su2double Mach_Motion; /*!< \brief Mach number based on mesh velocity and freestream quantities. */
843850
su2double *Motion_Origin_X, /*!< \brief X-coordinate of the mesh motion origin. */
844851
*Motion_Origin_Y, /*!< \brief Y-coordinate of the mesh motion origin. */
@@ -1000,7 +1007,9 @@ class CConfig {
10001007
bool Body_Force; /*!< \brief Flag to know if a body force is included in the formulation. */
10011008
su2double *Body_Force_Vector; /*!< \brief Values of the prescribed body force vector. */
10021009
su2double *FreeStreamTurboNormal; /*!< \brief Direction to initialize the flow in turbomachinery computation */
1003-
su2double Max_Beta; /*!< \brief Maximum Beta parameter (incompressible preconditioning) in the domain */
1010+
su2double Restart_Bandwidth_Agg; /*!< \brief The aggregate of the bandwidth for writing binary restarts (to be averaged later). */
1011+
su2double Max_Vel2; /*!< \brief The maximum velocity^2 in the domain for the incompressible preconditioner. */
1012+
10041013
ofstream *ConvHistFile; /*!< \brief Store the pointer to each history file */
10051014

10061015
/*--- all_options is a map containing all of the options. This is used during config file parsing
@@ -1545,10 +1554,10 @@ class CConfig {
15451554
su2double GetBulk_Modulus(void);
15461555

15471556
/*!
1548-
* \brief Get the artificial compresibility factor.
1549-
* \return Value of the artificial compresibility factor.
1557+
* \brief Get the epsilon^2 multiplier for Beta in the incompressible preconditioner.
1558+
* \return Value of the epsilon^2 multiplier for Beta in the incompressible preconditioner.
15501559
*/
1551-
su2double GetArtComp_Factor(void);
1560+
su2double GetBeta_Factor(void);
15521561

15531562
/*!
15541563
* \brief Get the value of specific gas constant.
@@ -1562,6 +1571,12 @@ class CConfig {
15621571
*/
15631572
su2double GetGas_ConstantND(void);
15641573

1574+
/*!
1575+
* \brief Get the value of the molecular weight for an incompressible ideal gas (g/mol).
1576+
* \return Value of the molecular weight for an incompressible ideal gas (g/mol).
1577+
*/
1578+
su2double GetMolecular_Weight(void);
1579+
15651580
/*!
15661581
* \brief Get the value of specific heat at constant pressure.
15671582
* \return Value of the constant: Cp
@@ -2825,6 +2840,12 @@ class CConfig {
28252840
*/
28262841
unsigned short GetnMarker_Monitoring(void);
28272842

2843+
/*!
2844+
* \brief Get the total number of DV markers.
2845+
* \return Total number of DV markers.
2846+
*/
2847+
unsigned short GetnMarker_DV(void);
2848+
28282849
/*!
28292850
* \brief Get the total number of moving markers.
28302851
* \return Total number of moving markers.
@@ -3037,6 +3058,12 @@ class CConfig {
30373058
*/
30383059
bool GetWrt_Csv_Sol(void);
30393060

3061+
/*!
3062+
* \brief Get information about writing a binary coordinates file.
3063+
* \return <code>TRUE</code> means that a binary coordinates file will be written.
3064+
*/
3065+
bool GetWrt_Crd_Sol(void);
3066+
30403067
/*!
30413068
* \brief Get information about writing residuals to volume solution file.
30423069
* \return <code>TRUE</code> means that residuals will be written to the solution file.
@@ -3067,6 +3094,24 @@ class CConfig {
30673094
*/
30683095
bool GetWrt_Halo(void);
30693096

3097+
/*!
3098+
* \brief Get information about writing the performance summary at the end of a calculation.
3099+
* \return <code>TRUE</code> means that the performance summary will be written at the end of a calculation.
3100+
*/
3101+
bool GetWrt_Performance(void);
3102+
3103+
/*!
3104+
* \brief Get information about writing a template inlet profile file.
3105+
* \return <code>TRUE</code> means that a template inlet profile file will be written.
3106+
*/
3107+
bool GetWrt_InletFile(void);
3108+
3109+
/*!
3110+
* \brief Set information about writing a template inlet profile file.
3111+
* \param[in] val_wrt_inletfile - flag for whether to write a template inlet profile file.
3112+
*/
3113+
void SetWrt_InletFile(bool val_wrt_inletfile);
3114+
30703115
/*!
30713116
* \brief Get information about writing a 1D slice of a 2D cartesian solution.
30723117
* \return <code>TRUE</code> means that a 1D slice of a 2D cartesian solution will be written.
@@ -4372,6 +4417,24 @@ class CConfig {
43724417
*/
43734418
unsigned short GetKind_Inlet(void);
43744419

4420+
/*!
4421+
* \brief Check if the inlet profile(s) are specified in an input file
4422+
* \return True if an input file is to be used for the inlet profile(s)
4423+
*/
4424+
bool GetInlet_Profile_From_File(void);
4425+
4426+
/*!
4427+
* \brief Get name of the input file for the specified inlet profile.
4428+
* \return Name of the input file for the specified inlet profile.
4429+
*/
4430+
string GetInlet_FileName(void);
4431+
4432+
/*!
4433+
* \brief Get the tolerance used for matching two points on a specified inlet
4434+
* \return Tolerance used for matching a point to a specified inlet
4435+
*/
4436+
su2double GetInlet_Profile_Matching_Tolerance(void);
4437+
43754438
/*!
43764439
* \brief Get the type of incompressible inlet from the list.
43774440
* \return Kind of the incompressible inlet.
@@ -7639,7 +7702,7 @@ class CConfig {
76397702
* \brief Get name of the arbitrary mesh motion input file.
76407703
* \return File name of the arbitrary mesh motion input file.
76417704
*/
7642-
string GetMotion_FileName(void);
7705+
string GetDV_Filename(void);
76437706

76447707
/*!
76457708
* \brief Set the config options.
@@ -8318,16 +8381,28 @@ class CConfig {
83188381
bool GetAD_Mode(void);
83198382

83208383
/*!
8321-
* \brief Set the maximum Beta parameter (artificial compressibility) in the domain.
8322-
* \param[in] Value of the max Beta parameter (artificial compressibility).
8384+
* \brief Set the maximum velocity^2 in the domain for the incompressible preconditioner.
8385+
* \param[in] Value of the maximum velocity^2 in the domain for the incompressible preconditioner.
83238386
*/
8324-
void SetMax_Beta(su2double val_maxBeta);
8387+
void SetMax_Vel2(su2double val_max_vel2);
83258388

83268389
/*!
8327-
* \brief Get the maximum Beta parameter (artificial compressibility) in the domain.
8328-
* \return Value of the max Beta parameter (artificial compressibility) in the domain.
8390+
* \brief Get the maximum velocity^2 in the domain for the incompressible preconditioner.
8391+
* \return Value of the maximum velocity^2 in the domain for the incompressible preconditioner.
8392+
*/
8393+
su2double GetMax_Vel2(void);
8394+
8395+
/*!
8396+
* \brief Set the sum of the bandwidth for writing binary restarts (to be averaged later).
8397+
* \param[in] Sum of the bandwidth for writing binary restarts.
8398+
*/
8399+
void SetRestart_Bandwidth_Agg(su2double val_restart_bandwidth_sum);
8400+
8401+
/*!
8402+
* \brief Set the sum of the bandwidth for writing binary restarts (to be averaged later).
8403+
* \return Sum of the bandwidth for writing binary restarts.
83298404
*/
8330-
su2double GetMax_Beta(void);
8405+
su2double GetRestart_Bandwidth_Agg(void);
83318406

83328407
/*!
83338408
* \brief Get the frequency for writing the surface solution file in Dual Time.

Common/include/config_structure.inl

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,12 +443,14 @@ inline su2double CConfig::GetFFD_Axis(unsigned short val_var) { return FFD_Axis[
443443

444444
inline su2double CConfig::GetBulk_Modulus(void) { return Bulk_Modulus; }
445445

446-
inline su2double CConfig::GetArtComp_Factor(void) { return ArtComp_Factor; }
446+
inline su2double CConfig::GetBeta_Factor(void) { return Beta_Factor; }
447447

448448
inline su2double CConfig::GetGas_Constant(void) { return Gas_Constant; }
449449

450450
inline su2double CConfig::GetGas_ConstantND(void) { return Gas_ConstantND; }
451451

452+
inline su2double CConfig::GetMolecular_Weight(void) { return Molecular_Weight; }
453+
452454
inline su2double CConfig::GetSpecific_Heat_Cp(void) { return Specific_Heat_Cp; }
453455

454456
inline su2double CConfig::GetSpecific_Heat_Cp_Solid(void) { return Specific_Heat_Cp_Solid; }
@@ -1129,6 +1131,12 @@ inline unsigned short CConfig::GetKind_ConvNumScheme_Heat(void) { return Kind_Co
11291131

11301132
inline unsigned short CConfig::GetKind_Inlet(void) { return Kind_Inlet; }
11311133

1134+
inline bool CConfig::GetInlet_Profile_From_File(void) { return Inlet_From_File; }
1135+
1136+
inline string CConfig::GetInlet_FileName(void) { return Inlet_Filename; }
1137+
1138+
inline su2double CConfig::GetInlet_Profile_Matching_Tolerance(void) { return Inlet_Matching_Tol; }
1139+
11321140
inline unsigned short CConfig::GetnInc_Inlet(void) { return nInc_Inlet;}
11331141

11341142
inline bool CConfig::GetInc_Inlet_UseNormal(void) { return Inc_Inlet_UseNormal;}
@@ -1364,6 +1372,8 @@ inline unsigned short CConfig::GetnMarker_Fluid_InterfaceBound(void) { return nM
13641372

13651373
inline unsigned short CConfig::GetnMarker_Monitoring(void) { return nMarker_Monitoring; }
13661374

1375+
inline unsigned short CConfig::GetnMarker_DV(void) { return nMarker_DV; }
1376+
13671377
inline unsigned short CConfig::GetnMarker_Moving(void) { return nMarker_Moving; }
13681378

13691379
inline unsigned short CConfig::GetnMarker_PyCustom(void) { return nMarker_PyCustom; }
@@ -1604,7 +1614,7 @@ inline su2double CConfig::GetCyclic_Pitch(void) { return Cyclic_Pitch; }
16041614

16051615
inline su2double CConfig::GetCollective_Pitch(void) { return Collective_Pitch; }
16061616

1607-
inline string CConfig::GetMotion_FileName(void) { return Motion_Filename; }
1617+
inline string CConfig::GetDV_Filename(void) { return DV_Filename; }
16081618

16091619
inline bool CConfig::GetLow_MemoryOutput(void) { return Low_MemoryOutput; }
16101620

@@ -1614,6 +1624,8 @@ inline bool CConfig::GetWrt_Srf_Sol(void) { return Wrt_Srf_Sol; }
16141624

16151625
inline bool CConfig::GetWrt_Csv_Sol(void) { return Wrt_Csv_Sol; }
16161626

1627+
inline bool CConfig::GetWrt_Crd_Sol(void) { return Wrt_Crd_Sol; }
1628+
16171629
inline bool CConfig::GetWrt_Residuals(void) { return Wrt_Residuals; }
16181630

16191631
inline bool CConfig::GetWrt_Limiters(void) { return Wrt_Limiters; }
@@ -1624,6 +1636,12 @@ inline bool CConfig::GetWrt_SharpEdges(void) { return Wrt_SharpEdges; }
16241636

16251637
inline bool CConfig::GetWrt_Halo(void) { return Wrt_Halo; }
16261638

1639+
inline bool CConfig::GetWrt_Performance(void) { return Wrt_Performance; }
1640+
1641+
inline bool CConfig::GetWrt_InletFile(void) { return Wrt_InletFile; }
1642+
1643+
inline void CConfig::SetWrt_InletFile(bool val_wrt_inletfile) { Wrt_InletFile = val_wrt_inletfile; }
1644+
16271645
inline bool CConfig::GetWrt_Slice(void) { return Wrt_Slice; }
16281646

16291647
inline bool CConfig::GetPlot_Section_Forces(void) { return Plot_Section_Forces; }
@@ -1856,9 +1874,13 @@ inline unsigned short CConfig::GetFFD_Blending(void){return FFD_Blending;}
18561874

18571875
inline su2double* CConfig::GetFFD_BSplineOrder(){return FFD_BSpline_Order;}
18581876

1859-
inline void CConfig::SetMax_Beta(su2double val_Max_Beta) { Max_Beta = val_Max_Beta; }
1877+
inline void CConfig::SetMax_Vel2(su2double val_max_vel2) { Max_Vel2 = val_max_vel2; }
1878+
1879+
inline su2double CConfig::GetMax_Vel2(void) { return Max_Vel2; }
1880+
1881+
inline void CConfig::SetRestart_Bandwidth_Agg(su2double val_restart_bandwidth_sum) { Restart_Bandwidth_Agg = val_restart_bandwidth_sum; }
18601882

1861-
inline su2double CConfig::GetMax_Beta(void) { return Max_Beta; }
1883+
inline su2double CConfig::GetRestart_Bandwidth_Agg(void) { return Restart_Bandwidth_Agg; }
18621884

18631885
inline unsigned long CConfig::GetWrt_Surf_Freq_DualTime(void) { return Wrt_Surf_Freq_DualTime; }
18641886

0 commit comments

Comments
 (0)