CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] GroovyBC problem in the defining inlet velocity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 1, 2011, 23:32
Question GroovyBC problem in the defining inlet velocity
  #1
New Member
 
Quan Zhou
Join Date: Jul 2010
Posts: 5
Rep Power: 15
iampolaris is on a distinguished road
Hello, every one!
As defining inlet velocity of a two-phase flow bed, in which the voidage is constant, i need to ensure that the inlet mass flux of one phase is equal to the outlet flux from the top patch. Based on the groovyBC utility, i have defined Ua(volvectorField of one phase) in the inlet boundary, as shown below. UsL and UsR are both the inlet boundary.
boundaryField
20 {
21 UsL
22 {
23 type groovyBC;
24 valueExpression "0.5*flux";
25 variables "totalArea@UsL=sum(mag(Sf()));
flux@top=sum(phia())/totalArea/ 929.5;";
26 value uniform ( 0 0 0 );
27 }
28
29 UsR
30 {
31 type groovyBC;
32 valueExpression "0.5*flux";
33 variables "totalArea@UsR=sum(mag(Sf()));
flux@top=sum(phia())/totalArea/ 929.5;";
34 value uniform ( 0 0 0 );
35 }

35 }
........
However, when i ran the case, there were errors displayed on the screen.
"
--> FOAM FATAL IO ERROR:
problem while reading header for object Ua

file: /home/zhouquan/OpenFOAM/zhouquan-1.7.1/run/tutorials/multiphase/twoPhaseEulerFoam/bed3/0/Ua at line 1.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 69.
"
Who can tell me how to do with it?
Thank you!
iampolaris is offline   Reply With Quote

 

Tags
boundary condition u, groovybc, openfoam 1.7.1, twophaseeulerfoam


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
How do I prescribe Average Velocity /Total Inlet Flow for a simple channel problem? skuznet OpenFOAM Pre-Processing 4 February 16, 2022 09:44
3-D parabolic velocity Inlet - Steady state - UDF Turbulent Flow mohibanwar Fluent UDF and Scheme Programming 10 May 18, 2015 10:34
[swak4Foam] Power law inlet velocity using groovyBC aviator OpenFOAM Community Contributions 3 November 13, 2013 10:50
Velocity inlet BC problem Figd84 FLUENT 5 October 16, 2009 01:46
UDF paraboloid velocity inlet Ronak Shah FLUENT 0 June 4, 2003 09:44


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