|
[Sponsors] |
prghPressure BC, make static pressure p time-dependent |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 5, 2017, 11:26 |
prghPressure BC, make static pressure p time-dependent
|
#1 |
New Member
Join Date: Jun 2017
Posts: 2
Rep Power: 0 |
Hi,
I'm new to CFD and OF (v. 4.1) as well as to C++. I'm using the twoPhaseEulerFoam solver to model a pressure driven flow of air and a liquid through a simple geometry by letting the inlet static pressure be higher than the outlet static pressure. In the prgh input file, I use the prghPressure BC for inlet and outlet: inlet { type prghPressure; p uniform 2e5; outlet { type prghPressure; p uniform 1e5; This works well and gives a flow that looks realistic to my untrained eyes. However, now I want the inlet static pressure p to be time dependent, where it increases linearly from 1e5 up to 2e5. I'm thinking that the uniformFixedValue BC could be used somehow, but if I replace prghPressure with this BC, this fixes prgh instead of p, which gives the wrong solution. Perhaps I should also mention that in the input file p (which I don't quite understand the need for if p is already given in the prgh file), I use the default BC:s for the fluidisedBed tutorial: inlet { type calculated; value $internalField; } and outlet { type calculated; value $internalField; } Any help would be highly appreciated. |
|
June 6, 2017, 11:10 |
|
#2 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
I think you have to create a new boundary condition (e. g. name it prghPressureTimeDependent) which adds the capability of uniformFixedValue BC to the prghPressure BC. Look at the differences between fixedValue and uniformFixedValue to see what you have to add to prghPressureTimeDependent.
Another possibility might be to use groovyBC. |
|
June 7, 2017, 05:26 |
|
#3 | |
New Member
Join Date: Jun 2017
Posts: 2
Rep Power: 0 |
Quote:
I might return to this thread for questions about the BC code, by the way |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 21:00 |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 5, 2023 23:48 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 05:28 |
UDF of time dependent pressure read value from a text file | zhichaozhao | Fluent UDF and Scheme Programming | 0 | November 4, 2016 10:19 |
Time dependent pressure in a zone | artemiss1984 | Main CFD Forum | 0 | October 6, 2016 08:00 |