CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Specifying a velocity BC from data

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

LinkBack Thread Tools Display Modes
Old   March 8, 2011, 22:41
Default Specifying a velocity BC from data
New Member
Join Date: Mar 2011
Posts: 10
Rep Power: 6
RygeltheXVI is on a distinguished road

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
type fixedValue;
value uniform (1 0 0);

that I can have something like:
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.

RygeltheXVI is offline   Reply With Quote

Old   March 17, 2011, 13:00
Greg Melling
Join Date: Nov 2010
Posts: 41
Rep Power: 6
grjmell is on a distinguished road
I am also looking to do this. Can someone help?
grjmell is offline   Reply With Quote

Old   January 2, 2012, 12:47
Default try timeVaryingMappedFixedValue
Senior Member
chegdan's Avatar
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 550
Rep Power: 18
chegdan will become famous soon enough
Not sure if you answered this one yet, but you could try the


boundary condition. search through the forum for this one or look at the source in


otherwise, I have a little more complicated method to specify the boundary value. good luck.

Find me on twitter @dancombest and LinkedIn
chegdan is offline   Reply With Quote


bc from data

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
【Help】"Error: Update_Time_Level: invalid data" Chen FLUENT 2 August 24, 2014 07:51
Velocity vector data in OpenFOAM and ParaView mismatch tekky OpenFOAM 9 December 21, 2009 12:26
Cell Data to Point Data Issues mcintoshjamie OpenFOAM Paraview & paraFoam 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

All times are GMT -4. The time now is 05:42.