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: _tutorials/incompressible_flow/Inc_Species_Transport_Composition_Dependent_Model/Inc_Species_Transport_Composition_Dependent_Model.md
+37-45Lines changed: 37 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,14 +37,16 @@ The geometry consists on a Static Kenics mixer with three blades, each blade sta
37
37
38
38
## Problem Setup
39
39
40
-
In this problem, we study the flow and mixing properties along the static kenic mixer. Then, we have the following boundary conditions at the inlets and outlet:
40
+
In this problem, we study the flow and mixing along the static kenic mixer. Then, we have the following boundary conditions at the inlets and outlet:
41
41
42
42
- Equal Inlet Velocities (constant) = 5 m/s in normal direction (z-direction)
43
43
- Outlet Pressure (constant) = 0 Pa
44
44
- Inlet Temperature (both inlets) = 300 K
45
45
- Adiabatic walls.
46
46
47
-
The SST turbulence model is used with the default settings of freestream turbulence intensity of 5% and a turbulent-to-laminar viscosity ratio of 10. However, in order to highlight the new option available in SU2 of having different turbulence intensities and turbulent-to-laminar viscosity ratios, these will be given as marker inlet turbulent that will be explained in the following section.
47
+
In this case the energy equation is switched `OFF` as we consider two streams with the same temperature and adiabatic walls.
48
+
49
+
The SST turbulence model is used with the default settings of freestream turbulence intensity of 5% and turbulent-to-laminar viscosity ratio of 10. However, in order to highlight the new option available in SU2 of having different turbulence intensities and turbulent-to-laminar viscosity ratios, these will be given as marker inlets for turbulence that will be explained in the following section.
48
50
49
51
The thermochemical properties for each gas are given below:
50
52
* Methane:
@@ -63,15 +65,15 @@ The species mass fractions at each inlet are the following:
It must be noticed that inside SU2, for a mixture of N species, N-1 species transport equations are being solved and the last species is computed as $1-\sum_{i=1}^{N-1} Y_i$. Thus, in this tutorial, a transport equation for methane is being solved. For more information, please see [Theory](/docs_v7/Theory/).
68
+
It must be noticed that inside SU2, for a mixture of N species, N-1 species transport equations are being solved and the last species is computed as $1-\sum Y_i$. Thus, in this tutorial, a transport equation for methane is being solved. For more information, please see [Theory](/docs_v7/Theory/).
67
69
68
70
## Configuration File Options
69
71
70
72
All available options concerning species transport are listed in the [config_template.cfg](https://github.com/su2code/SU2/blob/master/config_template.cfg).Here, we are going to focus in the composition-dependent options.
71
73
72
74
For activating the composition-dependent model, the fluid model must be chosen as `FLUID_MODEL= FLUID_MIXTURE`. It must be noted that this model is only compatible with `INC_DENSITY_MODEL= VARIABLE`. Otherwise, an error will be shown at run-time.
73
75
74
-
For incompressible flows, a low-mach Number approximation allows to decompose the pressure into dynamics and thermodynamics (operating) pressure (see [Theory]/docs_v7/Theory/). The operating pressure is used for computing the mixture density using the Ideal gas law. The thermodynamic pressure might strongly affects the density at the inlets causing unphysical results. Therefore, the thermodynamic pressure must be provided for the user for the `FLUID_MIXTURE` model and it is not longer computed from the free-stream conditions as it is done in the other fluid models. As in mixing and combustion processes, the operating pressure is often assumed as 101325 pa, then this is the default value considered inside SU2 if the thermodynamics pressure is not given in the .cfg file. The thermodynamics pressure is given in the .cfg file as follow: `THERMODYNAMIC_PRESSURE= 101325.0`.
76
+
For incompressible flows, a low-mach Number approximation allows to decompose the pressure into dynamics and thermodynamics (operating) pressure (see [Theory]/docs_v7/Theory/). The operating pressure is used for computing the mixture density using the Ideal gas law. The thermodynamic pressure might strongly affect the density at the inlets causing unphysical results. Therefore, the thermodynamic pressure must be provided for the user for the `FLUID_MIXTURE` model and, it is not longer computed from the free-stream conditions as it is done in the other fluid models. As in mixing and combustion processes, the operating pressure is often assumed as 101325 pa, then this is the default value considered inside SU2 if the thermodynamics pressure is not given in the .cfg file. The thermodynamics pressure is given in the .cfg file as follow: `THERMODYNAMIC_PRESSURE= 101325.0`.
75
77
76
78
Subsequently, The molecular weights and Heat capacities at constant pressure must be provided as a list as follow: `MOLECULAR_WEIGHT= W_1, W_2,...., W_N` , `SPECIFIC_HEAT_CP = Cp_1, Cp_2,..., Cp_N`. The length of the list must match the number of the N species in the mixture. Moreover, the mean molecular weight is computed as a mole fraction average and the mixture heat capacity is computed as a mass fraction average. For more information, please see $^{1},^{3}$.
The Species transport is switched on by setting `KIND_SCALAR_MODEL= SPECIES_TRANSPORT`. For the mass diffusivity, the following models are available `DIFFUSIVITY_MODEL= CONSTANT_DIFFUSIVITY, CONSTANT_SCHMIDT, UNITY_LEWIS, CONSTANT_LEWIS` , where `CONSTANT_DIFFUSIVITY` is the default model. For the two first, a constant value for all species must be given in the .cfg file, as it is done in the species transport tutorial [Inc_Species_Transport](/tutorials/Inc_Species_Transport/). For the UNITY_LEWIS, no values must be provided because the diffusivity is computed using the mixture thermal conductivity, density and heat capacity at constant pressure, for more information please see $^{3}$. For highly diffusive gases, such as hydrogen, the `CONSTANT_LEWIS` option could be used. For this option, the Lewis numbers of the N-1 species which a transport equation is being solved must be provided as a list using the following option `CONSTANT_LEWIS_NUMBER= Le_1, Le_2, ..., Le_N_1`. Finally, for turbulent simulations, the turbulent diffusivity is computed based on the `SCHMIDT_NUMBER_TURBULENT`. For reference, please consult [the respective theory](/docs_v7/Theory/#species-transport).
133
135
134
-
Finally, for the SST model, it is possible to provide the intensity and turbulent-to-laminar viscosity ratios per inlet. For this option, we use the following structure `MARKER_INLET_TURBULENT= (inlet_1, TurbIntensity_1, TurbLamViscRatio_1, inlet_2, TurbIntensity_2, TurbLamViscRatio_2, ...)`. The other species transport options can be found in the species transport.
135
-
136
-
The number of species transport equations is not set individually but deduced from the number of values given in the respective lists for species options. SU2 checks whether the same amount of values is given in each option and solves the appropriate amount of equations. `MARKER_INLET_SPECIES` is one of these options and has to be used alongside a usual `MARKER_INLET`. For outlets, symmetries or walls this is not necessary.
137
-
138
-
The option `SPECIES_USE_STRONG_BC` should be left to `NO` and is an experimental option where a switch to strongly enforced boundary conditions can be made.
136
+
Finally, for the SST model, it is possible to provide the intensity and turbulent-to-laminar viscosity ratios per inlet. For this option, we use the following structure `MARKER_INLET_TURBULENT= (inlet_1, TurbIntensity_1, TurbLamViscRatio_1, inlet_2, TurbIntensity_2, TurbLamViscRatio_2, ...)`.
139
137
140
-
For `CONV_NUM_METHOD_SPECIES= SCALAR_UPWIND`a second order MUSCL reconstruction and multiple limiters are available.
138
+
As final remarks, the option `SPECIES_USE_STRONG_BC` is advised to be set to `NO` when the convective scheme for species and turbulent are `CONV_NUM_METHOD_SPECIES= BOUNDED_SCALAR` and `CONV_NUM_METHOD_TURB= BOUNDED_SCALAR`, respectively. When `SCALAR_UPWIND`is used in both cases, the `SPECIES_USE_STRONG_BC` is advised to be switched to `YES` to enforced boundary conditions and improve convergence for this convective scheme. The convective scheme `BOUNDED_SCALAR` will be further explained in the section [Convective-Schemes](/docs_v7/Convective-Schemes/).
141
139
142
-
The `TIME_DISCRE_SPECIES` can be either an implicit or explicit euler and a CFL reduction coefficient `CFL_REDUCTION_SPECIES` compared to the regular `CFL_NUMBER` is available.
140
+
Likewise, `SPECIES_CLIPPING= NO` is only adviced when the option 'SCALAR_UPWIND' is used, the option 'BOUNDED_SCALAR' performs well without using the clipping option.
143
141
144
-
The inital species mass fractions are given by the list `SPECIES_INIT= 1.0, ...`.
142
+
The other species transport options can be found in the species transport ([Inc_Species_Transport](/tutorials/Inc_Species_Transport/)).
145
143
146
-
`SPECIES_CLIPPING= YES` with the respective lists for min and max enforces a strict lower and upper limit for the mass fraction solution used by the solver.
144
+
For completeness, the options aforementioned are shown below:
% Time discretization for species equations (EULER_IMPLICIT, EULER_EXPLICIT)
178
184
TIME_DISCRE_SPECIES= EULER_IMPLICIT
179
185
%
180
-
% Reduction factor of the CFL coefficient in the species problem
181
-
CFL_REDUCTION_SPECIES= 0.5
182
-
%
183
186
% Initial values for scalar transport
184
187
SPECIES_INIT= 1.0
185
188
%
186
189
% Activate clipping for scalar transport equations
187
190
SPECIES_CLIPPING= NO
188
-
%
189
-
% Maximum values for scalar clipping
190
-
SPECIES_CLIPPING_MAX= 1.0, ...
191
-
%
192
-
% Minimum values for scalar clipping
193
-
SPECIES_CLIPPING_MIN= 0.0, ...
194
191
```
195
192
196
193
For the screen, history and volume output multiple straight forward options were included. Whenever a number is used at the end of the keyword, one for each species (starting at zero) can be added.
@@ -204,38 +201,33 @@ For `HISTORY_OUTPUT` the residuals are included in `RMS_RES` and the linear solv
204
201
205
202
For `VOLUME_OUTPUT` no extra output field has the be set. The mass fractions are included in `SOLUTION` and the volume residuals in `RESIDUAL`.
206
203
207
-
All available output can be printed to screen using the `dry-run` feature of SU2:
208
-
```
209
-
$ SU2_CFD -d <config-filename>.cfg
210
-
```
211
-
212
204
## Running SU2
213
205
214
206
The simulation can be run in serial using the following command:
215
207
```
216
-
$ SU2_CFD species3_primitiveVenturi.cfg
208
+
$ SU2_CFD kenics_mixer_tutorial.cfg
217
209
```
218
-
or in parallel with your preferred number of cores (for this small case not more than 4 cores should be used):
210
+
or in parallel with your preferred number of cores (for this case, it is adviced to use 4 cores in order to speed up the simulation):
The case converges nicely as expected on such a simple case and mesh.
217
+
This case shows a smoothly convergence and it is not observed the flat residuals observed in the [Inc_Species_Transport](/tutorials/Inc_Species_Transport/).
Figure (2): Residual plot (Incompressible mean flow, SST turbulence model, species transport).
229
221
230
-
Note that there is still some unphysical mass fraction fluctuation for Species_0 at the junction corner. This becomes much less apparent by using `MUSCL_SPECIES = YES` but does not fully disappear.
222
+
We observe that using the option `CONV_NUM_METHOD_SPECIES= BOUNDED_SCALAR` addressed the unphysical mass fraction fluctuations observed in the tutorial ([Inc_Species_Transport](/tutorials/Inc_Species_Transport/)). Similarly, it can be noted how the mixing process is enhanced through the mixer units.
231
223
232
-

233
-
Figure (3): Volume mass fractions for both species. Species_1 is mirrored for better comparison.
224
+

225
+
Figure (3): Mass fractions of Methane at the different locations along the kenics static mixer.
234
226
235
-
Velocity magnitude field along which the species are transported. For a much less homogenous mixture at the outlet one could decrease the `DIFFUSIVITY_CONSTANT` which makes for a more interesting optimization problem.
227
+
Velocity magnitude field along the kenics static mixers.
0 commit comments