Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/dfHighSpeedFoam/oneD_detonationH2/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ cp -r 0_orig/ 0/
runApplication blockMesh
runApplication setFields
runApplication decomposePar
runApplication mpirun -np 8 $application -parallel
runApplication mpirun --oversubscribe -np 8 $application -parallel
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FetchContent_MakeAvailable(googletest)

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

#file(COPY ./oneD_detonationH2/postProcessing/minMax/0/fieldMinMax.dat DESTINATION 1Ddetonation)
file(COPY ./oneD_detonationH2/postProcessing/minMax/0/fieldMinMax.dat DESTINATION 1Ddetonation)
file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0005/data_T.xy DESTINATION 2DTGV/5)
file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0004/data_T.xy DESTINATION 2DTGV/4)
file(COPY ./dfLowMachFoam/twoD_reactingTGV/H2/cvodeSolver/postProcessing/sample/0.0003/data_T.xy DESTINATION 2DTGV/3)
Expand Down
10 changes: 5 additions & 5 deletions test/corrtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ float readmidTH2();
float readmaxTH2();

float readTGV(int k, string file);
//float readHighSpeed();
//float v = readHighSpeed();
float readHighSpeed();
float v = readHighSpeed();

float H2maxT = readmaxTH2();
float H2midT = readmidTH2();
Expand Down Expand Up @@ -51,9 +51,9 @@ TEST(corrtest,df0DFoam_H2){



//TEST(corrtest,dfHighSpeedFoam){
// EXPECT_NEAR(v,1979.33,19.79); // within 1% of the theroetical value
//}
TEST(corrtest,dfHighSpeedFoam){
EXPECT_NEAR(v,1979.33,19.79); // within 1% of the theroetical value
}

TEST(corrtest,dfLowMachFoam_TGV){
EXPECT_FLOAT_EQ(TGV500,1532.92); // compare the maximum temperature along y direction in 2D TGV after 500 time steps
Expand Down
1 change: 1 addition & 0 deletions test/oneD_detonationH2