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

GradP in channeloodles

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2007, 10:46
Default Hi all, I want to run chann
  #1
New Member
 
Nikolaos Spyrou
Join Date: Mar 2009
Posts: 22
Rep Power: 17
nikos_fb16 is on a distinguished road
Hi all,

I want to run channelOodles with an fixed driving pressure gradient gradP, the Ubar can come as an result of the simulation.

1. My first idea was to manipulate the UEqn in channelOodles.C by writing for example:

dimensionedScalar pforce
(
"pforce",
dimensionSet(0, 1, -2, 0, 0),
-0.005
);

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ sgsModel->divB(U)
==
flowDirection*pforce);

and further exclude the correctionsteps for the driving force in the code.

2. In another thread I read that this source term can be added in Su.

My questions:

1. Which one is the better way to add the source term and why so?

2. If the first way is possible, what do I have to keep in mind except that p is divided by rho? ( Is Multiplication by cell-volume and cell-width in flowdirection not necessary ??)

3. How can I realize the second way? Where do I find Su to add the source term?

I´m new in OpenFoam and I´m very thankful for any help.
nikos_fb16 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
ChannelOodles maka OpenFOAM Bugs 12 February 5, 2009 19:17
[Gmsh] ChannelOodles with gmsh lofty OpenFOAM Meshing & Mesh Conversion 7 April 16, 2008 17:44
GradP in channeloodles nikos_fb16 OpenFOAM Running, Solving & CFD 0 September 11, 2007 05:28
GradP in channeloodles nikos_fb16 OpenFOAM Running, Solving & CFD 1 September 4, 2007 11:52
ChannelOodles in parallel maka OpenFOAM Bugs 3 August 21, 2007 18:30


All times are GMT -4. The time now is 11:40.