Skip to content

Commit 8e5a1c5

Browse files
authored
Merge pull request #560 from circlexiang/master
Add 2D Riemann problem case
2 parents 9e8506e + dd58304 commit 8e5a1c5

22 files changed

Lines changed: 1097 additions & 0 deletions

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ The neural network models used in the tutorial examples can be found at– [AIS
2727
Detailed guide for installation and tutorials is available on [our documentation website](https://deepflame.deepmodeling.com).
2828

2929
## Features
30+
New in v1.6 (2025/5/30):
31+
- Add a new solver, dfSteadyFoam, a steady-state compressible flow solver. It supports turbulence and uses the flexible PIMPLE algorithm to efficiently compute steady solutions
32+
- Extend energy model to support sensible enthalpy (hs) in addition to absolute enthalpy (ha) and internal energy (ea). Temperature can now be computed independently of Cantera via in-code Newton iteration, improving flexibility and removing external dependencies
33+
- Improve install.sh by displaying system architecture (e.g., x86_64) after build for clearer platform information
34+
- Switch to sphinx-book-theme and update documentation build environment (Ubuntu 24.04, Python 3.12) for better appearance and compatibility
35+
- Add 2D Riemann problem example case
36+
3037
New in v1.5 (2025/1/8):
3138
- Provide a new boundary condition, totalFlowRateAdvectiveDiffusion (adopted from OpenFOAM v7), which accounts for diffusion effects at the boundary
3239
- Develop a new solver, `dfBuoyancyFoam`(adopted from fireFoam in OpenFOAM v7), a transient, compressible solver designed to model turbulent reacting flows incorporating buoyancy effects
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 7
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
location "0";
14+
object N2;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 0 0 0 0 0 0];
19+
20+
internalField uniform 0.79;
21+
22+
boundaryField
23+
{
24+
inlet
25+
{
26+
type zeroGradient;
27+
}
28+
top
29+
{
30+
type zeroGradient;
31+
}
32+
bottom
33+
{
34+
type zeroGradient;
35+
}
36+
outlet
37+
{
38+
type zeroGradient;
39+
}
40+
frontAndBack
41+
{
42+
type empty;
43+
}
44+
}
45+
46+
// ************************************************************************* //
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 7
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
location "0";
14+
object O2;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 0 0 0 0 0 0];
19+
20+
internalField uniform 0.21;
21+
22+
boundaryField
23+
{
24+
inlet
25+
{
26+
type zeroGradient;
27+
}
28+
top
29+
{
30+
type zeroGradient;
31+
}
32+
bottom
33+
{
34+
type zeroGradient;
35+
}
36+
outlet
37+
{
38+
type zeroGradient;
39+
}
40+
frontAndBack
41+
{
42+
type empty;
43+
}
44+
}
45+
46+
// ************************************************************************* //
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 7
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
location "0";
14+
object T;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 0 0 1 0 0 0];
19+
20+
internalField uniform 348.4; // to be overwritten
21+
22+
boundaryField
23+
{
24+
inlet
25+
{
26+
type zeroGradient;
27+
}
28+
outlet
29+
{
30+
type zeroGradient;
31+
}
32+
bottom
33+
{
34+
type zeroGradient;
35+
}
36+
top
37+
{
38+
type zeroGradient;
39+
}
40+
frontAndBack
41+
{
42+
type empty;
43+
}
44+
}
45+
46+
// ************************************************************************* //
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 7
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volVectorField;
13+
location "0";
14+
object U;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 1 -1 0 0 0 0];
19+
20+
internalField uniform (0 0 0);
21+
22+
boundaryField
23+
{
24+
inlet
25+
{
26+
type zeroGradient;
27+
}
28+
top
29+
{
30+
type zeroGradient;
31+
}
32+
bottom
33+
{
34+
type zeroGradient;
35+
}
36+
outlet
37+
{
38+
type zeroGradient;
39+
}
40+
frontAndBack
41+
{
42+
type empty;
43+
}
44+
}
45+
46+
// ************************************************************************* //
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 7
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
location "0";
14+
object Ydefault;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 0 0 0 0 0 0];
19+
20+
internalField uniform 0.0;
21+
22+
boundaryField
23+
{
24+
inlet
25+
{
26+
type zeroGradient;
27+
}
28+
top
29+
{
30+
type zeroGradient;
31+
}
32+
bottom
33+
{
34+
type zeroGradient;
35+
}
36+
outlet
37+
{
38+
type zeroGradient;
39+
}
40+
frontAndBack
41+
{
42+
type empty;
43+
}
44+
}
45+
46+
// ************************************************************************* //
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 7
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
location "0";
14+
object p;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [1 -1 -2 0 0 0 0];
19+
20+
internalField uniform 150000; // to be overwritten
21+
22+
boundaryField
23+
{
24+
inlet
25+
{
26+
type zeroGradient;
27+
}
28+
outlet
29+
{
30+
type zeroGradient;
31+
}
32+
bottom
33+
{
34+
type zeroGradient;
35+
}
36+
top
37+
{
38+
type zeroGradient;
39+
}
40+
frontAndBack
41+
{
42+
type empty;
43+
}
44+
}
45+
46+
// ************************************************************************* //
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
cd ${0%/*} || exit 1 # Run from this directory
3+
4+
echo "Cleaning log.*"
5+
rm log.*
6+
echo "Cleaning processor*"
7+
rm -r processor*
8+
echo "Cleaning polyMesh/"
9+
rm -r constant/polyMesh
10+
echo "Cleaning 0/"
11+
rm -r 0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
cd ${0%/*} || exit 1 # Run from this directory
3+
4+
# Source tutorial run functions
5+
. $WM_PROJECT_DIR/bin/tools/RunFunctions
6+
7+
application=dfHighSpeedFoam
8+
9+
cp -r 0_orig/ 0/
10+
runApplication blockMesh
11+
runApplication setFields
12+
runApplication decomposePar
13+
runApplication mpirun -np 50 --allow-run-as-root $application -parallel

0 commit comments

Comments
 (0)