Skip to content

Commit

Permalink
debug for test 5
Browse files Browse the repository at this point in the history
  • Loading branch information
pkuLmq committed Aug 20, 2024
1 parent 3b214a8 commit 4e17dbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/aachenBomb_2D/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ application=dfLowMachFoam

runApplication blockMesh
runApplication decomposePar
runApplication mpirun -np 2 --allow-run-as-root $application -parallel
runApplication $application

runApplication reconstructPar
runApplication postProcess -func sample
2 changes: 1 addition & 1 deletion test/aachenBomb_2D/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ timeFormat general;

timePrecision 6;

adjustTimeStep yes;
adjustTimeStep no;

maxCo 0.1;

Expand Down
12 changes: 6 additions & 6 deletions test/corrtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ using namespace std;
float readBomb(int k, string file);
float aachenBomb1 = readBomb(158,"aachenBomb2D/data_T.xy");
float aachenBomb2 = readBomb(168,"aachenBomb2D/data_T.xy");
float aachenBomb3 = readBomb(172,"aachenBomb2D/data_T.xy");
float aachenBomb4 = readBomb(194,"aachenBomb2D/data_T.xy");
float aachenBomb3 = readBomb(174,"aachenBomb2D/data_T.xy");
float aachenBomb4 = readBomb(192,"aachenBomb2D/data_T.xy");


// TEST(corrtest,dfHighSpeedFoam){
Expand Down Expand Up @@ -71,10 +71,10 @@ float aachenBomb4 = readBomb(194,"aachenBomb2D/data_T.xy");
// }

TEST(corrtest,dfLowMachFoam_2DaachenBomb){
EXPECT_NEAR(aachenBomb1,814.228,0.0001);
EXPECT_NEAR(aachenBomb2,2145.99,0.0001);
EXPECT_NEAR(aachenBomb3,939.509,0.0001);
EXPECT_NEAR(aachenBomb4,2475.45,0.0001);
EXPECT_NEAR(aachenBomb1,809.095,0.0001);
EXPECT_NEAR(aachenBomb2,1770.21,0.0001);
EXPECT_NEAR(aachenBomb3,917.437,0.0001);
EXPECT_NEAR(aachenBomb4,2474.36,0.0001);
}

float readmaxTH2(){
Expand Down

0 comments on commit 4e17dbb

Please sign in to comment.