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

Specifying a velocity BC from data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2011, 22:41
Default Specifying a velocity BC from data
  #1
New Member
 
Join Date: Mar 2011
Posts: 16
Rep Power: 15
RygeltheXVI is on a distinguished road
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
RygeltheXVI is offline   Reply With Quote

Old   March 17, 2011, 13:00
Default
  #2
Member
 
Join Date: Nov 2010
Posts: 41
Rep Power: 16
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
  #3
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
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.
chegdan is offline   Reply With Quote

Reply

Tags
bc from data


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
【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


All times are GMT -4. The time now is 13:12.