|
[Sponsors] |
Defined pressure gradient between two fluid regions |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 6 ![]() |
Hi Formers,
I have this question for some time and I could not yet figure out a way to do it. Here is my question. 1. There is two fluid domains with same thermophysical properties. Each fluid domain can have a inlet and a outlet. (fluid domains should have at lease one external boundary) 2. Two domains are physically connected by a narrow channel. 3. I want to define a pressure gradient between the internal surfaces of the narrow channel. ( so that the narrow channel basically acts as a relief valve). Could you suggest me an any direction setting up such a case? Or is it even possible to do this in OpenFoam ![]() ![]() Thank you. Dasith |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 ![]() |
I do not quite understand what you mean by two domains...do you mean two separate solvers? Or just two physically separate regions, but with a channel between them. Hence fully connected.
You can set a pressure gradient inside your domain using fvOptions...e.g semiImplicitSource or directionalPressureGradientExplicitSource You might want to look into baffles (zero thickness walls) if you are talking about two domains, with a wall like interface between them. If those domains are somehow separate, but the same solver. Otherwise something like the multiple world coupling allows coupling several solvers (i think this was introduced in v2012) So do you want to set this pressure gradient as a boundary condition or as a volumetric source term? |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 6 ![]() |
Hi Bloerb,
Thank you very much for your response. sorry for the confusion, it is just two physically separated regions but with a channel between them. So you are right, just one fluid region. I have been abled to follow on the ''directionalPressureGradientExplicitSource'' with fvOptions. created a faceZone to accommodate the pressure gradient. No, I am not interested in the velocity so I set it up as a constant pressureDrop. Please see the fvOptions file, the model just stops running at the first time step without giving an error. Please see the following fvOption PHP Code:
I highly appreciate your help, thank you. Best Regards, Dasith |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 ![]() |
You should probably not use all but apply the pressure gradient only in the small region. Hence define a cellZone where the pressure gradient should be added.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 6 ![]() |
Hi Bloerb,
Thank you very much for the quick reply. I am still relatively new to OpenFoam and your directions on this highly appreciated. I tried to set the a cellZone with cellSet but I have not been successful so far. Please correct me if I am wrong. I have already define fluid region in topoSet (say regionA). I want to define a sub region within regionA, say region 'channel'. In the toposet file I have tried it with 'subset' but I could not define a cellzone named 'channel' with the regionA. It is much appreciated if you could direct me to a example or for any suggestions. my subset looks like this PHP Code:
Thanks, Dasith |
|
![]() |
![]() |
![]() |
Tags |
constant pressure drop |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for zero pressure gradient at BC outlet | ghordog | Fluent UDF and Scheme Programming | 1 | April 28, 2022 06:12 |
Same pressure gradient but different velocity field | TurbJet | Main CFD Forum | 22 | April 28, 2018 04:35 |
Overflow Error in Multiphase Modelling with Two Continuous Fluids | ashtonJ | CFX | 6 | August 11, 2014 15:32 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
Maintaining Static Pressure at Fluid Flow Inlet | cdevalve | FLUENT | 3 | January 14, 2012 01:11 |