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

Scale discrete inlet velocity profile with groovyBC

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2010, 11:13
Default Scale discrete inlet velocity profile with groovyBC
  #1
New Member
 
Join Date: Feb 2010
Posts: 24
Rep Power: 7
cboss is on a distinguished road
Hi,

for an inlet patch with approximately 3000 faces I have a discrete profile for inlet velocity. Putting these values in the U file sets a velocity vector to every single face.

Generally setting an inlet velocity profile for a compressible flow will not exactly give a desired mass-flow. So I tried to scale the velocity field with groovyBC, to get an defined mass-flow.

3000 faces lead to 3 vectors (u, v, w) of length 3000. Trying to read such a vector with groovyBC gives the error:
string "u=(-62.420493,-52.599637,-51.460724,-60.386578,-58.347571,-61.218533,-57.528353,..."
is too long (max. 1024 characters)

Is there a way to scale such long vectors with groovyBC?

Thanks and a nice weekend,

Christoph
cboss is offline   Reply With Quote

Old   June 20, 2010, 13:02
Default GroovyBC in cirdulation geometry
  #2
New Member
 
Joseph
Join Date: Mar 2010
Posts: 14
Rep Power: 6
tamsilian is an unknown quantity at this point
Hi sir/Madam
I simulated circular geometry as polymer fluid in around of rotating screw in extruder. I possess some problem to describe boundary condition for movingWalls. I want to use groovyBC to specify velocity vectors (Ux,Uy,Uz) in movingWalls BC where is depend on places in face. I cannot define velocity function with C++ rules. Could you help me about coding this BC as C++ rules? Content of U file, 0file are presented as follow:
Tnx in avanced your help

class volVectorField;
object U;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
inlet
{
type fixedValue;
value uniform (0 0 10);
}
movingWalls
{
Velocity vectors calculated by (-0.0346*sin(teta) ,0.0346*cos(teta),0.4764) where angle range is between 0 to 2pi.
}
fixedWalls
{
type fixedValue;
value uniform (0 0 0);
}
outlet
{
type zeroGradient;

}

}
tamsilian is offline   Reply With Quote

Reply

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
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
urgent: velocity inlet profile when pipe is 40% fill shubham208011 FLUENT 5 March 24, 2009 11:33
non uniform velocity profile at inlet hiba FLUENT 2 July 25, 2006 03:32
Inlet velocity profile strudl CFX 0 July 18, 2003 09:58
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


All times are GMT -4. The time now is 17:30.