Skip to content

Commit

Permalink
Merge pull request #2266 from su2code/fix_cornernode_comp
Browse files Browse the repository at this point in the history
Fix shared wall-inlet corner node for compressible
  • Loading branch information
pcarruscag authored Dec 9, 2024
2 parents cde8892 + 2de834c commit 72632af
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 212 deletions.
4 changes: 2 additions & 2 deletions Common/src/CConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5610,16 +5610,16 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
/*--- Define some variables for flamelet model. ---*/
if (Kind_Species_Model == SPECIES_MODEL::FLAMELET) {
/*--- The controlling variables are progress variable, total enthalpy, and optionally mixture fraction ---*/
//n_control_vars = nSpecies - n_user_scalars;
if (n_control_vars != (nSpecies - n_user_scalars))
SU2_MPI::Error("Number of initial species incompatbile with number of controlling variables and user scalars.", CURRENT_FUNCTION);
SU2_MPI::Error("Number of initial species incompatible with number of controlling variables and user scalars.", CURRENT_FUNCTION);
/*--- We can have additional user defined transported scalars ---*/
n_scalars = n_control_vars + n_user_scalars;
}

if (Kind_Regime == ENUM_REGIME::COMPRESSIBLE && GetBounded_Scalar()) {
SU2_MPI::Error("BOUNDED_SCALAR discretization can only be used for incompressible problems.", CURRENT_FUNCTION);
}

}

void CConfig::SetMarkers(SU2_COMPONENT val_software) {
Expand Down
4 changes: 2 additions & 2 deletions Common/src/geometry/CMultiGridGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ CMultiGridGeometry::CMultiGridGeometry(CGeometry* fine_grid, CConfig* config, un
/*--- Create a queue system to do the agglomeration
1st) More than two markers ---> Vertices (never agglomerate)
2nd) Two markers ---> Edges (agglomerate if same BC, never agglomerate if different BC)
3rd) One marker ---> Surface (always agglomarate)
4th) No marker ---> Internal Volume (always agglomarate) ---*/
3rd) One marker ---> Surface (always agglomerate)
4th) No marker ---> Internal Volume (always agglomerate) ---*/

/*--- Set a marker to indicate indirect agglomeration, for quads and hexs,
i.e. consider up to neighbors of neighbors of neighbors.
Expand Down
Loading

0 comments on commit 72632af

Please sign in to comment.