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

[swak4Foam] Scale discrete inlet velocity profile with groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 16
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: 15
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


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
[swak4Foam] Inlet velocity profile for turbulent pipe flow using swak4Foam zordiack OpenFOAM Community Contributions 5 February 23, 2016 01:52
simpleFoam: Non-uniform mesh near inlet & outlet causes incorrect velocity profile? Zaphod'sSecondHead OpenFOAM Running, Solving & CFD 0 January 28, 2015 05:17
Strange velocity profile at the inlet for a flow inside a cylindrical pipe michmich OpenFOAM Running, Solving & CFD 0 July 2, 2012 03:37
Export & Import Velocity profile as Inlet eRzBeNgEl STAR-CCM+ 6 March 26, 2012 05:16
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 03:09.