|
[Sponsors] |
January 7, 2019, 13:27 |
cellZone not taking all the cells inside
|
#1 |
Member
|
My case details can be found at Courant number issue at lower rpm in pimpleDyMFoam
i am using OpenFOAM-3.0.x. My case is very similar to the propeller tutorial of pimpleDyMFoam except for one change that is the different design of propeller. Obviously, the dimensions of innerCylinderSmall and other cylinders were updated according to the new design/dimension of the propeller. Moreover, it is a fluid-filled closed chamber now without any inlet and outlet. The Courant number issue was resolved as per discussions stated in Courant number issue at lower rpm in pimpleDyMFoam The simulation runs seamlessly after changes. Thereafter I wanted to define the whole simulation zone as a porous zone called porosity1. Therefore, following part was added to the file createInletOutletSets.topoSetDict Code:
// Load initial cellSet { name porosity1; type cellSet; action new; source boxToCell; sourceInfo { box (-0.1 0.0 -0.1) (0.1 0.18 0.1); } } // Setting cellZone { name porosity1; type cellZoneSet; action new; source setToCellZone; sourceInfo { set porosity1; } } Code:
Mesh stats points: 719644 faces: 1873121 internal faces: 1704405 cells: 577544 faces per cell: 6.19438 boundary patches: 8 point zones: 0 face zones: 1 cell zones: 1 Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 3.0.x-ac3f6c67e02f Exec : topoSet -dict system/createInletOutletSets.topoSetDict Date : Jan 02 2019 Time : 18:25:33 Host : "MSLab02" PID : 15445 Case : /media/mslab02/Elements/CFD/StirredMill/OpenFOAM/V11_V10_originalStirredMillRPM1000/V11_V10_originalStirredMillRPM1000 nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create polyMesh for time = 0 Reading topoSetDict Time = 0 mesh not changed. Created faceSet boundaryFaces Applying source patchToFace Adding all faces of patch outerCylinder ... Found matching patch outerCylinder with 4036 faces. faceSet boundaryFaces now size 4036 Created faceSet outletFaces Applying source faceToFace Adding all faces from faceSet boundaryFaces ... faceSet outletFaces now size 4036 Created faceSet inletFaces Applying source faceToFace Adding all faces from faceSet boundaryFaces ... faceSet inletFaces now size 4036 Read set faceSet outletFaces with size 4036 Applying source normalToFace normalToFace : Normalized vector to (0 -1 0) Adding faces according to normal being aligned with (0 -1 0) (to within 0.3) ... faceSet outletFaces now size 1440 Read set faceSet inletFaces with size 4036 Applying source normalToFace normalToFace : Normalized vector to (0 1 0) Adding faces according to normal being aligned with (0 1 0) (to within 0.3) ... faceSet inletFaces now size 0 Created cellSet porosity1 Applying source boxToCell Adding cells with center within boxes 1((-0.1 0 -0.1) (0.1 0.18 0.1)) cellSet porosity1 now size 577544 Created cellZoneSet porosity1 Applying source setToCellZone Adding all cells from cellSet porosity1 ... cellZoneSet porosity1 now size 577544 End Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 3.0.x-ac3f6c67e02f Exec : pimpleDyMFoam -parallel Date : Jan 02 2019 Time : 18:30:05 Host : "MSLab02" PID : 16340 Case : /media/mslab02/Elements/CFD/StirredMill/OpenFOAM/V11_V10_originalStirredMillRPM1000/V11_V10_originalStirredMillRPM1000 nProcs : 4 Slaves : 3 ( "MSLab02.16341" "MSLab02.16342" "MSLab02.16343" ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Selecting dynamicFvMesh solidBodyMotionFvMesh Selecting solid-body motion function rotatingMotion Applying solid body motion to cellZone innerCylinderSmall PIMPLE: no residual control data found. Calculations will employ 2 corrector loops Reading field p Reading field U Reading/calculating face flux field phi AMI: Creating addressing and weights between 31980 source faces and 31980 target faces AMI: Patch source sum(weights) min/max/average = 0.864049, 1.06838, 0.950135 AMI: Patch target sum(weights) min/max/average = 0.777792, 1.00559, 0.942769 Selecting incompressible transport model Newtonian Selecting turbulence model type RAS Selecting RAS turbulence model kEpsilon kEpsilonCoeffs { Cmu 0.09; C1 1.44; C2 1.92; C3 -0.33; sigmak 1; sigmaEps 1.3; } Reading/calculating face velocity Uf No MRF models present Creating finite volume options from "constant/fvOptions" Selecting finite volume options model type explicitPorositySource Source: porosity1 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 Porosity region porosity1: selecting model: DarcyForchheimer creating porous zone: porosity1 Courant Number mean: 0 max: 0 Starting time loop Reading surface description: zNormal isoQ propeller forces forces: Not including porosity effects Courant Number mean: 0 max: 0 deltaT = 1.19904e-05 Time = 1.19904e-05 solidBodyMotionFunctions::rotatingMotion::transformation(): Time = 1.19904e-05 transformation: ((0 0 0) (1 (0 0.000629496 0))) AMI: Creating addressing and weights between 31980 source faces and 31980 target faces AMI: Patch source sum(weights) min/max/average = 0.890328, 1.11472, 0.980946 AMI: Patch target sum(weights) min/max/average = 0.813328, 1.06253, 0.973343 PIMPLE: iteration 1 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 0.00347262, No Iterations 1 smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 0.00361454, No Iterations 1 smoothSolver: Solving for Uz, Initial residual = 1, Final residual = 0.00357922, No Iterations 1 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 GAMG: Solving for p, Initial residual = 1, Final residual = 0.00518406, No Iterations 5 time step continuity errors : sum local = 8.59148e-07, global = -1.54541e-10, cumulative = -1.54541e-10 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 PIMPLE: iteration 2 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 smoothSolver: Solving for Ux, Initial residual = 0.030644, Final residual = 6.75332e-07, No Iterations 2 smoothSolver: Solving for Uy, Initial residual = 0.0254633, Final residual = 5.55156e-07, No Iterations 2 smoothSolver: Solving for Uz, Initial residual = 0.030196, Final residual = 7.25131e-07, No Iterations 2 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 GAMG: Solving for p, Initial residual = 0.171561, Final residual = 1.61213e-06, No Iterations 50 time step continuity errors : sum local = 5.96149e-10, global = -4.95493e-11, cumulative = -2.0409e-10 - selecting cells using cellZone porosity1 - selected 89136 cell(s) with volume 0.00272961 smoothSolver: Solving for epsilon, Initial residual = 0.00240751, Final residual = 4.53715e-08, No Iterations 2 smoothSolver: Solving for k, Initial residual = 1, Final residual = 6.08364e-07, No Iterations 3 ExecutionTime = 21.82 s ClockTime = 28 s forces forces output: sum of forces: pressure : (0.32169 -0.0611844 -0.31682) viscous : (6.64668e-06 -2.1396e-07 -6.79721e-07) porous : (0 0 0) sum of moments: pressure : (-0.556742 -0.54134 -0.344258) viscous : (-1.27764e-05 -6.49338e-05 -8.20582e-06) porous : (0 0 0) Courant Number mean: 0.0219529 max: 0.173894 deltaT = 1.43712e-05 Time = 2.63616e-05 I tried to visualize these cellZones and found that in otal two cellZones get created 'porosity1' and 'innerCylinderSmall'. Total 577544 cells gets divided in these two cellZones. 89136 cells in 'porosity1' and rest in 'innerCylinderSmall'. The same is evident in constant/polyMesh/cellZones file. I have made the visual comparison of complete mesh and the two cellZones as in the attached image. I also know that the defined porosity conditions are working fine but only for the outer region. I have attached the simulation snapshot at the end of 1 second of two simulations, one with defined porosity (left) and another without porosity (right). One can see that the simulation without porosity (right) has continuous velocity field throughout the region. However, one with porosity (left) has discretely reduced velocity particulary in the discussed outer porous region. Everything is good to go except one that why porosity1 region even after being defined for the whole region is leaving the cells contained in innerCylinderSmall region/cellZone. Someone please explain. Any help is greatly appreciable. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh running killed! | Mark JIN | OpenFOAM Meshing & Mesh Conversion | 7 | June 14, 2022 01:37 |
Problem with divergence | TDK | FLUENT | 13 | December 14, 2018 06:00 |
Problem with entire domain comprised of split hex cells | Arzed23 | Main CFD Forum | 1 | November 7, 2016 23:01 |
snappyhexmesh remove blockmesh geometry | philipp1 | OpenFOAM Running, Solving & CFD | 2 | December 12, 2014 10:58 |
killed "snappyHexMesh" | parkh32 | OpenFOAM Pre-Processing | 2 | April 8, 2012 17:12 |