|
[Sponsors] |
Adjuting oulet pressure till inlet pressure reaches a certain value in timestep |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 8, 2018, 20:33 |
Adjuting oulet pressure till inlet pressure reaches a certain value in timestep
|
#1 |
Member
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10 |
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 |
|
September 10, 2018, 12:25 |
|
#2 |
Member
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10 |
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? |
|
September 11, 2018, 10:14 |
|
#3 |
Member
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10 |
In understand this must be trivial issue. But, I have been stuck on this for past two weeks.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind tunnel Boundary Conditions in Fluent | metmet | FLUENT | 6 | October 30, 2019 12:23 |
Pressure Inlet Boundary Condition for gas-solid fluidized bed | m.uzair | Fluent Multiphase | 0 | January 18, 2018 06:08 |
Pressure Inlet: question about total pressure | I-mech | FLUENT | 0 | July 13, 2014 05:38 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 09:11 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 15:00 |