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

Fixed pressure gradient

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Santiago

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2018, 17:19
Default Fixed pressure gradient
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10
gu1 is on a distinguished road
Hi,

I'm using OpenFOAM version 5.0 and would like to know, how I define a fixed pressure gradient for a periodic domain? Unfortunately fvOption - meanVelocityForce is not interesting as it varies the gradient over the simulation.
gu1 is offline   Reply With Quote

Old   October 21, 2018, 21:22
Default
  #2
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 12
pete20r2 is on a distinguished road
You could try jumpCyclic at the patches. It doesn't apply to the field like you asked but hopefully problem will allow the pressure gradient to develop.
pete20r2 is offline   Reply With Quote

Old   October 22, 2018, 03:16
Default
  #3
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16
Santiago is on a distinguished road
Quote:
Originally Posted by gu1 View Post
Hi,

I'm using OpenFOAM version 5.0 and would like to know, how I define a fixed pressure gradient for a periodic domain? Unfortunately fvOption - meanVelocityForce is not interesting as it varies the gradient over the simulation.
Just add a bodyforce to the momentum predictor of piso, like fvOptions
gu1 likes this.
Santiago is offline   Reply With Quote

Old   October 22, 2018, 08:31
Default
  #4
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10
gu1 is on a distinguished road
Quote:
Originally Posted by Santiago View Post
Just add a bodyforce to the momentum predictor of piso, like fvOptions
Thanks for your response.

Unfortunately I am a beginner in programming (C++). Could you help me with that?

Yesterday I tried this issue:

Quote:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ MRF.DDt(U)
+ turbulence->divDevReff(U)
==
fvOptions(U) + beta
);
...but in my head it did not make much sense.
gu1 is offline   Reply With Quote

Reply

Tags
fvoptions, periodic bc, pressure gradient


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
streamwise pressure gradient Ionut G Fluent UDF and Scheme Programming 2 February 21, 2018 12:43
pimpleFoam in OF1612 shows same time step twice in log file shang OpenFOAM Bugs 10 January 24, 2018 11:43
Pressure Gradient in channelOodles sega OpenFOAM Running, Solving & CFD 14 August 12, 2009 07:21
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 03:15
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 23:02


All times are GMT -4. The time now is 03:58.