|
[Sponsors] |
March 22, 2019, 08:59 |
Changing the porosity of cells per time step
|
#1 |
New Member
Neil Barker
Join Date: Nov 2018
Posts: 1
Rep Power: 0 |
UDF Newbie here so please be gentle.
I'm trying to simulate a valve closing without the valve being there. This is to hopefully make it a bit easier to compute. I've modelled a ram pump and would like to look at the water hammer effect further up the pipe network. I was thinking, the easiest way was to create a set of porous cells at the end of the pipe and change them from letting fluid through to not letting it through. I was hoping the porosity of a range of cells could be altered per time step. I can then complete multiple models with different valve closing times. My question is, do you think this is achievable via the UDF? Or am I going down the wrong route? I’ve been wanting to start UDF coding for some time now. But this problem may not be the one to start with. From what i've learnt so far doing CFD is, “there's more than one way to skin a cat”. “And some cats are easier to skin than others..” Thanks, Neil |
|
March 25, 2019, 01:30 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
What cats are you talking about?
Did you try to change porosity manually to stop flow? Does it work? best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 03:36 |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
Stuck in a Rut- interDyMFoam! | xoitx | OpenFOAM Running, Solving & CFD | 14 | March 25, 2016 08:09 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |