Skip to content

Commit 7da157f

Browse files
committed
PRJ: Cleaned up validation cases
1 parent 2e89451 commit 7da157f

File tree

9 files changed

+31
-63
lines changed

9 files changed

+31
-63
lines changed

validation/blastEulerFoam/shockTube_dilute/constant/phaseProperties

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ particles
4141
gas
4242
{
4343
phaseType fluid;
44-
diameterModel constant;
45-
constantDiameterCoeffs
46-
{
47-
d 0;
48-
}
44+
diameterModel none;
4945

5046
residualRho 1e-6;
5147
residualAlpha 1e-10;

validation/blastEulerFoam/shockTube_dilute/constant/physicalProperties.gas

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,13 @@ FoamFile
1515
}
1616
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
1717

18-
phaseType fluid;
19-
diameterModel constant;
20-
constantDiameterCoeffs
21-
{
22-
d 0;
23-
}
24-
2518
type basic;
19+
calculateDensity yes;
2620
thermoType
2721
{
2822
transport const;
2923
thermo eConst;
30-
equationOfState idealGas;
24+
equationOfState perfectGas;
3125
}
3226
equationOfState
3327
{
@@ -44,7 +38,6 @@ transport
4438
}
4539
thermodynamics
4640
{
47-
type eConst;
4841
Cv 718;
4942
Hf 0;
5043
}

validation/blastEulerFoam/shockTube_dilute/constant/physicalProperties.particles

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ FoamFile
1515
}
1616
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
1717

18-
phaseType granular;
19-
diameterModel constant;
20-
constantDiameterCoeffs
21-
{
22-
d 10e-6;
23-
}
24-
alphaMax 0.63;
25-
alphaMinFriction 0.5;
26-
2718
type basic;
2819
thermoType
2920
{
@@ -45,7 +36,6 @@ transport
4536
}
4637
thermodynamics
4738
{
48-
type eConst;
4939
Cv 718; // Heat capacity
5040
Hf 0.0;
5141
}

validation/blastEulerFoam/shockTube_dilute/system/fvSchemes

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ fluxSchemes
2424
particles
2525
{
2626
fluxScheme AUSM+Up;
27-
alphaMinFriction 0.5;
28-
alphaMax 0.63;
2927
}
3028
}
3129

@@ -54,7 +52,7 @@ laplacianSchemes
5452

5553
interpolationSchemes
5654
{
57-
default linear;
55+
default linear;
5856
reconstruct(alpha) quadraticMUSCL vanAlbada;
5957
reconstruct(rho) quadraticMUSCL vanAlbada;
6058
reconstruct(U) quadraticMUSCL vanAlbada;

validation/blastEulerFoam/shockTube_dilute/system/setFieldsDict

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ defaultFieldValues
1919
(
2020
volScalarFieldValue p 1012980
2121
volScalarFieldValue alpha.particles 0
22-
volScalarFieldValue rho.gas 13.0632931
2322
);
2423

2524
regions
@@ -32,7 +31,6 @@ regions
3231
(
3332
volScalarFieldValue p 101298
3433
volScalarFieldValue alpha.particles 5.172e-4
35-
volScalarFieldValue rho.gas 1.30632931
3634
);
3735
}
3836
);
Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
11
#!/bin/bash -i
22
cd ${0%/*} || exit 1 # run from this directory
33

4-
# source ~/.bashrc
5-
#
6-
# # Source tutorial run functions
7-
# . $WM_PROJECT_DIR/bin/tools/RunFunctions
8-
#
9-
# # -- Create paraview file
10-
# paraFoam -builtin -touch
11-
#
12-
# # -- Create mesh
13-
# runApplication blockMesh
14-
#
15-
# # -- Decompose the case
16-
# runApplication decomposePar
17-
#
18-
# # -- Add internal patch
19-
# runParallel addEmptyPatch internalPatch internal -overwrite
20-
#
21-
# # -- Set initial conditions
22-
# runParallel setRefinedFields
23-
#
24-
# # -- run the calc
25-
# runParallel $(getApplication)
26-
if ! command -v pvpython >/dev/null 2>&1
27-
then
28-
echo "pvpython could not be found, no creating images"
29-
else
30-
( cd validation && pvpython postProcess.py )
31-
fi
4+
# Source tutorial run functions
5+
. $WM_PROJECT_DIR/bin/tools/RunFunctions
6+
7+
# -- Create paraview file
8+
paraFoam -builtin -touch
9+
10+
# -- Create mesh
11+
runApplication blockMesh
12+
13+
# -- Decompose the case
14+
runApplication decomposePar
15+
16+
# -- Add internal patch
17+
runParallel addEmptyPatch internalPatch internal -overwrite
18+
19+
# -- Set initial conditions
20+
runParallel setRefinedFields
21+
22+
# -- run the calc
23+
runParallel $(getApplication)
24+
3225

3326
# ----------------------------------------------------------------- end-of-file

validation/blastFoam/airWaterShockBubble/Allrun

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ runParallel initializeLevelSet -updateAll
2424
runParallel $(getApplication)
2525

2626
# -- Sample
27-
runParallel -o postProcess -func sampleDict -time 0.0001
28-
runParallel -o postProcess -func sampleDict -time 0.0002
29-
runParallel -o postProcess -func sampleDict -time 0.0003
30-
runParallel -o postProcess -func sampleDict -time 0.0004
27+
runParallel -o foamPostProcess -func sampleDict -time 0.0001
28+
runParallel -o foamPostProcess -func sampleDict -time 0.0002
29+
runParallel -o foamPostProcess -func sampleDict -time 0.0003
30+
runParallel -o foamPostProcess -func sampleDict -time 0.0004
3131

3232
# -- Create graphs
3333
( cd validation && ./createGraphs )

validation/blastFoam/doubleMachReflection/system/fvSchemes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ interpolationSchemes
4242
{
4343
default linear;
4444
reconstruct(rho) quadraticMUSCL Minmod;
45-
reconstruct(U) quadraticMUSCL MinmodV;
45+
reconstruct(U) quadraticMUSCL Minmod;
4646
reconstruct(e) quadraticMUSCL Minmod;
4747
reconstruct(p) quadraticMUSCL Minmod;
4848
reconstruct(speedOfSound) quadraticMUSCL Minmod;

validation/blastFoam/solidImpact/validation/createGraphs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ createEpsRho()
3131
set xlabel "X-Position (m)"
3232
set ylabel "Density [kg/m^3]"
3333
set grid
34-
set key right top
34+
set key left top
3535
set size 2,2
3636
set autoscale
3737
set xrange [0:1]

0 commit comments

Comments
 (0)