Skip to content

Commit 2a42d64

Browse files
author
Francisco Palacios
committed
Merge branch 'master' of https://github.com/su2code/SU2_EDU
2 parents 5abe761 + e29b792 commit 2a42d64

File tree

5 files changed

+19
-29
lines changed

5 files changed

+19
-29
lines changed

SU2_EDU.xcodeproj/project.xcworkspace/xcshareddata/SU2_EDU.xccheckout

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,31 @@
66
<false/>
77
<key>IDESourceControlProjectIdentifier</key>
88
<string>6D5D11E8-6E33-4789-8BF8-C17C56384A83</string>
9-
<key>IDESourceControlProjectName</key>
10-
<string>SU2_EDU</string>
119
<key>IDESourceControlProjectOriginsDictionary</key>
1210
<dict>
13-
<key>6548554E-BB85-4761-B037-2133F1DD5C23</key>
11+
<key>8ED49EFD43ED82F1325A556C62D1386A078F1F30</key>
1412
<string>https://github.com/su2code/SU2_EDU.git</string>
15-
<key>BBE8543F-7310-4BF1-8900-530E7F1B2E85</key>
16-
<string>https://github.com/su2code/SU2.git</string>
1713
</dict>
18-
<key>IDESourceControlProjectPath</key>
19-
<string>SU2_EDU.xcodeproj/project.xcworkspace</string>
2014
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
2115
<dict>
22-
<key>6548554E-BB85-4761-B037-2133F1DD5C23</key>
23-
<string>../..</string>
24-
<key>BBE8543F-7310-4BF1-8900-530E7F1B2E85</key>
25-
<string>../../../SU2/trunk</string>
16+
<key>8ED49EFD43ED82F1325A556C62D1386A078F1F30</key>
17+
<string>SU2_edu/</string>
2618
</dict>
2719
<key>IDESourceControlProjectURL</key>
2820
<string>https://github.com/su2code/SU2_EDU.git</string>
2921
<key>IDESourceControlProjectVersion</key>
30-
<integer>110</integer>
22+
<integer>111</integer>
3123
<key>IDESourceControlProjectWCCIdentifier</key>
32-
<string>6548554E-BB85-4761-B037-2133F1DD5C23</string>
24+
<string>8ED49EFD43ED82F1325A556C62D1386A078F1F30</string>
3325
<key>IDESourceControlProjectWCConfigurations</key>
3426
<array>
3527
<dict>
3628
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
3729
<string>public.vcs.git</string>
3830
<key>IDESourceControlWCCIdentifierKey</key>
39-
<string>6548554E-BB85-4761-B037-2133F1DD5C23</string>
31+
<string>8ED49EFD43ED82F1325A556C62D1386A078F1F30</string>
4032
<key>IDESourceControlWCCName</key>
41-
<string>SU2_EDU</string>
42-
</dict>
43-
<dict>
44-
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
45-
<string>public.vcs.git</string>
46-
<key>IDESourceControlWCCIdentifierKey</key>
47-
<string>BBE8543F-7310-4BF1-8900-530E7F1B2E85</string>
48-
<key>IDESourceControlWCCName</key>
49-
<string>trunk</string>
33+
<string>SU2_edu</string>
5034
</dict>
5135
</array>
5236
</dict>

bin/ConfigFile_RANS.cfg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ PHYSICAL_PROBLEM= NAVIER_STOKES
1717
% Specify turbulence model (NONE, SA, SST)
1818
KIND_TURB_MODEL= SA
1919

20-
% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------%
20+
% -------------------- COMPRESSIBLE FREE-STREAM definition --------------------%
2121
%
2222
% Mach number (non-dimensional)
23-
MACH_NUMBER= 0.2
23+
MACH_NUMBER= 0.7
2424
%
2525
% Reynolds number (non-dimensional)
26-
REYNOLDS_NUMBER= 5.0E6
26+
REYNOLDS_NUMBER= 1.0E6
2727
%
2828
% Angle of attack (in degrees)
29-
AoA= 5.0
29+
AoA= 3.0
3030
%
3131
% Free-stream temperature (in degrees Kelvin)
3232
FREESTREAM_TEMPERATURE= 288.150
3333

3434
% ------------------------ NUMERICAL METHOD DEFINITION ------------------------%
3535
%
3636
% Courant-Friedrichs-Lewy condition (reduce this number if the code diverges)
37-
CFL_NUMBER= 10.0
37+
CFL_NUMBER= 5.0
3838
%
3939
% Convective numerical method (JST, ROE)
4040
CONV_NUM_METHOD_FLOW= ROE

src/SU2_EDU.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ int main(int argc, char *argv[]) {
134134

135135
cout << endl <<"------------------------- Solver Preprocessing --------------------------" << endl;
136136

137+
/*--- Computation of wall distances for turbulence modeling ---*/
138+
139+
if (config_container->GetKind_Solver() == RANS) {
140+
geometry_container[MESH_0]->ComputeWall_Distance(config_container);
141+
}
142+
137143
/*--- Definition of the solver class: solver_container[#MG_GRIDS][#EQ_SYSTEMS].
138144
The solver classes are specific to a particular set of governing equations,
139145
and they contain the subroutines with instructions for computing each spatial

src/config_structure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
17361736
nMG_PreSmooth = nMultiLevel+1;
17371737
MG_PreSmooth = new unsigned short[nMG_PreSmooth];
17381738
for (unsigned int i = 0; i < nMG_PreSmooth; i++)
1739-
MG_PreSmooth[i] = i+1;
1739+
MG_PreSmooth[i] = 1;
17401740
}
17411741

17421742
if ((nMG_PostSmooth != nMultiLevel+1) && (nMG_PostSmooth != 0)) {

0 commit comments

Comments
 (0)