You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Common/include/CConfig.hpp
+1-53Lines changed: 1 addition & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -998,11 +998,7 @@ class CConfig {
998
998
bool Streamwise_Periodic_Temperature; /*!< \brief Use real periodicity for Energy equation or oterwise outlet source term. */
999
999
su2double Streamwise_Periodic_PressureDrop, /*!< \brief Value of prescribed pressure drop [Pa] which results in an artificial body force vector. */
1000
1000
Streamwise_Periodic_TargetMassFlow, /*!< \brief Value of prescribed massflow [kg/s] which results in an delta p and therefore an artificial body force vector. */
1001
-
Streamwise_Periodic_MassFlow, /*!< \brief Value of current massflow [kg/s] which results in an delta p and therefore an artificial body force vector. */
1002
-
Streamwise_Periodic_IntegratedHeatFlow, /*!< \brief Value of of the net sum of heatflow [W] into the domain. */
Streamwise_Periodic_InletTemperature; /*!< /brief Area avg static Temp [K] at the periodic inlet. Used for adaptive outlet heatsink. */
1005
-
vector<su2double> Streamwise_Periodic_RefNode; /*!< \brief Coordinates of the reference node [m] on the receiving periodic marker, for recovered pressure computation only. Size nDim.*/
Copy file name to clipboardExpand all lines: Common/include/geometry/CPhysicalGeometry.hpp
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,8 @@ class CPhysicalGeometry final : public CGeometry {
107
107
vector<int> GlobalMarkerStorageDispl;
108
108
vector<su2double> GlobalRoughness_Height;
109
109
110
+
su2double Streamwise_Periodic_RefNode[MAXNDIM] = {0}; /*!< \brief Coordinates of the reference node [m] on the receiving periodic marker, for recovered pressure computation only. Size nDim.*/
111
+
110
112
public:
111
113
/*--- This is to suppress Woverloaded-virtual, omitting it has no negative impact. ---*/
112
114
using CGeometry::SetVertex;
@@ -790,4 +792,9 @@ class CPhysicalGeometry final : public CGeometry {
Copy file name to clipboardExpand all lines: SU2_CFD/include/numerics/flow/flow_sources.hpp
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,10 @@ class CSourceBase_Flow : public CNumerics {
40
40
protected:
41
41
su2double* residual = nullptr;
42
42
su2double** jacobian = nullptr;
43
+
su2double
44
+
Streamwise_Periodic_MassFlow, /*!< \brief Value of current massflow [kg/s] which results in an delta p and therefore an artificial body force vector. */
45
+
Streamwise_Periodic_IntegratedHeatFlow, /*!< \brief Value of of the net sum of heatflow [W] into the domain. */
46
+
Streamwise_Periodic_InletTemperature; /*!< /brief Area avg static Temp [K] at the periodic inlet. Used for adaptive outlet heatsink. */
43
47
44
48
/*!
45
49
* \brief Constructor of the class.
@@ -55,6 +59,18 @@ class CSourceBase_Flow : public CNumerics {
55
59
*/
56
60
~CSourceBase_Flow() override;
57
61
62
+
/*!
63
+
* \brief Constructor of the class.
64
+
* \param[in] val_nDim - Number of dimensions of the problem.
65
+
* \param[in] val_nVar - Number of variables of the problem.
66
+
* \param[in] config - Definition of the particular problem.
vector<CFluidModel*> FluidModel; /*!< \brief fluid model used in the solver. */
42
+
su2double
43
+
Streamwise_Periodic_MassFlow, /*!< \brief Value of current massflow [kg/s] which results in an delta p and therefore an artificial body force vector. */
44
+
Streamwise_Periodic_IntegratedHeatFlow, /*!< \brief Value of of the net sum of heatflow [W] into the domain. */
45
+
Streamwise_Periodic_InletTemperature; /*!< /brief Area avg static Temp [K] at the periodic inlet. Used for adaptive outlet heatsink. */
42
46
43
47
/*!
44
48
* \brief Preprocessing actions common to the Euler and NS solvers.
@@ -392,4 +396,22 @@ class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, INCOMPRESSI
const su2double delta_p = config->GetStreamwise_Periodic_PressureDrop() / config->GetPressure_Ref(); /*!< \brief Value of prescribed pressure drop which results in an artificial body force vector. */
const su2double integrated_heatflow = config->GetStreamwise_Periodic_IntegratedHeatFlow(); /*!< \brief Total heat added into the domain via heatflux marker. */
698
696
699
697
for (unsignedshort iVar = 0; iVar < nVar; iVar++) residual[iVar] = 0.0;
700
698
@@ -707,7 +705,7 @@ CNumerics::ResidualType<> CSourceIncStreamwise_Periodic::ComputeResidual(const C
707
705
/*--- Compute the periodic temperature contribution to the energy equation, if energy equation is considered ---*/
0 commit comments