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

Pressure profile as internal field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2019, 03:44
Default Pressure profile as internal field
  #1
Member
 
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9
Chris123 is on a distinguished road
Hi there,
is it possible to set the internalfield with nonuniform values, for example
I want to set the internalfield for pressure with pressure values which variing inside the domain (over height).So more or less to set
a profile (height vs pressure) as the internalfield for pressure like this:

internalField nonuniform List<scalar>

27
(
0 101300
10 101173
50 100669
100 100042
150 99420
200 98801
250 98186
300 97574
350 96967
400 96363
450 95764
500 95167
600 93986
700 92820
800 91668
900 90530
1000 89407
1200 87201
1400 85050
1600 82952
1800 80906
)

;
But this does not work, here OF complains that not all (Millions) of cells are filled. Any idea how to do this, if possible?
Chris123 is offline   Reply With Quote

Old   May 3, 2019, 23:01
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
Yes, I'm sure there are many possible ways, but the first thing I thought of is funkySetFields : https://openfoamwiki.net/index.php/C...Foam#Utilities.

Caelan
clapointe is offline   Reply With Quote

Old   May 6, 2019, 02:38
Default
  #3
Member
 
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9
Chris123 is on a distinguished road
Dear Caelan,
thanks for your help, but I think funkysetfields isn't suitable because how can you apply the Pressure profile for the complete domain by using this tool?
But maby you can show me by an example?
Best regards,
Chris
Chris123 is offline   Reply With Quote

Old   May 6, 2019, 03:08
Default
  #4
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
With funkySetFields you can set initialize the field with values calculated with an arbitrary expression -- is this not what you want? There are plenty of examples online.

Caelan
clapointe 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
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC Endel OpenFOAM Running, Solving & CFD 3 September 11, 2014 16:29
Modifying pressure field in CFX akultane CFX 2 January 13, 2010 14:42
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


All times are GMT -4. The time now is 23:43.