|
[Sponsors] |
September 29, 2018, 11:45 |
How to change cellzone during simulation?
|
#1 |
New Member
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 10 |
Hi, I’m simulating porous media flows using porousInterFoam in OF 2.3. I created porous zone in blockMesh for flows through static porous medium and it works fine. However, I need to work with deforming medium. That means the shape of the porous zone changes. Hence, the cellzone needs to be changed during simulation. Does anyone know how to do this? Thank you.
|
|
September 29, 2018, 12:07 |
|
#2 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 |
Is it the domain that changes, or you choose a different porous region everytime?
|
|
September 29, 2018, 16:18 |
|
#3 |
New Member
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 10 |
Santiago, thank you for your reply.
The domain doesn't change. Only the porous region in the domain changes every time step. The change is based on a computed field variable alpha. if alpha = 1 -->> porous region else non-porous region This alpha is obtained from another solver that is coupled with porousInterFoam. |
|
September 29, 2018, 16:23 |
|
#4 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 |
Is the porous region adding some source/sink of some kind?
|
|
September 29, 2018, 17:30 |
|
#5 |
New Member
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 10 |
Yes, it’s the Darcy-Forchheimer sink term added to the Navier-Stokes equation. This term is active only in the porous region.
|
|
September 30, 2018, 10:31 |
|
#6 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
Hello,
There are few ways to solve this problem but it depends on your implementation.
2. Don't use cellSet at all, calculate the source term as a function of alpha for each grid cell. Of you kind of if condition if it needed.Probably there are other solution but all depend on your current code and what features you need in the future. Best wishes, Hassan |
|
September 30, 2018, 13:43 |
|
#7 |
New Member
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 10 |
Dear Hassan,
Thank you for your suggestion. Nuttita |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heat pipe simulation with phase change | mecman | OpenFOAM Running, Solving & CFD | 10 | May 8, 2020 04:42 |
Change Turbulence Model during simulation | bussaco8 | OpenFOAM Running, Solving & CFD | 4 | June 1, 2018 14:48 |
sonicFoam simulation, no change anymore | homersimpson | OpenFOAM Running, Solving & CFD | 0 | March 10, 2017 04:49 |
Change BCs and restart simulation | be89 | OpenFOAM Running, Solving & CFD | 1 | February 28, 2017 13:02 |
How to change orientation of body in boat simulation?? | sanjay | STAR-CCM+ | 7 | January 15, 2012 01:24 |