Skip to content
Snippets Groups Projects
Commit 16b68878 authored by TESLA03\Master's avatar TESLA03\Master
Browse files

fix the grid size for mussel

error introduced in ff49c380
parent 4a7638b6
No related branches found
No related tags found
1 merge request!104Add Communication Hiding to GPU version
...@@ -114,7 +114,7 @@ void multipleLevel(const std::string& configPath) ...@@ -114,7 +114,7 @@ void multipleLevel(const std::string& configPath)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
std::string bivalveType = "OYSTER"; // "MUSSEL" "OYSTER" std::string bivalveType = "MUSSEL"; // "MUSSEL" "OYSTER"
real dx = 0.5; real dx = 0.5;
real vx = (real)0.005; real vx = (real)0.005;
...@@ -125,7 +125,7 @@ void multipleLevel(const std::string& configPath) ...@@ -125,7 +125,7 @@ void multipleLevel(const std::string& configPath)
para->setVelocityRatio(1.0); para->setVelocityRatio(1.0);
para->setTOut(50000); para->setTOut(50000);
para->setTEnd(200000); para->setTEnd(100000);
para->setCalcDragLift(false); para->setCalcDragLift(false);
para->setUseWale(false); para->setUseWale(false);
...@@ -163,13 +163,13 @@ void multipleLevel(const std::string& configPath) ...@@ -163,13 +163,13 @@ void multipleLevel(const std::string& configPath)
// y = 0, 27 // y = 0, 27
// z = 0, 63 // z = 0, 63
const real xSpaceM = 30.0; const real xSpaceM = 40.0;
const real xSpaceP = 300.0; const real xSpaceP = 300.0;
const real ySpaceP = 60.0; const real ySpaceP = 60.0;
const real zSpacePM = 20.0; const real zSpacePM = 30.0;
if (bivalveType == "MUSSEL") if (bivalveType == "MUSSEL")
gridBuilder->addCoarseGrid(-18.0 - xSpaceM, -16.5, -5.0 - zSpacePM, gridBuilder->addCoarseGrid(-18.0 - xSpaceM, -16.5, -5.0 - zSpacePM,
58.0 + xSpaceP, 180. + ySpaceP, 13.0 + zSpacePM, dx); 58.0 + xSpaceP, 18.0 + ySpaceP, 13.0 + zSpacePM, dx);
else if (bivalveType == "OYSTER") else if (bivalveType == "OYSTER")
gridBuilder->addCoarseGrid(0.0 - xSpaceM, 0.5, 0.0 - zSpacePM, gridBuilder->addCoarseGrid(0.0 - xSpaceM, 0.5, 0.0 - zSpacePM,
115.0 + xSpaceP, 27.0 + ySpaceP, 63.0 + zSpacePM, dx); 115.0 + xSpaceP, 27.0 + ySpaceP, 63.0 + zSpacePM, dx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment