CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to change cellzone during simulation?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2018, 10:45
Default How to change cellzone during simulation?
  #1
New Member
 
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 9
nuttita is on a distinguished road
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.
nuttita is offline   Reply With Quote

Old   September 29, 2018, 11:07
Default
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Is it the domain that changes, or you choose a different porous region everytime?
Santiago is offline   Reply With Quote

Old   September 29, 2018, 15:18
Default
  #3
New Member
 
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 9
nuttita is on a distinguished road
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.
nuttita is offline   Reply With Quote

Old   September 29, 2018, 15:23
Default
  #4
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Is the porous region adding some source/sink of some kind?
Santiago is offline   Reply With Quote

Old   September 29, 2018, 16:30
Default
  #5
New Member
 
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 9
nuttita is on a distinguished road
Yes, it’s the Darcy-Forchheimer sink term added to the Navier-Stokes equation. This term is active only in the porous region.
nuttita is offline   Reply With Quote

Old   September 30, 2018, 09:31
Default
  #6
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
Hello,


There are few ways to solve this problem but it depends on your implementation.
  1. Of course you can create a cellSet each time step and apply the source term for these specific set.
  • It could cause issues in parallel.
  • Extra computation time to select those cells.
  • An example maybe found in topSet, adaptive dynamic mesh ....
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
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   September 30, 2018, 12:43
Default
  #7
New Member
 
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 9
nuttita is on a distinguished road
Dear Hassan,

Thank you for your suggestion.

Nuttita
nuttita is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat pipe simulation with phase change mecman OpenFOAM Running, Solving & CFD 10 May 8, 2020 03:42
Change Turbulence Model during simulation bussaco8 OpenFOAM Running, Solving & CFD 4 June 1, 2018 13:48
sonicFoam simulation, no change anymore homersimpson OpenFOAM Running, Solving & CFD 0 March 10, 2017 03:49
Change BCs and restart simulation be89 OpenFOAM Running, Solving & CFD 1 February 28, 2017 12:02
How to change orientation of body in boat simulation?? sanjay STAR-CCM+ 7 January 15, 2012 00:24


All times are GMT -4. The time now is 02:26.