|
[Sponsors] |
November 21, 2017, 05:42 |
fvOptions for constant pressure gradient
|
#1 |
Member
Anders Utnes
Join Date: May 2017
Location: Norway
Posts: 34
Rep Power: 9 |
Hi
I want to start of a channel as 0 at all places, cyclic inlet and outlet, but with a constant dP/dx pressure gradient so that the fluid eventually approach a steady flow. Anyone know how to do this using the fvOptions file? |
|
November 21, 2017, 10:07 |
|
#2 |
Member
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 12 |
Hi man
I never did it with pressure but with velocity i.e. Ubar Best H : /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // momentumSource { type meanVelocityForce; active yes; meanVelocityForceCoeffs { selectionMode all; fieldNames (U); Ubar (0.335 0 0); } } // ************************************************** *********************** // |
|
November 21, 2017, 10:53 |
|
#3 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
Hello Anders,
just follow Hullis example. Besides, for OpenFOAM 5.0, it has to read fields (U); instead of fieldNames (U); Works with transient, as well as with steady-state flows. |
|
November 24, 2017, 06:07 |
|
#4 |
Member
Anders Utnes
Join Date: May 2017
Location: Norway
Posts: 34
Rep Power: 9 |
This seems to have the disadvantage of jumping DIRECTLY to a high speed everywhere, thus making the simulation unsteady?
|
|
November 24, 2017, 06:56 |
|
#5 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
Sure, if your simulations becomes unstable at a certain velocity threshold, setting fvOptins/Ubar to this value will cause your solution to diverge. Otherwise there shouldn't be any problem.
|
|
November 24, 2017, 14:10 |
|
#6 |
Member
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 12 |
try to play around with Ubar !!! otherwise you might have to adjust your schemes ....
|
|
November 27, 2017, 03:59 |
|
#7 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hi,
try to use the vectorSemiImplicitSource. In case of U, you introduce it as injectionRateSuSp { U ((dpdx 0 0) 0); } https://github.com/OpenFOAM/OpenFOAM...plicitSource.H |
|
November 22, 2020, 09:34 |
|
#8 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
__________________
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 |
|
December 16, 2022, 05:34 |
|
#9 | |
New Member
Haitham Osman
Join Date: Jan 2020
Posts: 6
Rep Power: 6 |
Quote:
https://github.com/OpenFOAM/OpenFOAM...898bec5fac74ad kind regards |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions | Vishnu_bharathi | CFX | 12 | November 21, 2017 07:56 |
negative pressure gradient in cone-shaped pipe | Pawel Zdunek | Lounge | 0 | April 29, 2017 16:16 |
Pressure Outlet Guage pressure | Mohsin | FLUENT | 36 | April 29, 2016 18:16 |
vortex cause pressure gradient or pressure gradient induce vortex? | fruitkiwi | Main CFD Forum | 4 | June 12, 2012 02:12 |
how to get pressure and pressure gradient using UDF | Honglin | Fluent UDF and Scheme Programming | 0 | May 24, 2012 07:47 |