|
[Sponsors] |
May 16, 2014, 06:19 |
Coded BC: parabolic inlet
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Dear Foamers,
I am trying to insert a coded BC in my U-BC-file. What I wanna do is to provide a parabolic inlet to my problem. I do something like: Code:
inlet { type codedFixedValue; value uniform (0 -1 0); redirectType parabolicInlet; code #{ variables "Vm=2;yp=pos().y;zp=pos().z+0.005;h=-max(pts().z);a=-Vm/(h*h);b=Vm;"; fractionExpression "1"; valueExpression "vector(a*((yp*yp)+(zp*zp))+b,0,0)"; #}; } Any idea about how to solve this? Thanks a lot, Samuele |
|
May 16, 2014, 06:25 |
|
#2 |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15 |
Have you tried with the groovyBC ? If not then I guess it can serve your demand easily.
|
|
May 16, 2014, 06:28 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Actually,
the point is that - if I am not wrong - groovyBC goes along with swak4Foam and I am running a simulation on a PC where I can not compile swak4Foam, that's why I was trying to use the codedFixedValue. I think it should be able to do what I mean, isn't it? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parabolic inlet velocity profile | msrinath80 | OpenFOAM Running, Solving & CFD | 157 | February 6, 2020 06:13 |
UDF profile: Fluent method for coupling inlet and outlet | I-mech | Fluent UDF and Scheme Programming | 0 | May 10, 2014 11:36 |
How can I fix a local coordinate system to the inlet | phys-zephyr | STAR-CCM+ | 3 | May 8, 2014 06:46 |
Inlet Velocity in CFX | aeroman | CFX | 12 | August 6, 2009 19:42 |
Parabolic Velocity Inlet | selim | CFX | 3 | October 28, 2007 02:55 |