|
[Sponsors] |
[swak4Foam] Scale discrete inlet velocity profile with groovyBC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 28, 2010, 12:13 |
Scale discrete inlet velocity profile with groovyBC
|
#1 |
New Member
Join Date: Feb 2010
Posts: 24
Rep Power: 16 |
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 |
|
June 20, 2010, 14:02 |
GroovyBC in cirdulation geometry
|
#2 |
New Member
Joseph
Join Date: Mar 2010
Posts: 14
Rep Power: 15 |
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; } } |
|
|
|
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 02:52 |
simpleFoam: Non-uniform mesh near inlet & outlet causes incorrect velocity profile? | Zaphod'sSecondHead | OpenFOAM Running, Solving & CFD | 0 | January 28, 2015 06:17 |
Strange velocity profile at the inlet for a flow inside a cylindrical pipe | michmich | OpenFOAM Running, Solving & CFD | 0 | July 2, 2012 04:37 |
Export & Import Velocity profile as Inlet | eRzBeNgEl | STAR-CCM+ | 6 | March 26, 2012 06:16 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |