Skip to content

Commit 583f249

Browse files
committed
Changes for comments w/ update docs & reg test configs
1 parent 543e062 commit 583f249

File tree

18 files changed

+146
-197
lines changed

18 files changed

+146
-197
lines changed

Common/include/CConfig.hpp

Lines changed: 53 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,10 +1067,12 @@ class CConfig {
10671067
unsigned short *nSpan_iZones; /*!< \brief number of span-wise sections for each zones */
10681068
bool turbMixingPlane; /*!< \brief option for turbulent mixingplane */
10691069
bool SpatialFourier; /*!< \brief option for computing the fourier transforms for subsonic non-reflecting BC. */
1070-
bool RampRotatingFrame; /*!< \brief option for ramping up or down the Rotating Frame values */
1071-
bool RampTranslationFrame; /*!< \brief option for ramping up or down the Translation Frame values */
1072-
bool RampOutletPressure; /*!< \brief option for ramping up or down the outlet pressure */
1073-
bool RampOutletMassFlow; /*!< \brief option for ramping up or down the mass flow rate*/
1070+
bool RampMotionFrame; /*!< \brief option for ramping up or down the motion Frame values */
1071+
bool RampOutlet; /*!< \brief option for ramping up or down the outlet values */
1072+
bool RampRotatingFrame; /*!< \brief option for ramping up or down the motion Frame values */
1073+
bool RampTranslationFrame; /*!< \brief option for ramping up or down the outlet values */
1074+
bool RampOutletMassFlow; /*!< \brief option for ramping up or down the motion Frame values */
1075+
bool RampOutletPressure; /*!< \brief option for ramping up or down the outlet values */
10741076
su2double AverageMachLimit; /*!< \brief option for turbulent mixingplane */
10751077
su2double FinalRotation_Rate_Z; /*!< \brief Final rotation rate Z if Ramp rotating frame is activated. */
10761078
su2double FinalTranslation_Rate_Y; /*!< \brief Final translation rate Y if Ramp translation frame is activated. */
@@ -1126,10 +1128,8 @@ class CConfig {
11261128
jst_coeff[2], /*!< \brief artificial dissipation (flow) array for the COption class. */
11271129
ffd_coeff[3], /*!< \brief artificial dissipation (flow) array for the COption class. */
11281130
mixedout_coeff[3], /*!< \brief default mixedout algorithm coefficients for the COption class. */
1129-
rampRotFrame_coeff[3], /*!< \brief ramp rotating frame coefficients for the COption class. */
1130-
rampTransFrame_coeff[3],/*!< \brief ramp translating frame coefficients for the COption class. */
1131-
rampOutPres_coeff[3], /*!< \brief ramp outlet pressure coefficients for the COption class. */
1132-
rampOutMassFlow_coeff[3], /*< \brief ramp outlet mass flow coefficients for the COption class. */
1131+
rampMotionFrame_coeff[3], /*!< \brief ramp motion frame coefficients for the COption class. */
1132+
rampOutlet_coeff[3], /*!< \brief ramp outlet value coefficients for the COption class. */
11331133
jst_adj_coeff[2], /*!< \brief artificial dissipation (adjoint) array for the COption class. */
11341134
mesh_box_length[3], /*!< \brief mesh box length for the COption class. */
11351135
mesh_box_offset[3], /*!< \brief mesh box offset for the COption class. */
@@ -5165,86 +5165,46 @@ class CConfig {
51655165
void SetKind_PerformanceAverageProcess(unsigned short new_AverageProcess) { Kind_PerformanceAverageProcess = new_AverageProcess; }
51665166

51675167
/*!
5168-
* \brief Get coeff for Rotating Frame Ramp.
5169-
* \return coeff Ramp Rotating Frame.
5168+
* \brief Get Motion Frame Ramp option.
5169+
* \return Ramp Motion Frame option.
51705170
*/
5171-
su2double GetRampRotatingFrame_Coeff(unsigned short iCoeff) const { return rampRotFrame_coeff[iCoeff];}
5171+
bool GetRampMotionFrame(void) const { return RampMotionFrame; }
51725172

51735173
/*!
5174-
* \brief Get Rotating Frame Ramp option.
5175-
* \return Ramp Rotating Frame option.
5176-
*/
5177-
bool GetRampRotatingFrame(void) const { return RampRotatingFrame;}
5178-
5179-
/*!
5180-
* \brief Get coeff for Rotating Frame Ramp.
5181-
* \return coeff Ramp Rotating Frame.
5182-
*/
5183-
su2double GetRampTranslationFrame_Coeff(unsigned short iCoeff) const { return rampTransFrame_coeff[iCoeff];}
5184-
5185-
/*!
5186-
* \brief Get Rotating Frame Ramp option.
5187-
* \return Ramp Rotating Frame option.
5188-
*/
5189-
bool GetRampTranslationFrame(void) const { return RampTranslationFrame;}
5190-
5191-
/*!
5192-
* \brief Get coeff for Outlet Pressure Ramp.
5193-
* \return coeff Ramp Outlet Pressure.
5194-
*/
5195-
su2double GetRampOutletPressure_Coeff(unsigned short iCoeff) const { return rampOutPres_coeff[iCoeff];}
5196-
5197-
/*!
5198-
* \brief Get final Outlet Pressure value for the ramp.
5199-
* \return final Outlet Pressure value.
5200-
*/
5201-
su2double GetFinalOutletPressure(void) const { return FinalOutletPressure; }
5202-
5203-
/*!
5204-
* \brief Get final Outlet Pressure value for the ramp.
5205-
* \return Monitor Outlet Pressure value.
5206-
*/
5207-
su2double GetMonitorOutletPressure(void) const { return MonitorOutletPressure; }
5208-
5209-
/*!
5210-
* \brief Set Monitor Outlet Pressure value for the ramp.
5211-
*/
5212-
void SetMonitorOutletPressure(su2double newMonPres) { MonitorOutletPressure = newMonPres;}
5213-
5214-
/*!
5215-
* \brief Get Outlet Pressure Ramp option.
5216-
* \return Ramp Outlet pressure option.
5217-
*/
5218-
bool GetRampOutletPressure(void) const { return RampOutletPressure;}
5219-
5220-
/*!
5221-
* \brief Get Outlet Mass Flow Ramp option.
5222-
* \return Ramp Outlet Mass flow rate option.
5223-
*/
5224-
bool GetRampOutletMassFlow(void) const { return RampOutletMassFlow;}
5174+
* \brief Get coeff for ramping the frame of motion (translation/rotation) [TURBO ONLY]
5175+
* \return coeff Ramp for frame of motion
5176+
*/
5177+
su2double GetRampMotionFrame_Coeff(unsigned short iCoeff) const { return rampMotionFrame_coeff[iCoeff];}
52255178

52265179
/*!
5227-
* \brief Get coeff for Outlet Mass flow rate Ramp.
5228-
* \return coeff Ramp Outlet Mass flow rate.
5180+
* \brief Get outflow ramp option.
5181+
* \return Ramp outflow option.
52295182
*/
5230-
su2double GetRampOutletMassFlow_Coeff(unsigned short iCoeff) const { return rampOutMassFlow_coeff[iCoeff];}
5183+
bool GetRampOutflow(void) const { return RampOutlet; }
52315184

52325185
/*!
5233-
* \brief Get final Outlet Mass flow rate value for the ramp.
5234-
* \return final Outlet Mass flow rate value.
5235-
*/
5236-
su2double GetFinalOutletMassFlow(void) const { return FinalOutletMassFlow; }
5186+
* \brief Get coeff for ramping the Giles boundary outflow (pressure/mass flow) [TURBO ONLY]
5187+
* \return coeff Ramp for Giles outflow
5188+
*/
5189+
su2double GetRampOutflow_Coeff(unsigned short iCoeff) const { return rampOutlet_coeff[iCoeff]; }
52375190

52385191
/*!
5239-
* \brief Get final Outlet Mass flow rate value for the ramp.
5240-
* \return Monitor Outlet Mass flow value.
5241-
*/
5242-
su2double GetMonitorOutletMassFlow(void) const { return MonitorOutletMassFlow; }
5192+
* \brief General interface for accessing ramp coefficient information
5193+
* \return coeff for ramps
5194+
*/
5195+
su2double GetRamp_Coeff(TURBO_RAMP_TYPE ramp_flag, TURBO_RAMP_COEFF val_coeff) {
5196+
if (ramp_flag == TURBO_RAMP_TYPE::GRID) return rampMotionFrame_coeff[val_coeff];
5197+
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY) return rampOutlet_coeff[val_coeff];
5198+
else return 0;
5199+
};
52435200

52445201
/*!
5245-
* \brief Set Monitor Outlet Mass flow rate value for the ramp.
5202+
* \brief Generic interface for setting monitor outlet values for the ramp.
52465203
*/
5247-
void SetMonitorOutletMassFlow(su2double newMonMassFlow) { MonitorOutletMassFlow= newMonMassFlow;}
5204+
void SetMonitorValue(su2double newMon_val) {
5205+
if (RampOutletPressure) MonitorOutletPressure = newMon_val;
5206+
else if (RampOutletMassFlow) MonitorOutletMassFlow = newMon_val;
5207+
}
52485208

52495209
/*!
52505210
* \brief Get mixedout coefficients.
@@ -6103,6 +6063,16 @@ class CConfig {
61036063
*/
61046064
void SetRotation_Rate(unsigned short iDim, su2double val) { Rotation_Rate[iDim] = val;}
61056065

6066+
/*!
6067+
* \brief General interface for setting the rate of motion in grid ramps
6068+
* \param[in] ramp_flag - flag for type of ramp
6069+
* \param[in] val - new value of rate of motion
6070+
*/
6071+
void SetRate(su2double val) {
6072+
if (RampRotatingFrame) Rotation_Rate[2] = val;
6073+
else if (RampTranslationFrame) Translation_Rate[1] = val;
6074+
};
6075+
61066076
/*!
61076077
* \brief Get the rotation rate of the marker.
61086078
* \param[in] iMarkerMoving - Index of the moving marker (as specified in Marker_Moving)
@@ -6214,6 +6184,14 @@ class CConfig {
62146184
*/
62156185
void SetRotation_Rate_Z(su2double newRotation_Rate_Z);
62166186

6187+
su2double GetFinalValue(TURBO_RAMP_TYPE ramp_flag) {
6188+
if (ramp_flag == TURBO_RAMP_TYPE::GRID && RampRotatingFrame) return FinalRotation_Rate_Z;
6189+
else if (ramp_flag == TURBO_RAMP_TYPE::GRID && RampTranslationFrame) return FinalTranslation_Rate_Y;
6190+
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && RampOutletPressure) return FinalOutletPressure;
6191+
else if (ramp_flag == TURBO_RAMP_TYPE::BOUNDARY && RampOutletMassFlow) return FinalOutletMassFlow;
6192+
else return 0.0;
6193+
};
6194+
62176195
/*!
62186196
* \brief Get the Harmonic Balance frequency pointer.
62196197
* \return Harmonic Balance Frequency pointer.

Common/include/geometry/CGeometry.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,17 @@ class CGeometry {
961961
*/
962962
void SetCustomBoundary(CConfig* config);
963963

964+
/*!
965+
* \brief General interface for setting the velocity in the geometry during motion ramps
966+
* \param[in] config - config class
967+
* \param[in] ramp_flag - flag for type of ramp
968+
* \param[in] print - bool to print update to screen
969+
*/
970+
void SetVelocity(CConfig* config, bool print) {
971+
if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::ROTATING_FRAME) SetRotationalVelocity(config, print);
972+
else if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::STEADY_TRANSLATION) SetTranslationalVelocity(config, print);
973+
};
974+
964975
/*!
965976
* \brief Set cartesian grid velocity based on rotational speed and axis.
966977
* \param[in] config - Definition of the particular problem.

Common/include/option_structure.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,10 +1887,16 @@ enum TURBO_MARKER_TYPE{
18871887
};
18881888

18891889
enum TURBO_RAMP_TYPE{
1890-
GRID = 1, /*!< \brief flag for rotational/translational ramps */
1890+
GRID = 1, /*!< \brief flag for rotational/translational ramps */
18911891
BOUNDARY = 2 /*!< \brief flag for pressure/mass flow ramps*/
18921892
};
18931893

1894+
enum TURBO_RAMP_COEFF{
1895+
INITIAL_VALUE = 0, /*!< \brief intial value of the ramp */
1896+
UPDATE_FREQ = 1, /*<! \brief update frequency of the ramp */
1897+
FINAL_ITER = 2 /*<! \brief final iteration of the ramp */
1898+
};
1899+
18941900
/*!
18951901
* \brief Types inlet boundary treatments
18961902
*/

Common/src/CConfig.cpp

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,32 +1621,20 @@ void CConfig::SetConfig_Options() {
16211621
* the 2nd coefficient is the tolerance for the Newton method, 3rd coefficient is the maximum number of
16221622
* iteration for the Newton Method.*/
16231623
addDoubleArrayOption("MIXEDOUT_COEFF", 3, mixedout_coeff);
1624-
/*!\brief RAMP_ROTATING_FRAME\n DESCRIPTION: option to ramp up or down the rotating frame velocity value*/
1625-
addBoolOption("RAMP_ROTATING_FRAME", RampRotatingFrame, false);
1626-
rampRotFrame_coeff[0] = 0; rampRotFrame_coeff[1] = 1.0; rampRotFrame_coeff[2] = 1000.0;
1627-
/*!\brief RAMP_ROTATING_FRAME_COEFF \n DESCRIPTION: the 1st coeff is the staring velocity,
1628-
* the 2nd coeff is the number of iterations for the update, 3rd is the number of iteration */
1629-
addDoubleArrayOption("RAMP_ROTATING_FRAME_COEFF", 3, rampRotFrame_coeff);
1630-
/*!\brief RAMP_TRANSLATION_FRAME\n DESCRIPTION: option to ramp up or down the translating frame velocity value*/
1631-
addBoolOption("RAMP_TRANSLATION_FRAME", RampTranslationFrame, false);
1632-
rampTransFrame_coeff[0] = 0; rampTransFrame_coeff[1] = 1.0; rampTransFrame_coeff[2] = 1000.0;
1633-
/*!\brief RAMP_TRANSLATION_FRAME\n DESCRIPTION: the 1st coeff is the staring velocity,
1634-
* the 2nd coeff is the number of iterations for the update, 3rd is the number of iteration */
1635-
addDoubleArrayOption("RAMP_TRANSLATION_FRAME_COEFF", 3, rampTransFrame_coeff);
1624+
/*!\brief RAMP_MOTION_FRAME\n DESCRIPTION: option to ramp up or down the frame of motion velocity value*/
1625+
addBoolOption("RAMP_MOTION_FRAME", RampMotionFrame, false);
1626+
rampMotionFrame_coeff[0] = 100.0; rampMotionFrame_coeff[1] = 1.0; rampMotionFrame_coeff[2] = 1000.0;
1627+
/*!\brief RAMP_MOTION_FRAME_COEFF \n DESCRIPTION: the 1st coeff is the staring outlet value,
1628+
* the 2nd coeff is the number of iterations for the update, 3rd is the number of total iteration till reaching the final outlet pressure value */
1629+
addDoubleArrayOption("RAMP_MOTION_FRAME_COEFF", 3, rampMotionFrame_coeff);
16361630
/* DESCRIPTION: AVERAGE_MACH_LIMIT is a limit value for average procedure based on the mass flux. */
16371631
addDoubleOption("AVERAGE_MACH_LIMIT", AverageMachLimit, 0.03);
1638-
/*!\brief RAMP_OUTLET_PRESSURE\n DESCRIPTION: option to ramp up or down the rotating frame velocity value*/
1639-
addBoolOption("RAMP_OUTLET_PRESSURE", RampOutletPressure, false);
1640-
rampOutPres_coeff[0] = 100000.0; rampOutPres_coeff[1] = 1.0; rampOutPres_coeff[2] = 1000.0;
1641-
/*!\brief RAMP_OUTLET_PRESSURE_COEFF \n DESCRIPTION: the 1st coeff is the staring outlet pressure,
1632+
/*!\brief RAMP_OUTLET\n DESCRIPTION: option to ramp up or down the Giles outlet value*/
1633+
addBoolOption("RAMP_OUTLET", RampOutlet, false);
1634+
rampOutlet_coeff[0] = 100000.0; rampOutlet_coeff[1] = 1.0; rampOutlet_coeff[2] = 1000.0;
1635+
/*!\brief RAMP_OUTLET_COEFF \n DESCRIPTION: the 1st coeff is the staring outlet value,
16421636
* the 2nd coeff is the number of iterations for the update, 3rd is the number of total iteration till reaching the final outlet pressure value */
1643-
addDoubleArrayOption("RAMP_OUTLET_PRESSURE_COEFF", 3, rampOutPres_coeff);
1644-
/*!\brief RAMP_OUTLET_MASS_FLOW\n DESCRIPTION: option to ramp up or down the outlet mass flow rate value*/
1645-
addBoolOption("RAMP_OUTLET_MASS_FLOW", RampOutletMassFlow, false);
1646-
rampOutMassFlow_coeff[0] = 1.0; rampOutMassFlow_coeff[1] = 1.0; rampOutPres_coeff[2] = 1000.0;
1647-
/*!\brief RAMP_OUTLET_MASS_FLOW_COEFF \n DESCRIPTION: the 1st coeff is the staring mass flow rate,
1648-
* the 2nd coeff is the number of iterations for the update, 3rd is the number of total iteration till reaching the final outlet mass flow rate value */
1649-
addDoubleArrayOption("RAMP_OUTLET_MASS_FLOW_COEFF", 3, rampOutMassFlow_coeff);
1637+
addDoubleArrayOption("RAMP_OUTLET_COEFF", 3, rampOutlet_coeff);
16501638
/*!\brief MARKER_MIXINGPLANE \n DESCRIPTION: Identify the boundaries in which the mixing plane is applied. \ingroup Config*/
16511639
addStringListOption("MARKER_MIXINGPLANE_INTERFACE", nMarker_MixingPlaneInterface, Marker_MixingPlaneInterface);
16521640
/*!\brief TURBULENT_MIXINGPLANE \n DESCRIPTION: Activate mixing plane also for turbulent quantities \ingroup Config*/
@@ -4367,32 +4355,46 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
43674355
nSpan_iZones = new unsigned short[nZone];
43684356
}
43694357

4358+
/*--- Interface for handling turbo ramps ---*/
4359+
if(GetGrid_Movement() && RampMotionFrame && !DiscreteAdjoint){
4360+
if (Kind_GridMovement == ENUM_GRIDMOVEMENT::ROTATING_FRAME) RampRotatingFrame = true;
4361+
else if (Kind_GridMovement == ENUM_GRIDMOVEMENT::STEADY_TRANSLATION) RampTranslationFrame = true;
4362+
}
4363+
4364+
if(RampOutlet && !DiscreteAdjoint) {
4365+
for (iMarker = 0; iMarker < nMarker_Giles; iMarker++){
4366+
if (Kind_Data_Giles[iMarker] == STATIC_PRESSURE || Kind_Data_Giles[iMarker] == STATIC_PRESSURE_1D || Kind_Data_Giles[iMarker] == RADIAL_EQUILIBRIUM )
4367+
RampOutletPressure = true;
4368+
else if (Kind_Data_Giles[iMarker] == MASS_FLOW_OUTLET) RampOutletMassFlow = true;
4369+
}
4370+
}
4371+
43704372
/*--- Set number of TurboPerformance markers ---*/
43714373
if(GetGrid_Movement() && RampRotatingFrame && !DiscreteAdjoint){
43724374
FinalRotation_Rate_Z = Rotation_Rate[2];
43734375
if(abs(FinalRotation_Rate_Z) > 0.0){
4374-
Rotation_Rate[2] = rampRotFrame_coeff[0];
4376+
Rotation_Rate[2] = rampMotionFrame_coeff[TURBO_RAMP_COEFF::INITIAL_VALUE];
43754377
}
43764378
}
43774379

43784380
if(GetGrid_Movement() && RampTranslationFrame && !DiscreteAdjoint){
43794381
FinalTranslation_Rate_Y = Translation_Rate[1];
43804382
if(abs(FinalTranslation_Rate_Y) > 0.0){
4381-
Translation_Rate[1] = rampTransFrame_coeff[0];
4383+
Translation_Rate[1] = rampMotionFrame_coeff[TURBO_RAMP_COEFF::INITIAL_VALUE];
43824384
}
43834385
}
43844386

43854387
if(RampOutletPressure && !DiscreteAdjoint){
43864388
for (iMarker = 0; iMarker < nMarker_Giles; iMarker++){
43874389
if (Kind_Data_Giles[iMarker] == STATIC_PRESSURE || Kind_Data_Giles[iMarker] == STATIC_PRESSURE_1D || Kind_Data_Giles[iMarker] == RADIAL_EQUILIBRIUM ){
43884390
FinalOutletPressure = Giles_Var1[iMarker];
4389-
Giles_Var1[iMarker] = rampOutPres_coeff[0];
4391+
Giles_Var1[iMarker] = rampOutlet_coeff[TURBO_RAMP_COEFF::INITIAL_VALUE];
43904392
}
43914393
}
43924394
for (iMarker = 0; iMarker < nMarker_Riemann; iMarker++){
43934395
if (Kind_Data_Riemann[iMarker] == STATIC_PRESSURE || Kind_Data_Riemann[iMarker] == RADIAL_EQUILIBRIUM){
43944396
FinalOutletPressure = Riemann_Var1[iMarker];
4395-
Riemann_Var1[iMarker] = rampOutPres_coeff[0];
4397+
Riemann_Var1[iMarker] = rampOutlet_coeff[TURBO_RAMP_COEFF::INITIAL_VALUE];
43964398
}
43974399
}
43984400
}
@@ -4401,7 +4403,7 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
44014403
for (iMarker = 0; iMarker < nMarker_Giles; iMarker++){
44024404
if (Kind_Data_Giles[iMarker] == MASS_FLOW_OUTLET){
44034405
FinalOutletMassFlow = Giles_Var1[iMarker];
4404-
Giles_Var1[iMarker] = rampOutMassFlow_coeff[0];
4406+
Giles_Var1[iMarker] = rampOutlet_coeff[TURBO_RAMP_COEFF::INITIAL_VALUE];
44054407
}
44064408
}
44074409
}

SU2_CFD/include/iteration/CFluidIteration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class CFluidIteration : public CIteration {
115115
* \param[in] iZone - The current zone
116116
* \param[in] ramp_flag - Flag indicating type of ramp (grid or boundary)
117117
*/
118-
virtual void TurboRamp(CGeometry**** geometry_container, CConfig** config_container, unsigned long iter, unsigned short iZone, unsigned short ramp_flag) {};
118+
virtual void TurboRamp(CGeometry**** geometry_container, CConfig** config_container, unsigned long iter, unsigned short iZone, TURBO_RAMP_TYPE ramp_flag) {};
119119

120120
/*!
121121
* \brief Computes turboperformance.

SU2_CFD/include/iteration/CTurboIteration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ class CTurboIteration : public CFluidIteration {
7777
* \param[in] iZone - The current zone
7878
* \param[in] ramp_flag - Flag indicating type of ramp (grid or boundary)
7979
*/
80-
void TurboRamp(CGeometry**** geometry_container, CConfig** config_container, unsigned long iter, unsigned short iZone, unsigned short ramp_flag) override;
80+
void TurboRamp(CGeometry**** geometry_container, CConfig** config_container, unsigned long iter, unsigned short iZone, TURBO_RAMP_TYPE ramp_flag) override;
8181
};

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ bool CFluidIteration::Monitor(COutput* output, CIntegration**** integration, CGe
233233
config[val_iZone]->GetInnerIter(), val_iInst);
234234
}
235235
/*--- Update ramps, grid first then outlet boundary ---*/
236-
if (config[val_iZone]->GetRampRotatingFrame() || config[val_iZone]->GetRampTranslationFrame())
236+
if (config[val_iZone]->GetRampMotionFrame())
237237
TurboRamp(geometry, config, config[val_iZone]->GetInnerIter(), val_iZone, TURBO_RAMP_TYPE::GRID);
238-
if (config[val_iZone]->GetRampOutletMassFlow() || config[val_iZone]->GetRampOutletPressure())
238+
if (config[val_iZone]->GetRampOutflow())
239239
TurboRamp(geometry, config, config[val_iZone]->GetInnerIter(), val_iZone, TURBO_RAMP_TYPE::BOUNDARY);
240240
}
241241
output->SetHistoryOutput(geometry[val_iZone][val_iInst][MESH_0], solver[val_iZone][val_iInst][MESH_0],

0 commit comments

Comments
 (0)