CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

include #createPhi.H

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2013, 12:45
Unhappy include #createPhi.H
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;

type calculated;
value uniform 0;
type calculated;
value uniform 0;
type calculated;
value uniform 0;

Any ideas, suggestions..?

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


flow rate, phi

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
OpenFoam install script Error during paraFoam installation SePe OpenFOAM Installation 10 June 19, 2010 15:15
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46

All times are GMT -4. The time now is 00:01.