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

Adjuting oulet pressure till inlet pressure reaches a certain value in timestep

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2018, 21:33
Default Adjuting oulet pressure till inlet pressure reaches a certain value in timestep
  #1
Member
 
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10
pvpnrao is on a distinguished road
Dear Foamers

I am using icofoam in openFOAM 5.x to simulate transient laminar flow. My geomentry contains single inlet and multiple outlets. At inlet I am using timeVaryingMappedFixedValue boudary condition for the velocity. This is because I have a pulsating inlet velocity. The pressure BC at the inlet is zeroGradient.

At the outlets I have zeroGradient BC for velocity and for pressure I use an expression that applies the pressure as a function of the outlet area. In the pressure formula there is an adjustment factor which is basically a scalar multiple.

Previously, I was running a steady inlet velocity cases and I created a dictionary with READ_IF_MODIFIED option through which, during the iterations, I was chaging the adjustment factor (which in turn adjusted the outlet pressure) till I achived the desired pressure at the inlet.

Now, with pulsatile inlet velocity, I wish to adjust the oulet pressure in each time iteration (prior going to the next time-step) till the desired inlet pressure is achieved . But, I am getting stuck on how to getting this functionality to work.

What I wish to do (in Icofoam) is:
read velocity from constant/boundaryData/inlet/<timefolder>/U >> evaluate the pressure and velocity field >> check the inlet pressure >> if the inlet pressure is not within certain range >> change the adjustment factor at outlet >> recalcualate the new pressure and velocity field >> check the inlet pressure >> if inlet pressure is within desired range >> go to the next time step.


Any help, or leads pointing me in the right direction, will be highly appreaciated
pvpnrao is offline   Reply With Quote

Old   September 10, 2018, 13:25
Default
  #2
Member
 
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10
pvpnrao is on a distinguished road
If I use pimpleFOAM solver.
Then: can I add the bundary condition updating code within the nOuterCorrector loop.


Will the solver then update the boundary condition after each pimple loop?
pvpnrao is offline   Reply With Quote

Old   September 11, 2018, 11:14
Default
  #3
Member
 
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10
pvpnrao is on a distinguished road
In understand this must be trivial issue. But, I have been stuck on this for past two weeks.
pvpnrao 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
Wind tunnel Boundary Conditions in Fluent metmet FLUENT 6 October 30, 2019 13:23
Pressure Inlet Boundary Condition for gas-solid fluidized bed m.uzair Fluent Multiphase 0 January 18, 2018 07:08
Pressure Inlet: question about total pressure I-mech FLUENT 0 July 13, 2014 06:38
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 16:00


All times are GMT -4. The time now is 19:15.