@@ -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.
0 commit comments