CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Specifying a velocity BC from data (https://www.cfd-online.com/Forums/openfoam/85869-specifying-velocity-bc-data.html)

RygeltheXVI March 8, 2011 22:41

Specifying a velocity BC from data
 
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

grjmell March 17, 2011 13:00

I am also looking to do this. Can someone help?

chegdan January 2, 2012 12:47

try timeVaryingMappedFixedValue
 
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.


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