|
[Sponsors] |
May 10, 2020, 22:41 |
fvOptions for meanVelocityForce
|
#1 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Hi all,
I am using the meanVelocityForce option through fvOptions in order to constrain the volumetric flow rate in a three-dimensional periodic box. So I am using the following setting my fvOptions file: Code:
momentumSource { type meanVelocityForce; active yes; meanVelocityForceCoeffs { selectionMode all; fields (U); Ubar (0.000001 0.000001 0.000001); relaxation 1.0; } } 1- Is it possible to implement the desired Ubar by fvOptions three times instead of just one time? I mean I want to split my Ubar=(0.000001 0.000001 0.000001) to (0.000001 0 0), (0 0.000001 0), and (0 0 0.000001). I want to do so since when I confine the z velocity for a box with PBC in z direction, the result is reasonable. It seems that the meanVelocityForce has some problem with the velocity directions other than the principal Cartesian coordinates. 2- When I am using meanVelocityForce with "selectionMode all", the mean velocity in the entire domain would be equal to the the desired value? Am I right? Thank you in advance. Mo |
|
May 11, 2020, 19:10 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
>> meanVelocityForce.C cannot detect the flow direction vector by setting zero value. - Could you please elaborate what you meant here? I couldn't follow you well. - And also the first item please? - Second item, with `selectionMode=all` you select the entire computational domain, and the settings should lead to the bulk velocity to the input value for the whole domain.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 11, 2020, 20:53 |
|
#3 | |||
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Quote:
Thank you HPE for your response. As you can see in meanVelocityForce.C and its line 92: Code:
flowDir_(Ubar_/mag(Ubar_)), Quote:
On the other hand, I have another case with PBC in all directions. So when I set Ubar=(0.000001 0.000001 0.000001), the result is not what I expect. However, Ubar=(0 0 0.000001) can work very well for this case. So do you think Ubar=(0 0 0.000001) is still suitable for the case with PBC in all directions and zero volumetric flow rate in the box? I think you should be familiar enough with meanVelocityForce.C to understand my problem. Quote:
Thank you for your help. Last edited by mostanad; May 11, 2020 at 22:44. |
||||
May 12, 2020, 19:38 |
|
#4 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
No reply???
|
|
May 13, 2020, 17:06 |
|
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
- The issue I didn't understand is that why do you want to have zero volumetric flow rate for the bulk velocity? This should indicate to be no flow by using the meanVelocityForce. Then what is the driving force of the flow? I am just confused. - `selection=all` applies the relevant fvOptions to the entire computational domain. Hope it helps.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 13, 2020, 19:29 |
|
#6 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
The problem is related to the settling of a particle in an unbounded box. The driving force is gravity, so the particle is falling down. Due to the unbounded box, the net volumetric flow rate should be zero to mimic that condition.
|
|
Tags |
fvoptions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fvOptions limitTemperature crashing in compressibleInterFoam | JM27 | OpenFOAM Running, Solving & CFD | 38 | November 29, 2023 04:55 |
Can I use fvOptions to couple a solid region and a fluid region? | titanchao | OpenFOAM Running, Solving & CFD | 4 | January 14, 2022 08:55 |
Configuration of boundary conditions and fvOptions file | Raza Javed | OpenFOAM Running, Solving & CFD | 16 | May 3, 2019 17:35 |
topoSet/setSet and fvOptions | pod | OpenFOAM Running, Solving & CFD | 5 | April 30, 2019 06:41 |
Power and Enthalpy in fvOptions file | Raza Javed | OpenFOAM Running, Solving & CFD | 1 | April 26, 2019 11:03 |