Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion SU2_CFD/src/fluid/CFluidScalar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ su2double CFluidScalar::DavidsonViscosity(const su2double* val_scalars) {

su2double CFluidScalar::WilkeConductivity(const su2double* val_scalars) {

/*--- Pure-species conductivities: use the viscosity and cp of each species, not of the mixture. ---*/
for (int iVar = 0; iVar < n_species_mixture; iVar++) {
ThermalConductivityPointers[iVar]->SetConductivity(Temperature, Density, Mu, 0.0, Cp, 0.0, 0.0);
ThermalConductivityPointers[iVar]->SetConductivity(Temperature, Density, laminarViscosity[iVar], 0.0,
specificHeat[iVar], 0.0, 0.0);
laminarThermalConductivity[iVar] = ThermalConductivityPointers[iVar]->GetConductivity();
}

Expand Down
8 changes: 8 additions & 0 deletions TestCases/parallel_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,14 @@ def main():
species_active_transport_temp_limits.test_vals_aarch64 = [-1.785041, -2.565628, 2.460433, -3.188111, 9.000000, -5.551493, 3.000000, -5.826106, 1.456438, 0.998134, 0.001475, 0.456829]
test_list.append(species_active_transport_temp_limits)

# rectangle H2/air conduction, species conductivities with CONSTANT_PRANDTL
species_h2_air_conduction = TestCase('species_h2_air_conduction')
species_h2_air_conduction.cfg_dir = "species_transport/h2_air_conduction"
species_h2_air_conduction.cfg_file = "h2_air_conduction.cfg"
species_h2_air_conduction.test_iter = 20
species_h2_air_conduction.test_vals = [-5.866102, -0.991990]
test_list.append(species_h2_air_conduction)

# species transport, 3 species with multizone (2 fluid regions)
species3_multizone_restart = TestCase('species3_multizone_restart')
species3_multizone_restart.cfg_dir = "species_transport/multizone"
Expand Down
113 changes: 113 additions & 0 deletions TestCases/species_transport/h2_air_conduction/h2_air_conduction.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SU2 configuration file %
% Case description: Heat conduction through a quiescent H2/air layer between %
% two isothermal walls. Tests the species conductivities %
% of CONSTANT_PRANDTL with FLUID_MIXTURE. The wall heat %
% flux is k*dT/L, with k from the Wilke mixing rule. %
% Author: Prapti Patra %
% Date: 2026/12/03 %
% File Version 8.6.0 "Harrier" %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
%
SOLVER= INC_NAVIER_STOKES
KIND_TURB_MODEL= NONE
%
% ---------------- INCOMPRESSIBLE FLOW CONDITION DEFINITION -------------------%
%
INC_DENSITY_MODEL= VARIABLE
INC_DENSITY_INIT= 0.5
%
INC_VELOCITY_INIT= ( 0.0, 0.0, 0.0 )
%
INC_ENERGY_EQUATION= YES
INC_TEMPERATURE_INIT= 350.0
%
INC_NONDIM= DIMENSIONAL
%
% -------------------- FLUID PROPERTIES ------------------------------------- %
%
FLUID_MODEL= FLUID_MIXTURE
%
THERMODYNAMIC_PRESSURE= 101325.0
%
% H2, air
MOLECULAR_WEIGHT= 2.01588, 28.960
%
SPECIFIC_HEAT_CP= 14310, 1009.39
%
% Each species gets k = mu*cp/Pr from its own viscosity and cp
CONDUCTIVITY_MODEL= CONSTANT_PRANDTL
PRANDTL_LAM= 0.72, 0.72
%
TURBULENT_CONDUCTIVITY_MODEL= NONE
%
% --------------------------- VISCOSITY MODEL ---------------------------------%
%
VISCOSITY_MODEL= CONSTANT_VISCOSITY
MU_CONSTANT= 8.9E-06, 1.8551E-05
%
MIXING_VISCOSITY_MODEL= WILKE
%
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
%
MARKER_ISOTHERMAL= ( x_minus, 400.0, x_plus, 300.0 )
MARKER_SYM= ( y_minus, y_plus )
%
MARKER_MONITORING= ( x_minus )
MARKER_PLOTTING= ( x_minus, x_plus )
%
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
%
NUM_METHOD_GRAD= GREEN_GAUSS
%
CFL_NUMBER= 1000
%
ITER= 50
%
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
%
LINEAR_SOLVER= FGMRES
LINEAR_SOLVER_PREC= ILU
LINEAR_SOLVER_ERROR= 1E-10
LINEAR_SOLVER_ITER= 50
%
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
%
CONV_NUM_METHOD_FLOW= FDS
MUSCL_FLOW= NO
TIME_DISCRE_FLOW= EULER_IMPLICIT
%
% -------------------- SCALAR TRANSPORT ---------------------------------------%
%
KIND_SCALAR_MODEL= SPECIES_TRANSPORT
DIFFUSIVITY_MODEL= UNITY_LEWIS
%
CONV_NUM_METHOD_SPECIES= BOUNDED_SCALAR
MUSCL_SPECIES= NO
TIME_DISCRE_SPECIES= EULER_IMPLICIT
%
SPECIES_INIT= 0.1
%
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
%
CONV_FIELD= RMS_ENTHALPY
CONV_RESIDUAL_MINVAL= -12
CONV_STARTITER= 10
%
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
%
MESH_FORMAT= RECTANGLE
MESH_BOX_SIZE= ( 41, 5, 0 )
MESH_BOX_LENGTH= ( 0.01, 0.001, 0.0 )
%
SCREEN_OUTPUT= INNER_ITER RMS_PRESSURE RMS_ENTHALPY TOTAL_HEATFLUX
%
HISTORY_OUTPUT= ITER RMS_RES HEAT
%
OUTPUT_FILES= RESTART_ASCII, PARAVIEW_MULTIBLOCK
VOLUME_OUTPUT= SOLUTION, PRIMITIVE
OUTPUT_WRT_FREQ= 1000