|
[Sponsors] |
simulating 2D porous media but the results is dependent on z-dimension |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 3, 2023, 11:39 |
simulating 2D porous media but the results is dependent on z-dimension
|
#1 |
New Member
Join Date: Aug 2022
Posts: 19
Rep Power: 4 |
Hi everyone,
I have two questions: 1. What exactly does OpenFOAM do with the third dimension (diffusion + convection if needs to be specific) when simulating in 2D? 2. Why in my 2D simulation of a porous media (using Darcy-Forchheimer), the results are highly dependent on the third dimension, the z-axis? I would expect that no matter what value I put on z, it shouldn't have any impact on my 2D simulation. I tried
Code:
axesRotation; ... e3 (0 0 1);
Code:
d [0 -2 0 0 0 0 0] (2500 5500 5500); f [0 -1 0 0 0 0 0] (0 0 0); When I applied to my target model, however, the results are significantly impact by the third component of d. In fact, Dx, Dy (the first two Darcy components) have little impact, which doesn't make any sense. The region of the cellZones are visible in the lower of the figure, they are three rectangles. Without change Dx and Dy, by different Dz, the result is different. In fact, if Dz remains unchanged, there are only little to no difference with different combinations of Dx, Dy... - The inlet of the airflow is from the lower left corner - The outlet is on the upper left corner Could anyone know what could be wrong in my settings? Thank you very much! |
|
March 6, 2023, 09:14 |
|
#2 |
New Member
Join Date: Aug 2022
Posts: 19
Rep Power: 4 |
Today I also tried
- set origin to be (0 0) instead of (0 0 0), it will throw out fetal error, has to be (0 0 0) - set e3 (0 0 0) instead of (0 0 1), no difference. In fact, as I mentioned above, turning e3 on or off makes no difference at all... |
|
March 6, 2023, 14:37 |
|
#3 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hey,
__________________
Keep foaming, Tobias Holzmann |
|
March 8, 2023, 08:54 |
|
#4 | ||
New Member
Join Date: Aug 2022
Posts: 19
Rep Power: 4 |
Hi Tobias,
Thank you very much for your suggestions. I checked mainly two things based on the hints. ===== I prepared the blockmeshDict myself. I realized that the face(s) of my mesh maybe not consistent: For example, in defining the boundary conditions, I typed the faces like Code:
(0 1 5 4) (3 2 6 7) 1. The orientation of each face of a block should strictly point outwards, doesn't it? 2. In defining the blocks, am I correct to provide the nodes in this order? Code:
hex (0 1 2 3 4 5 6 7)(refinement)(grading) ===== Quote:
I get one step back and re-examine the tutorial case, which uses pisofoam and doesn't have heat transfer. I tested step by step, from pisofoam to simplefoam to the final buoyantsimplefoam. It is strange that the tutorial case "works" (third dimension Dz doesn't impact the simulation result), even for the adapted buoyantsimplefoam case. But later I found out that I was wrong! Because in the tutorial case the author has such comment: Code:
// D 100; // Very little blockage // D 200; // Some blockage but steady flow // D 500; // Slight waviness in the far wake // D 1000; // Fully shedding behavior Later I found that if Dz is really huge, say 1e8, there is visible difference. The figure underneath is a comparison between three pisofoam case (so just changed the inlet/outlet, BC, and geometry of the cellzone inside from the original tutorial): The difference between up and middle figure is very small, U_magnitude differs 0.001. However, it is visible that if Dz = 1e8, the outline of the cellzone is much harder than the other settings. Hence my question is 4. Is cellZone in fact always 3D by default?? I know OpenFOAM itself is always 3D, but can we tell cellZone that we are running a "2D" case? ===== Quote:
Above are the setting of the boundaries. Front and back are defaultFaces and are set to empty. 5. Could you please elaborate more on this comment: Do you set the patch-type to be empty in the boundary file as well as in the field files? What/where are the field files? I have d/f coeffs in the fvOptions (the property), and cellzone is defined in the topoSetDict (the geometry). The topoSetDict is as following: Code:
actions ( // porousBlockage { name porousBlockageCellSet; type cellSet; action new; source boxToCell; box (-1.5 -1.5 -1) (-0.5 1.5 1); } { name porousBlockage; type cellZoneSet; action new; source setToCellZone; set porousBlockageCellSet; } ); Thank you very much for your time and help! |
|||
March 8, 2023, 09:39 |
|
#5 |
New Member
Join Date: Aug 2022
Posts: 19
Rep Power: 4 |
For the last question 5 in the previous post, if the field file refers to the definition in the 0 folder:
Yes, then I have in all p, U, T, ..., etc. files that Code:
defaultFaces { type empty; } |
|
March 9, 2023, 08:45 |
|
#6 |
New Member
Join Date: Aug 2022
Posts: 19
Rep Power: 4 |
My latest experiment result with the tutorial case:
Some observation for 2D porous media simulation:
Please correct me if I was wrong and always welcome for comments! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent - Flow/heat transfer over porous media - possibly interface issue | ayihan | FLUENT | 0 | March 3, 2018 19:55 |
2Phase flow simulation in Porous Media Ansys Fluent | Yaqub | FLUENT | 0 | June 22, 2017 04:46 |
about porous media | major | FLUENT | 5 | March 6, 2013 11:00 |
Porous media boundary conditions | aggie | FLUENT | 3 | June 17, 2012 10:51 |
porous media divergence | Phil | FLUENT | 0 | March 13, 2002 07:03 |