CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

include #createPhi.H

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 16, 2013, 13:45
Unhappy include #createPhi.H
  #1
New Member
 
Farah Yasmina
Join Date: Mar 2013
Location: France
Posts: 2
Rep Power: 0
bubbleToes is on a distinguished road
Hello world,

I am new to this forum, to OpenFoam, and to C++. So my question is most probably very basic, but I would really appreciate your help.
My geometry is a cube in which I have inserted a cylinder (see attached picture). The cube is a porous medium.

The boundary conditions are : fixed pressure on the bottom face and on the circle (base of cylinder) and zero flux everywhere else.

Now my program gives me the velocity field (U) and the pressure field (P) in all the cube.
I want to calculate the flow (the one either exiting from the circle or entering into the bottom face) which is defined by integral(U.n) on the desired surface, where n is the vector normal to the surface.

so I thought about including #createPhi.H in my createFields.H and then simply using :

patchIntegrate phi <patch name>

but it doesn't work. it says : "Integral of phi over patch uniformPressure[0] = 0" and when I check the file where phi is written down in, I get :

dimensions [0 3 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
uniformPressure
{
type calculated;
value uniform 0;
}
cercle
{
type calculated;
value uniform 0;
}
fixedWalls
{
type calculated;
value uniform 0;
}
}


Any ideas, suggestions..?

Thank you !
Attached Images
File Type: jpg Cas2.jpg (25.5 KB, 10 views)
File Type: jpg boundaries.jpg (10.8 KB, 2 views)
bubbleToes is offline   Reply With Quote

Reply

Tags
flow rate, phi

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam install script Error during paraFoam installation SePe OpenFOAM Installation 10 June 19, 2010 16:15
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 11:46


All times are GMT -4. The time now is 08:19.