Skip to content

Commit 7c5196d

Browse files
authored
Merge branch 'develop' into master
2 parents cd224b4 + de1d999 commit 7c5196d

37 files changed

+1849
-2005
lines changed

Common/include/config_structure.hpp

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ class CConfig {
191191
nMarker_FarField, /*!< \brief Number of far-field markers. */
192192
nMarker_Custom,
193193
nMarker_SymWall, /*!< \brief Number of symmetry wall markers. */
194-
nMarker_Pressure, /*!< \brief Number of pressure wall markers. */
195194
nMarker_PerBound, /*!< \brief Number of periodic boundary markers. */
196195
nMarker_MixingPlaneInterface, /*!< \brief Number of mixing plane interface boundary markers. */
197196
nMarker_Turbomachinery, /*!< \brief Number turbomachinery markers. */
@@ -234,7 +233,6 @@ class CConfig {
234233
*Marker_FarField, /*!< \brief Far field markers. */
235234
*Marker_Custom,
236235
*Marker_SymWall, /*!< \brief Symmetry wall markers. */
237-
*Marker_Pressure, /*!< \brief Pressure boundary markers. */
238236
*Marker_PerBound, /*!< \brief Periodic boundary markers. */
239237
*Marker_PerDonor, /*!< \brief Rotationally periodic boundary donor markers. */
240238
*Marker_MixingPlaneInterface, /*!< \brief MixingPlane interface boundary markers. */
@@ -808,6 +806,9 @@ class CConfig {
808806
su2double AitkenStatRelax; /*!< \brief Aitken's relaxation factor (if set as static) */
809807
su2double AitkenDynMaxInit; /*!< \brief Aitken's maximum dynamic relaxation factor for the first iteration */
810808
su2double AitkenDynMinInit; /*!< \brief Aitken's minimum dynamic relaxation factor for the first iteration */
809+
bool RampAndRelease; /*!< \brief option for ramp load and release */
810+
bool Sine_Load; /*!< \brief option for sine load */
811+
su2double *SineLoad_Coeff; /*!< \brief Stores the load coefficient */
811812
su2double Wave_Speed; /*!< \brief Wave speed used in the wave solver. */
812813
su2double Thermal_Diffusivity; /*!< \brief Thermal diffusivity used in the heat solver. */
813814
su2double Cyclic_Pitch, /*!< \brief Cyclic pitch for rotorcraft simulations. */
@@ -892,8 +893,8 @@ class CConfig {
892893
bool PseudoStatic; /*!< Application of dead loads to the FE analysis */
893894
bool MatchingMesh; /*!< Matching mesh (while implementing interpolation procedures). */
894895
bool SteadyRestart; /*!< Restart from a steady state for FSI problems. */
895-
su2double Newmark_alpha, /*!< \brief Parameter alpha for Newmark method. */
896-
Newmark_delta; /*!< \brief Parameter delta for Newmark method. */
896+
su2double Newmark_beta, /*!< \brief Parameter alpha for Newmark method. */
897+
Newmark_gamma; /*!< \brief Parameter delta for Newmark method. */
897898
unsigned short nIntCoeffs; /*!< \brief Number of integration coeffs for structural calculations. */
898899
su2double *Int_Coeffs; /*!< \brief Time integration coefficients for structural method. */
899900
unsigned short nElasticityMod, /*!< \brief Number of different values for the elasticity modulus. */
@@ -914,7 +915,6 @@ class CConfig {
914915
unsigned long IncLoad_Nincrements; /*!< \brief Number of increments. */
915916
su2double *IncLoad_Criteria;/*!< \brief Criteria for the application of incremental loading. */
916917
su2double Ramp_Time; /*!< \brief Time until the maximum load is applied. */
917-
su2double Static_Time; /*!< \brief Time while the structure is not loaded in FSI applications. */
918918
unsigned short Pred_Order; /*!< \brief Order of the predictor for FSI applications. */
919919
unsigned short Kind_Interpolation; /*!\brief type of interpolation to use for FSI applications. */
920920
bool Prestretch; /*!< Read a reference geometry for optimization purposes. */
@@ -953,7 +953,8 @@ class CConfig {
953953
*default_htp_axis, /*!< \brief Default HTP axis for the COption class. */
954954
*default_ffd_axis, /*!< \brief Default FFD axis for the COption class. */
955955
*default_inc_crit, /*!< \brief Default incremental criteria array for the COption class. */
956-
*default_extrarelfac; /*!< \brief Default extra relaxation factor for Giles BC in the COption class. */
956+
*default_extrarelfac, /*!< \brief Default extra relaxation factor for Giles BC in the COption class. */
957+
*default_sineload_coeff; /*!< \brief Default values for a sine load. */
957958
unsigned short nSpanWiseSections; /*!< \brief number of span-wise sections */
958959
unsigned short nSpanMaxAllZones; /*!< \brief number of maximum span-wise sections for all zones */
959960
unsigned short *nSpan_iZones; /*!< \brief number of span-wise sections for each zones */
@@ -974,6 +975,7 @@ class CConfig {
974975
bool Body_Force; /*!< \brief Flag to know if a body force is included in the formulation. */
975976
su2double *Body_Force_Vector; /*!< \brief Values of the prescribed body force vector. */
976977
su2double *FreeStreamTurboNormal; /*!< \brief Direction to initialize the flow in turbomachinery computation */
978+
ofstream *ConvHistFile; /*!< \brief Store the pointer to each history file */
977979

978980
/*--- all_options is a map containing all of the options. This is used during config file parsing
979981
to track the options which have not been set (so the default values can be used). Without this map
@@ -7792,13 +7794,13 @@ class CConfig {
77927794
* \brief Get Newmark alpha parameter.
77937795
* \return Value of the Newmark alpha parameter.
77947796
*/
7795-
su2double GetNewmark_alpha(void);
7797+
su2double GetNewmark_beta(void);
77967798

77977799
/*!
77987800
* \brief Get Newmark delta parameter.
77997801
* \return Value of the Newmark delta parameter.
78007802
*/
7801-
su2double GetNewmark_delta(void);
7803+
su2double GetNewmark_gamma(void);
78027804

78037805
/*!
78047806
* \brief Get the number of integration coefficients provided by the user.
@@ -7877,6 +7879,24 @@ class CConfig {
78777879
*/
78787880
su2double GetRamp_Time(void);
78797881

7882+
/*!
7883+
* \brief Check if the user wants to apply the load as a ramp.
7884+
* \return <code>TRUE</code> means that the load is to be applied as a ramp.
7885+
*/
7886+
bool GetRampAndRelease_Load(void);
7887+
7888+
/*!
7889+
* \brief Check if the user wants to apply the load as a ramp.
7890+
* \return <code>TRUE</code> means that the load is to be applied as a ramp.
7891+
*/
7892+
bool GetSine_Load(void);
7893+
7894+
/*!
7895+
* \brief Get the sine load properties.
7896+
* \param[in] val_index - Index corresponding to the load boundary.
7897+
* \return The pointer to the sine load values.
7898+
*/
7899+
su2double* GetLoad_Sine(void);
78807900
/*!
78817901
* \brief Get the kind of load transfer method we want to use for dynamic problems
78827902
* \note This value is obtained from the config file, and it is constant
@@ -7897,12 +7917,6 @@ class CConfig {
78977917
*/
78987918
su2double GetTotalDV_Penalty(void);
78997919

7900-
/*!
7901-
* \brief Get the maximum time of the ramp.
7902-
* \return Value of the max time while the load is linearly increased
7903-
*/
7904-
su2double GetStatic_Time(void);
7905-
79067920
/*!
79077921
* \brief Get the order of the predictor for FSI applications.
79087922
* \return Order of predictor
@@ -8000,6 +8014,16 @@ class CConfig {
80008014
* \return YES if the passed values is the integrated heat flux over the marker's surface.
80018015
*/
80028016
bool GetIntegrated_HeatFlux(void);
8017+
8018+
/*!
8019+
* \brief Retrieve the ofstream of the history file for the current zone.
8020+
*/
8021+
ofstream* GetHistFile(void);
8022+
8023+
/*!
8024+
* \brief Set the ofstream of the history file for the current zone.
8025+
*/
8026+
void SetHistFile(ofstream *HistFile);
80038027
};
80048028

80058029
#include "config_structure.inl"

Common/include/config_structure.inl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,9 +1688,9 @@ inline su2double CConfig::GetCurrent_DynTime(void) { return Current_DynTime; }
16881688

16891689
inline bool CConfig::GetWrt_Dynamic(void) { return Wrt_Dynamic; }
16901690

1691-
inline su2double CConfig::GetNewmark_alpha(void) { return Newmark_alpha; }
1691+
inline su2double CConfig::GetNewmark_beta(void) { return Newmark_beta; }
16921692

1693-
inline su2double CConfig::GetNewmark_delta(void) { return Newmark_delta; }
1693+
inline su2double CConfig::GetNewmark_gamma(void) { return Newmark_gamma; }
16941694

16951695
inline unsigned short CConfig::GetnIntCoeffs(void) { return nIntCoeffs; }
16961696

@@ -1710,12 +1710,16 @@ inline bool CConfig::GetRamp_Load(void) { return Ramp_Load; }
17101710

17111711
inline su2double CConfig::GetRamp_Time(void) { return Ramp_Time; }
17121712

1713+
inline bool CConfig::GetRampAndRelease_Load(void) { return RampAndRelease; }
1714+
1715+
inline bool CConfig::GetSine_Load(void) { return Sine_Load; }
1716+
1717+
inline su2double* CConfig::GetLoad_Sine(void) { return SineLoad_Coeff; }
1718+
17131719
inline su2double CConfig::GetRefGeom_Penalty(void) { return RefGeom_Penalty; }
17141720

17151721
inline su2double CConfig::GetTotalDV_Penalty(void) { return DV_Penalty; }
17161722

1717-
inline su2double CConfig::GetStatic_Time(void) { return Static_Time; }
1718-
17191723
inline unsigned short CConfig::GetPredictorOrder(void) { return Pred_Order; }
17201724

17211725
inline bool CConfig::GetIncrementalLoad(void) { return IncrementalLoad; }
@@ -1779,3 +1783,7 @@ inline unsigned short CConfig::GetKind_RoeLowDiss(void) {return Kind_RoeLowDiss;
17791783
inline su2double CConfig::GetConst_DES(void) {return Const_DES; }
17801784

17811785
inline bool CConfig::GetQCR(void) {return QCR;}
1786+
1787+
inline ofstream* CConfig::GetHistFile(void) { return ConvHistFile; }
1788+
1789+
inline void CConfig::SetHistFile(ofstream *HistFile) { ConvHistFile = HistFile; }

Common/include/option_structure.hpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static const map<string, ENUM_SOLVER> Solver_Map = CCreateMap<string, ENUM_SOLVE
224224
("WAVE_EQUATION", WAVE_EQUATION)
225225
("HEAT_EQUATION_FVM", HEAT_EQUATION_FVM)
226226
("HEAT_EQUATION", HEAT_EQUATION)
227-
("FEM_ELASTICITY", FEM_ELASTICITY)
227+
("ELASTICITY", FEM_ELASTICITY)
228228
("DISC_ADJ_EULER", DISC_ADJ_EULER)
229229
("DISC_ADJ_RANS", DISC_ADJ_RANS)
230230
("DISC_ADJ_NAVIERSTOKES", DISC_ADJ_EULER)
@@ -254,11 +254,10 @@ static const map<string, ENUM_FSI_FLUID_PROBLEM> FSI_Fluid_Solver_Map = CCreateM
254254
enum ENUM_FSI_STRUC_PROBLEM {
255255
NO_SOLVER_SFSI = 0, /*!< \brief Definition of no solver. */
256256
FEM_ELASTICITY_SFSI = 13, /*!< \brief Nonlinear elasticity equations for the FSI problem */
257-
ADJFEM_ELASTICITY_SFSI = 14, /*!< \brief Nonlinear elasticity equations for the FSI problem */
258257
};
259258
static const map<string, ENUM_FSI_STRUC_PROBLEM> FSI_Struc_Solver_Map = CCreateMap<string, ENUM_FSI_STRUC_PROBLEM>
260259
("NONE", NO_SOLVER_SFSI)
261-
("FEM_ELASTICITY", FEM_ELASTICITY_SFSI);
260+
("ELASTICITY", FEM_ELASTICITY_SFSI);
262261

263262
/*!
264263
* \brief Material geometric conditions
@@ -842,13 +841,11 @@ enum ENUM_TRANSFER_METHOD {
842841
BROADCAST_DATA = 1, /*!< \brief Gather data on one processor and broadcast it into all of them, relating to global nodes. */
843842
SCATTER_DATA = 2, /*!< \brief Gather data on one processor and scatter it into the one that needs it. */
844843
ALLGATHER_DATA = 3, /*!< \brief All processors gather data (this will be useful for operations over a group of data - averaging) */
845-
LEGACY_METHOD = 4 /*!< \brief Original transfer method, maintained to check . */
846844
};
847845
static const map<string, ENUM_TRANSFER_METHOD> Transfer_Method_Map = CCreateMap<string, ENUM_TRANSFER_METHOD>
848846
("BROADCAST_DATA", BROADCAST_DATA)
849847
("SCATTER_DATA", SCATTER_DATA)
850-
("ALLGATHER_DATA", ALLGATHER_DATA)
851-
("LEGACY_METHOD", LEGACY_METHOD);
848+
("ALLGATHER_DATA", ALLGATHER_DATA);
852849

853850
/*!
854851
* \brief types of schemes to compute the flow gradient
@@ -907,7 +904,6 @@ enum BC_TYPE {
907904
RIEMANN_BOUNDARY= 24, /*!< \brief Riemann Boundary definition. */
908905
ISOTHERMAL = 25, /*!< \brief No slip isothermal wall boundary condition. */
909906
HEAT_FLUX = 26, /*!< \brief No slip constant heat flux wall boundary condition. */
910-
PRESSURE_BOUNDARY = 27, /*!< \brief Pressure boundary condition. */
911907
ACTDISK_INLET = 32, /*!< \brief Actuator disk inlet boundary definition. */
912908
ACTDISK_OUTLET = 33, /*!< \brief Actuator disk outlet boundary definition. */
913909
CLAMPED_BOUNDARY = 34, /*!< \brief Clamped Boundary definition. */

0 commit comments

Comments
 (0)