Skip to content

Commit 9860039

Browse files
authored
add the test for dfHighSpeedFoam (#288)
1 parent acec855 commit 9860039

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

examples/dfHighSpeedFoam/oneD_detonationH2/Allrun

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ cp -r 0_orig/ 0/
1010
runApplication blockMesh
1111
runApplication setFields
1212
runApplication decomposePar
13-
runApplication mpirun -np 8 $application -parallel
13+
runApplication mpirun --oversubscribe -np 8 $application -parallel

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FetchContent_MakeAvailable(googletest)
1414

1515
file(COPY ./pytorchIntegrator/postProcessing/probes/0/T DESTINATION 0DH2)
1616

17-
#file(COPY ./oneD_detonationH2/postProcessing/minMax/0/fieldMinMax.dat DESTINATION 1Ddetonation)
17+
file(COPY ./oneD_detonationH2/postProcessing/minMax/0/fieldMinMax.dat DESTINATION 1Ddetonation)
1818
file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0005/data_T.xy DESTINATION 2DTGV/5)
1919
file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0004/data_T.xy DESTINATION 2DTGV/4)
2020
file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0003/data_T.xy DESTINATION 2DTGV/3)

test/corrtest.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ float readmidTH2();
1010
float readmaxTH2();
1111

1212
float readTGV(int k, string file);
13-
//float readHighSpeed();
14-
//float v = readHighSpeed();
13+
float readHighSpeed();
14+
float v = readHighSpeed();
1515

1616
float H2maxT = readmaxTH2();
1717
float H2midT = readmidTH2();
@@ -51,9 +51,9 @@ TEST(corrtest,df0DFoam_H2){
5151

5252

5353

54-
//TEST(corrtest,dfHighSpeedFoam){
55-
// EXPECT_NEAR(v,1979.33,19.79); // within 1% of the theroetical value
56-
//}
54+
TEST(corrtest,dfHighSpeedFoam){
55+
EXPECT_NEAR(v,1979.33,19.79); // within 1% of the theroetical value
56+
}
5757

5858
TEST(corrtest,dfLowMachFoam_TGV){
5959
EXPECT_FLOAT_EQ(TGV500,1532.92); // compare the maximum temperature along y direction in 2D TGV after 500 time steps

test/oneD_detonationH2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../examples/dfHighSpeedFoam/oneD_detonationH2/

0 commit comments

Comments
 (0)