CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

prghPressure BC, make static pressure p time-dependent

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2017, 11:26
Default prghPressure BC, make static pressure p time-dependent
  #1
New Member
 
Join Date: Jun 2017
Posts: 2
Rep Power: 0
of_novice is on a distinguished road
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.
of_novice is offline   Reply With Quote

Old   June 6, 2017, 11:10
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
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.
of_novice likes this.
jherb is offline   Reply With Quote

Old   June 7, 2017, 05:26
Default
  #3
New Member
 
Join Date: Jun 2017
Posts: 2
Rep Power: 0
of_novice is on a distinguished road
Quote:
Originally Posted by jherb View Post
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.
I've actually tried to go that route (creating a new BC), but since I'm completely new to C++ I was hoping that there'd be an easier way. However, since groovyBC looks pretty complicated to work with also, I'll probably continue working on trying to write a new BC. I need to learn C++ anyway. Thanks for the reply!

I might return to this thread for questions about the BC code, by the way
of_novice 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
[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


All times are GMT -4. The time now is 16:07.