Skip to content

Commit

Permalink
add a test for torch
Browse files Browse the repository at this point in the history
  • Loading branch information
JX278 committed Dec 25, 2023
1 parent 333ede3 commit c1f34d8
Show file tree
Hide file tree
Showing 30 changed files with 1,072 additions and 18 deletions.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/
file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0001/data_T.xy DESTINATION 2DTGV/1)

file(COPY ./dfLowMachFoam/2DSandiaD_flareFGM/postProcessing/sample/1.1/data_T.xy DESTINATION 2DSandia)

file(COPY ./Tu500K-Phi1/fs DESTINATION flameSpeed)

enable_testing()

Expand Down
Binary file added test/Tu500K-Phi1/0/H.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/H2.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/H2O.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/H2O2.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/HO2.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/N2.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/O.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/O2.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/OH.gz
Binary file not shown.
Binary file added test/Tu500K-Phi1/0/T.gz
Binary file not shown.
40 changes: 40 additions & 0 deletions test/Tu500K-Phi1/0/U
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (5.36 0 0);

boundaryField
{
boundary
{
type empty;
}
inlet
{
type fixedValue;
value uniform (5.36 0 0);
}
outlet
{
type zeroGradient;
}
}


// ************************************************************************* //
40 changes: 40 additions & 0 deletions test/Tu500K-Phi1/0/Ydefault
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object N2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0.0;

boundaryField
{
boundary
{
type empty;
}
inlet
{
type fixedValue;
value uniform 0.0;
}
outlet
{
type zeroGradient;
}
}


// ************************************************************************* //
41 changes: 41 additions & 0 deletions test/Tu500K-Phi1/0/p
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
boundary
{
type empty;
}
inlet
{
type zeroGradient;
}
outlet
{
type waveTransmissive;
gamma 1.4;
value uniform 101325;
}
}


// ************************************************************************* //
11 changes: 11 additions & 0 deletions test/Tu500K-Phi1/Allclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

echo "Cleaning log.*"
rm log.*
echo "Cleaning processor*"
rm -r processor*
echo "Cleaning polyMesh/"
rm -r constant/polyMesh
echo "Cleaning last result"
rm 0.* -r
16 changes: 16 additions & 0 deletions test/Tu500K-Phi1/Allrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=dfLowMachFoam

runApplication blockMesh
runApplication decomposePar
runApplication mpirun -np 4 --allow-run-as-root $application -parallel
reconstructPar
flameSpeed > log.fs
sed -n 's/.*flameSpeed = \([0-9]*\(\.[0-9]*\)\?\).*/\1/p' log.fs > fs


Loading

0 comments on commit c1f34d8

Please sign in to comment.