|
[Sponsors] |
March 8, 2011, 22:41 |
Specifying a velocity BC from data
|
#1 |
New Member
Join Date: Mar 2011
Posts: 16
Rep Power: 15 |
Hail,
I am new to openFoam so please forgive my ignorance: I have experimental data for the profile of U on an inlet. I am happy/capable of making a matlab file which will interpolate this data as may be required to match my mesh, and to generate the velocity file for my case. What I don't know is how to specify the velocity profile on the inlet. I imagine that I can edit my velocity file to use fixed values on the inlet patch rather than a uniform value but I don't know how to do so. eg rather than boundaryField { inlet { type fixedValue; value uniform (1 0 0); } ... } that I can have something like: { inlet { type fixedValue; value nonuniform List<vector> <number of faces patch intel is composed of> \\where I grab this \\ value from the boundary file after running blockmesh ( (triplets of experimental/interpolated values in some specific order) ... ) } ... } Am I on the correct track? And how do I determine the order to put the triplets to match the faces to my data? Any help/suggestions would be appreciated. Cheers |
|
March 17, 2011, 13:00 |
|
#2 |
Member
Join Date: Nov 2010
Posts: 41
Rep Power: 16 |
I am also looking to do this. Can someone help?
|
|
January 2, 2012, 12:47 |
try timeVaryingMappedFixedValue
|
#3 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Not sure if you answered this one yet, but you could try the
timeVaryingMappedFixedValue boundary condition. search through the forum for this one or look at the source in ~/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue otherwise, I have a little more complicated method to specify the boundary value. good luck. |
|
Tags |
bc from data |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
【Help】"Error: Update_Time_Level: invalid data" | Chen | FLUENT | 2 | August 24, 2014 08:51 |
Velocity vector data in OpenFOAM and ParaView mismatch | tekky | OpenFOAM | 9 | December 21, 2009 12:26 |
[OpenFOAM] Cell Data to Point Data Issues | mcintoshjamie | ParaView | 2 | November 19, 2009 04:55 |
maintaining a logarithmic velocity distribution | Morten Andersen | CFX | 1 | January 8, 2007 12:37 |
Velocity in Porous medium : HELP! HELP! HELP! | Kali Sanjay | Phoenics | 0 | November 6, 2006 07:10 |