From 39e22863be1e50bd8e6b36f3d3ecbd1bec09e6a0 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 31 Jan 2019 14:26:35 +0100 Subject: Move geometry print to prepareLattice This way statistics reflect the cells disabled by refinement. --- apps/adrian/cylinder2d/cylinder2d.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/adrian/cylinder2d') diff --git a/apps/adrian/cylinder2d/cylinder2d.cpp b/apps/adrian/cylinder2d/cylinder2d.cpp index 0893928..56866c4 100644 --- a/apps/adrian/cylinder2d/cylinder2d.cpp +++ b/apps/adrian/cylinder2d/cylinder2d.cpp @@ -93,7 +93,6 @@ void prepareGeometry(Grid2D& grid) sGeometry.clean(); sGeometry.innerClean(); sGeometry.checkForErrors(); - sGeometry.print(); clout << "Prepare Geometry ... OK" << std::endl; } @@ -149,6 +148,7 @@ void prepareLattice(Grid2D& grid) sLattice.initialize(); clout << "Prepare lattice ... OK" << std::endl; + sGeometry.print(); } void setBoundaryValues(Grid2D& grid, int iT) @@ -227,10 +227,12 @@ int main(int argc, char* argv[]) auto& fineGrid = coarseGrid.refine(fineOrigin, fineExtend); prepareGeometry(fineGrid); - const Vector fineExtendB {10*coarseDeltaX, ly}; - const Vector fineOriginB {lx-10*coarseDeltaX, 0}; + disableRefinedArea(coarseGrid, fineGrid); + + const Vector fineOutflowExtend {5*coarseDeltaX, ly}; + const Vector fineOutflowOrigin {lx-5*coarseDeltaX, 0}; - auto& fineOutflowGrid = coarseGrid.refine(fineOriginB, fineExtendB, false); + auto& fineOutflowGrid = coarseGrid.refine(fineOutflowOrigin, fineOutflowExtend, false); prepareGeometry(fineOutflowGrid); { @@ -249,8 +251,6 @@ int main(int argc, char* argv[]) coarseGrid.getSuperGeometry().rename(4,0,refined); } - disableRefinedArea(coarseGrid, fineGrid); - const Vector fineExtend2 {4*cylinderD, 2*cylinderD}; const Vector fineOrigin2 {1*cylinderD, 2*cylinderD-fineExtend2[1]/2}; -- cgit v1.2.3