|
[Sponsors] |
April 16, 2013, 13:45 |
include #createPhi.H
|
#1 |
New Member
Farah Yasmina
Join Date: Mar 2013
Location: France
Posts: 2
Rep Power: 0 |
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 ! |
|
Tags |
flow rate, phi |
|
|
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 |