Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent mass fluxes between bulk flow and scalar solvers and boundedness correction #1697

Merged
merged 74 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
76c1f27
working commit for incompressible
bigfooted Jul 4, 2022
182a4b0
adding/removing comments on what still needs to be implemented
bigfooted Jul 4, 2022
38e396b
small cleanup
bigfooted Jul 4, 2022
2ad9eb6
small cleanup
bigfooted Jul 4, 2022
809a6d9
remove unused variable
bigfooted Jul 4, 2022
e0c53c9
Merge branch 'develop' into feature_conservative_scalars
bigfooted Jul 4, 2022
52606ae
Added correction factor to scalar convective residual to negate the e…
EvertBunschoten Jul 4, 2022
02de5e2
Added correction factor to scalar convective residual to negate the e…
EvertBunschoten Jul 4, 2022
6ab2076
Fixed unused variable warnings
EvertBunschoten Jul 4, 2022
ffb1a24
Update SU2_CFD/include/solvers/CSolver.hpp
bigfooted Jul 7, 2022
f4ddbcf
clean up
bigfooted Jul 9, 2022
0716445
Merge branch 'develop' into feature_conservative_scalars
bigfooted Jul 18, 2022
c929e65
Added SCALAR_ADVECTION option for the scalar convective numerical met…
EvertBunschoten Jul 28, 2022
b92b6ab
Added SCALAR_ADVECTION option for the scalar convective numerical met…
EvertBunschoten Jul 28, 2022
0ba6c2f
Merge branch 'develop' into feature_conservative_scalars
bigfooted Jul 28, 2022
5e4f69e
Merge branch 'develop' into feature_conservative_scalars
bigfooted Aug 23, 2022
caa9a6f
Changed the upwind and centered convective enums to enum class
EvertBunschoten Aug 24, 2022
dcb1ec5
Merge branch 'develop' into feature_conservative_scalars
bigfooted Aug 24, 2022
70a43d1
Added 'default' case to Rieman_Solver_FEM switch in CConfig.cpp
EvertBunschoten Aug 25, 2022
b4acebc
Merged 70a43d1 into 1025b8b which resulted in conflicts when auto-mer…
EvertBunschoten Sep 9, 2022
3dea05b
Added default in CNumericsSIMD.cpp switch for convective numerics con…
EvertBunschoten Sep 9, 2022
f39f1ab
Fixed bug resulting from merge, enabled storage of edge mass fluxes f…
EvertBunschoten Sep 9, 2022
5cf5435
Update SU2_CFD/include/solvers/CScalarSolver.inl
bigfooted Sep 10, 2022
109aa8a
Update SU2_CFD/include/solvers/CSolver.hpp
bigfooted Sep 10, 2022
b0bbc54
Merge branch 'develop' into feature_conservative_scalars
bigfooted Sep 11, 2022
b5ba7e1
Merge branch 'develop' into feature_conservative_scalars
bigfooted Sep 16, 2022
22dbc19
Update Common/include/option_structure.hpp
bigfooted Sep 20, 2022
c42ede6
Update Common/include/option_structure.hpp
bigfooted Sep 20, 2022
839c099
Update Common/include/CConfig.hpp
bigfooted Sep 20, 2022
4d5f93f
Merge branch 'develop' into feature_conservative_scalars
bigfooted Sep 20, 2022
5a44165
Pulled in develop
EvertBunschoten Oct 4, 2022
2e9f069
Changed SCALAR_ADVECTION upwind option to BOUNDED_SCALAR, added weak …
EvertBunschoten Oct 5, 2022
0b427c5
Added bounded scalar conditional statements to Upwind_Residual to ens…
EvertBunschoten Oct 5, 2022
97b8138
Added more conditional statements regarding the scalar upwind scheme …
EvertBunschoten Oct 5, 2022
a09c741
Merge branch 'develop' into feature_conservative_scalars
bigfooted Oct 5, 2022
56e3ca6
Update SU2_CFD/include/numerics/CNumerics.hpp
bigfooted Oct 5, 2022
540bd0f
Update SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp
bigfooted Oct 5, 2022
50deb72
Update SU2_CFD/include/solvers/CScalarSolver.inl
bigfooted Oct 5, 2022
f6c67a0
Update Common/include/option_structure.hpp
bigfooted Oct 5, 2022
44e1e18
Update SU2_CFD/include/numerics/scalar/scalar_convection.hpp
bigfooted Oct 5, 2022
2ad40dd
Update Common/include/option_structure.hpp
bigfooted Oct 5, 2022
aaf20c6
Merge branch 'develop' into feature_conservative_scalars
bigfooted Oct 13, 2022
e9382b5
Update SU2_CFD/include/numerics/scalar/scalar_convection.hpp
bigfooted Oct 13, 2022
bdfbdc8
Finalized weak inlet and outlet boundary conditions for scalar solver…
EvertBunschoten Oct 13, 2022
c4441d6
Added bounded scalar test case configuration file
EvertBunschoten Oct 13, 2022
9452883
Initialized the edge flux variable in the inlet and outlet boundary c…
EvertBunschoten Oct 13, 2022
e02fda4
Fixed units issue with the density in the flux calculation of the spe…
EvertBunschoten Oct 14, 2022
7d3b4b0
Added BOUNDED_SCALAR test cases under parallel regression for both co…
EvertBunschoten Oct 14, 2022
c2f3a35
Changed regression test values for bounded scalar test cases
EvertBunschoten Oct 14, 2022
a955bb3
Changed test values for primitiveVenturi test case according to the c…
EvertBunschoten Oct 18, 2022
ab947d0
Merge branch 'develop' of /~https://github.com/su2code/SU2 into feature…
EvertBunschoten Oct 18, 2022
dac5742
remove spacmove variable declaration to where they are used
bigfooted Oct 18, 2022
050d773
move density modification to definition of a0 and a1, fix preaccumula…
bigfooted Oct 18, 2022
28ec306
Merge branch 'develop' into feature_conservative_scalars
bigfooted Oct 19, 2022
1b35499
Disabed axisymmetric source term for bounded scalar simulations
EvertBunschoten Nov 9, 2022
6d06d35
Implemented fix for axisymmetric bounded scalar problems
EvertBunschoten Nov 9, 2022
c3a8e19
Fixed build error
EvertBunschoten Nov 9, 2022
9eb67d0
Reduced CFL number for species bounded scalar test case to prevent di…
EvertBunschoten Nov 9, 2022
924ba51
Updated regression test values for venturi test case with bounded scalar
EvertBunschoten Nov 10, 2022
986bdff
Merge branch 'develop' into feature_conservative_scalars
bigfooted Nov 15, 2022
c0eb4aa
Updated test values for bounded_scalar test cases
EvertBunschoten Nov 18, 2022
c61df43
merge with develop
bigfooted Nov 18, 2022
7d1c511
Apply suggestions from code review
pcarruscag Nov 21, 2022
a91de01
Merge branch 'develop' into feature_conservative_scalars
bigfooted Nov 22, 2022
d46b96c
Streamlined declarations of bounded scalar problem for turbulence and…
EvertBunschoten Nov 22, 2022
f515f83
Streamlined declarations of bounded scalar problem for turbulence and…
EvertBunschoten Nov 22, 2022
930d34a
Reduced code duplication, changed inlet and outlet turbulent and spec…
EvertBunschoten Nov 23, 2022
a64c542
pulled develop
EvertBunschoten Nov 25, 2022
09cadc6
fix bounded scalars for OpenMP, improve efficiency, fix for centered …
pcarruscag Nov 25, 2022
16f7c4c
avoid bounded scalar code duplication in BC's
pcarruscag Nov 26, 2022
5cee01a
add additional comments, update target mass flow rate output message
bigfooted Nov 28, 2022
294cad7
Merge branch 'develop' into feature_conservative_scalars
bigfooted Nov 28, 2022
32da59e
changed regression test results
bigfooted Nov 28, 2022
d9a3277
Merge branch 'feature_conservative_scalars' of /~https://github.com/su2…
bigfooted Nov 28, 2022
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 Common/include/option_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,8 @@ enum ENUM_UPWIND {
LAX_FRIEDRICH = 15, /*!< \brief Lax-Friedrich numerical method. */
AUSMPLUSUP = 16, /*!< \brief AUSM+ -up numerical method (All Speed) */
AUSMPLUSUP2 = 17, /*!< \brief AUSM+ -up2 numerical method (All Speed) */
AUSMPWPLUS = 18 /*!< \brief AUSMplus numerical method. (MAYBE for TNE2 ONLY)*/
AUSMPWPLUS = 18, /*!< \brief AUSMplus numerical method. (MAYBE for TNE2 ONLY)*/
SCALAR_ADVECTION = 19
EvertBunschoten marked this conversation as resolved.
Show resolved Hide resolved
};
static const MapType<std::string, ENUM_UPWIND> Upwind_Map = {
MakePair("NONE", NO_UPWIND)
Expand All @@ -842,6 +843,7 @@ static const MapType<std::string, ENUM_UPWIND> Upwind_Map = {
MakePair("MSW", MSW)
MakePair("CUSP", CUSP)
MakePair("SCALAR_UPWIND", SCALAR_UPWIND)
MakePair("SCALAR_ADVECTION", SCALAR_ADVECTION)
MakePair("CONVECTIVE_TEMPLATE", CONVECTIVE_TEMPLATE)
MakePair("L2ROE", L2ROE)
MakePair("LMROE", LMROE)
Expand Down
8 changes: 8 additions & 0 deletions SU2_CFD/include/numerics/CNumerics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class CNumerics {
su2double Gas_Constant; /*!< \brief Gas constant. */
su2double Prandtl_Lam; /*!< \brief Laminar Prandtl's number. */
su2double Prandtl_Turb; /*!< \brief Turbulent Prandtl's number. */
su2double MassFlux; /*!< \brief Mass flux across edge. */
su2double
*Proj_Flux_Tensor; /*!< \brief Flux tensor projected in a direction. */
su2double **tau; /*!< \brief Viscous stress tensor. */
Expand Down Expand Up @@ -1598,6 +1599,13 @@ class CNumerics {
* \param[in] SolverSPvals - Struct holding the values.
*/
virtual void SetStreamwisePeriodicValues(const StreamwisePeriodicValues SolverSPvals) { }

/*!
* \brief SetMassFlux
* \param[in] val_MassFlux: Mass flux across the edge
*/
inline void SetMassFlux(const su2double val_MassFlux) {MassFlux = val_MassFlux;}
bigfooted marked this conversation as resolved.
Show resolved Hide resolved

};

/*!
Expand Down
10 changes: 7 additions & 3 deletions SU2_CFD/include/numerics/scalar/scalar_convection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class CUpwScalar : public CNumerics {

ExtraADPreaccIn();

/*
su2double q_ij = 0.0;
if (dynamic_grid) {
for (unsigned short iDim = 0; iDim < nDim; iDim++) {
Expand All @@ -130,9 +131,12 @@ class CUpwScalar : public CNumerics {
q_ij += 0.5 * (V_i[iDim + idx.Velocity()] + V_j[iDim + idx.Velocity()]) * Normal[iDim];
}
}

a0 = 0.5 * (q_ij + fabs(q_ij));
a1 = 0.5 * (q_ij - fabs(q_ij));
*/

//a0 = 0.5 * (q_ij + fabs(q_ij));
//a1 = 0.5 * (q_ij - fabs(q_ij));
a0 = max(0.0, MassFlux);
a1 = min(0.0, MassFlux);

FinishResidualCalc(config);

Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/include/numerics/species/species_convection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CUpwSca_Species final : public CUpwScalar<FlowIndices> {
*/
void FinishResidualCalc(const CConfig* config) override {
for (auto iVar = 0u; iVar < nVar; iVar++) {
Flux[iVar] = a0 * V_i[idx.Density()] * ScalarVar_i[iVar] + a1 * V_j[idx.Density()] * ScalarVar_j[iVar];
Flux[iVar] = a0 * ScalarVar_i[iVar] + a1 * ScalarVar_j[iVar];

/*--- Jacobians are taken wrt rho*Y not Y alone in the species solver. ---*/
/*--- Off-diagonal entries are zero. ---*/
Expand Down
5 changes: 4 additions & 1 deletion SU2_CFD/include/solvers/CScalarSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ class CScalarSolver : public CSolver {

numerics->SetPrimitive(flowNodes->GetPrimitive(iPoint), flowNodes->GetPrimitive(jPoint));

su2double EdgeMassFlux = solver_container[FLOW_SOL]->GetEdgeMassFlux(iEdge);
numerics->SetMassFlux(EdgeMassFlux);

/*--- Turbulent variables w/o reconstruction, and its gradients ---*/

numerics->SetScalarVar(nodes->GetSolution(iPoint), nodes->GetSolution(jPoint));
Expand All @@ -122,7 +125,7 @@ class CScalarSolver : public CSolver {
SolverSpecificNumerics(iPoint, jPoint);

/*--- Compute residual, and Jacobians ---*/

auto residual = numerics->ComputeResidual(config);

if (ReducerStrategy) {
Expand Down
47 changes: 44 additions & 3 deletions SU2_CFD/include/solvers/CScalarSolver.inl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,20 @@ template <class VariableType>
void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver** solver_container,
CNumerics** numerics_container, CConfig* config,
unsigned short iMesh) {

pcarruscag marked this conversation as resolved.
Show resolved Hide resolved
su2double EdgeMassFlux, Project_Grad_i, Project_Grad_j, FluxCorrection_i, FluxCorrection_j;
EvertBunschoten marked this conversation as resolved.
Show resolved Hide resolved

su2double **Jacobian_i_correction, **Jacobian_j_correction;
Jacobian_i_correction = new su2double*[nVar];
Jacobian_j_correction = new su2double*[nVar];
for (unsigned short iVar=0; iVar<nVar; iVar++){
Jacobian_i_correction[iVar] = new su2double[nVar];
Jacobian_j_correction[iVar] = new su2double[nVar];
for(unsigned short jVar=0; jVar<nVar; jVar++){
Jacobian_i_correction[iVar][jVar] = 0.0;
Jacobian_j_correction[iVar][jVar] = 0.0;
}
}
/*--- Define booleans that are solver specific through CConfig's GlobalParams which have to be set in CFluidIteration
* before calling these solver functions. ---*/
const bool implicit = (config->GetKind_TimeIntScheme() == EULER_IMPLICIT);
Expand Down Expand Up @@ -149,6 +163,10 @@ void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver**
else
AD::StartNoSharedReading();

bool advection{false};

if(config->GetKind_Upwind_Species() == SCALAR_ADVECTION) advection = true;

/*--- Loop over edge colors. ---*/
for (auto color : EdgeColoring) {
/*--- Chunk size is at least OMP_MIN_SIZE and a multiple of the color group size. ---*/
Expand All @@ -164,7 +182,7 @@ void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver**
auto jPoint = geometry->edges->GetNode(iEdge, 1);

numerics->SetNormal(geometry->edges->GetNormal(iEdge));

bigfooted marked this conversation as resolved.
Show resolved Hide resolved
/*--- Primitive variables w/o reconstruction ---*/
pcarruscag marked this conversation as resolved.
Show resolved Hide resolved

const auto V_i = flowNodes->GetPrimitive(iPoint);
Expand Down Expand Up @@ -204,7 +222,8 @@ void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver**
}

for (iVar = 0; iVar < solver_container[FLOW_SOL]->GetnPrimVarGrad(); iVar++) {
su2double Project_Grad_i = 0.0, Project_Grad_j = 0.0;
Project_Grad_i = 0.0;
Project_Grad_j = 0.0;
for (iDim = 0; iDim < nDim; iDim++) {
Project_Grad_i += Vector_ij[iDim] * Gradient_i[iVar][iDim];
Project_Grad_j -= Vector_ij[iDim] * Gradient_j[iVar][iDim];
Expand Down Expand Up @@ -249,8 +268,11 @@ void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver**
}
}

/*--- Update convective residual value ---*/
/*--- Convective flux ---*/
EdgeMassFlux = solver_container[FLOW_SOL]->GetEdgeMassFlux(iEdge);
numerics->SetMassFlux(EdgeMassFlux);

/*--- Update convective residual value ---*/
auto residual = numerics->ComputeResidual(config);

if (ReducerStrategy) {
Expand All @@ -262,6 +284,18 @@ void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver**
if (implicit) Jacobian.UpdateBlocks(iEdge, iPoint, jPoint, residual.jacobian_i, residual.jacobian_j);
}

/*--- Applying convective flux correction to negate the effects of flow divergence ---*/
if(advection){
for(iVar=0; iVar<nVar; iVar++){
FluxCorrection_i = GetNodes()->GetSolution(iPoint, iVar) * EdgeMassFlux;
FluxCorrection_j = GetNodes()->GetSolution(jPoint, iVar) * EdgeMassFlux;

LinSysRes(iPoint, iVar) -= FluxCorrection_i;
LinSysRes(jPoint, iVar) += FluxCorrection_j;
Jacobian_i_correction[iVar][iVar] = max(0.0, EdgeMassFlux);;
Jacobian_j_correction[iVar][iVar] = min(0.0, EdgeMassFlux);
}
}if (implicit) Jacobian.UpdateBlocks(iEdge, iPoint, jPoint, Jacobian_i_correction, Jacobian_j_correction);
/*--- Viscous contribution. ---*/

Viscous_Residual(iEdge, geometry, solver_container,
Expand All @@ -278,6 +312,13 @@ void CScalarSolver<VariableType>::Upwind_Residual(CGeometry* geometry, CSolver**
SumEdgeFluxes(geometry);
if (implicit) Jacobian.SetDiagonalAsColumnSum();
}

for(unsigned short iVar=0; iVar<nVar; iVar++){
delete [] Jacobian_i_correction[iVar];
delete [] Jacobian_j_correction[iVar];
}
delete [] Jacobian_i_correction;
delete [] Jacobian_j_correction;
}

template <class VariableType>
Expand Down
11 changes: 10 additions & 1 deletion SU2_CFD/include/solvers/CSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class CSolver {
**Jacobian_ji, /*!< \brief Auxiliary matrices for storing point to point Jacobians. */
**Jacobian_jj; /*!< \brief Auxiliary matrices for storing point to point Jacobians. */

su2double *EdgeMassFluxes; /*!< \brief Mass fluxes across each edge, for discretization of passive scalars. */
bigfooted marked this conversation as resolved.
Show resolved Hide resolved

/*--- End variables that need to go. ---*/

su2activevector iPoint_UndLapl; /*!< \brief Auxiliary variable for the undivided Laplacians. */
Expand Down Expand Up @@ -4311,9 +4313,16 @@ class CSolver {
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] config - Definition of the particular problem.
* \param[in] converged - Whether or not solution has converged.
*/
*/
void SavelibROM(CGeometry *geometry, CConfig *config, bool converged);

/*!
* \brief Get the mass flux across an edge (computed and stored during the discretization of convective fluxes).
* \param[in] iEdge - Index of the edge.
* \return The mass flux across the edge.
*/
inline su2double GetEdgeMassFlux(const unsigned long iEdge) const {return EdgeMassFluxes[iEdge];}

protected:
/*!
* \brief Allocate the memory for the verification solution, if necessary.
Expand Down
7 changes: 7 additions & 0 deletions SU2_CFD/src/solvers/CIncEulerSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,13 @@ void CIncEulerSolver::Upwind_Residual(CGeometry *geometry, CSolver **solver_cont

Viscous_Residual(iEdge, geometry, solver_container,
numerics_container[VISC_TERM + omp_get_thread_num()*MAX_TERMS], config);

//if (rans && (iMesh == MESH_0)) EdgeMassFluxes[iEdge] = Res_Conv[0];
/* only when we solve additional scalars? So turbulence and species? */
if (iMesh == MESH_0) {
EdgeMassFluxes[iEdge] = residual[0];
}

}
END_SU2_OMP_FOR
} // end color loop
Expand Down
10 changes: 10 additions & 0 deletions SU2_CFD/src/solvers/CIncNSSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ CIncNSSolver::CIncNSSolver(CGeometry *geometry, CConfig *config, unsigned short
Viscosity_Inf = config->GetViscosity_FreeStreamND();
Tke_Inf = config->GetTke_FreeStreamND();

//if (rans && (iMesh == MESH_0)) {
// only when we solve additional scalars?
if (iMesh == MESH_0) {
EdgeMassFluxes = new su2double [geometry->GetnEdge()];

for(unsigned long iEdge = 0; iEdge < geometry->GetnEdge(); ++iEdge)
EdgeMassFluxes[iEdge] = 0.0;
}


/*--- Initialize the secondary values for direct derivative approximations ---*/

switch (config->GetDirectDiff()) {
Expand Down
10 changes: 8 additions & 2 deletions SU2_CFD/src/solvers/CSpeciesSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,11 @@ void CSpeciesSolver::BC_Inlet(CGeometry* geometry, CSolver** solver_container, C
if (dynamic_grid)
conv_numerics->SetGridVel(geometry->nodes->GetGridVel(iPoint), geometry->nodes->GetGridVel(iPoint));

/*--- Compute the residual using an upwind scheme ---*/
/* nijso: TODO we have to compute mass flux here as well */
//su2double EdgeMassFlux = solver_container[FLOW_SOL]->GetEdgeMassFlux(iEdge);
//conv_numerics->SetMassFlux(EdgeMassFlux);

/*--- Compute the residual using an upwind scheme ---*/
auto residual = conv_numerics->ComputeResidual(config);
LinSysRes.AddBlock(iPoint, residual);

Expand Down Expand Up @@ -530,8 +533,11 @@ void CSpeciesSolver::BC_Outlet(CGeometry* geometry, CSolver** solver_container,
if (dynamic_grid)
conv_numerics->SetGridVel(geometry->nodes->GetGridVel(iPoint), geometry->nodes->GetGridVel(iPoint));

/*--- Compute the residual using an upwind scheme ---*/
/* nijso: TODO we have to compute mass flux here as well */
//su2double EdgeMassFlux = solver_container[FLOW_SOL]->GetEdgeMassFlux(iEdge);
//conv_numerics->SetMassFlux(EdgeMassFlux);

/*--- Compute the residual using an upwind scheme ---*/
auto residual = conv_numerics->ComputeResidual(config);
LinSysRes.AddBlock(iPoint, residual);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ INLET_FILENAME= inlet_venturi.dat
INC_INLET_TYPE= VELOCITY_INLET VELOCITY_INLET
MARKER_INLET= ( gas_inlet, 300, 1.0, 1.0, 0.0, 0.0,\
air_axial_inlet, 300, 1.0, 0.0, -1.0, 0.0 )
SPECIES_USE_STRONG_BC= NO
SPECIES_USE_STRONG_BC= YES
MARKER_INLET_SPECIES= (gas_inlet, 0.5, 0.5,\
air_axial_inlet, 0.6, 0.0 )
%
Expand Down Expand Up @@ -128,7 +128,7 @@ CONV_FILENAME= history
MARKER_ANALYZE= outlet
MARKER_ANALYZE_AVERAGE= MASSFLUX
%
OUTPUT_FILES= RESTART_ASCII, PARAVIEW_MULTIBLOCK
OUTPUT_FILES= RESTART_ASCII, PARAVIEW
VOLUME_OUTPUT= RESIDUAL, PRIMITIVE
OUTPUT_WRT_FREQ= 1000
%
Expand Down
4 changes: 2 additions & 2 deletions config_template.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ MARKER_INLET_SPECIES= (inlet, 0.5, ..., inlet2, 0.6, ...)
% Use strong inlet and outlet BC in the species solver
SPECIES_USE_STRONG_BC= NO
%
% Convective numerical method for species transport (SCALAR_UPWIND)
% Convective numerical method for species transport (SCALAR_UPWIND, SCALAR_ADVECTION)
CONV_NUM_METHOD_SPECIES= SCALAR_UPWIND
%
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the species equations.
Expand Down Expand Up @@ -1272,7 +1272,7 @@ KIND_MATRIX_COLORING= GREEDY_COLORING

% -------------------- TURBULENT NUMERICAL METHOD DEFINITION ------------------%
%
% Convective numerical method (SCALAR_UPWIND)
% Convective numerical method (SCALAR_UPWIND, SCALAR_ADVECTION)
CONV_NUM_METHOD_TURB= SCALAR_UPWIND
%
% Time discretization (EULER_IMPLICIT, EULER_EXPLICIT)
Expand Down