CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Profile data - (x y z ux uy uz) at Inlet (https://www.cfd-online.com/Forums/openfoam/111982-profile-data-x-y-z-ux-uy-uz-inlet.html)

sagnikmazumdar January 18, 2013 23:13

Profile data - (x y z ux uy uz) at Inlet
 
1 Attachment(s)
Hi,

I wonder if there is a way to use profile data as inlet conditions in OpenFOAM. I mean I have a .dat file showing (x y z ux uy uz k epsilon) values at different points at the inlet which have come from very fine resolution measurements. I have attached an example velocity file as reference. I want to input this as boundary condition to a OpenFOAM simulation. I wonder how to do it. Would groovyBC work ?

Thanks for all the help.

Sagnik

gschaider January 19, 2013 07:41

Quote:

Originally Posted by sagnikmazumdar (Post 402796)
I wonder if there is a way to use profile data as inlet conditions in OpenFOAM. I mean I have a .dat file showing (x y z ux uy uz k epsilon) values at different points at the inlet which have come from very fine resolution measurements. I have attached an example velocity file as reference. I want to input this as boundary condition to a OpenFOAM simulation. I wonder how to do it. Would groovyBC work ?

I'm afraid groovyBC won't work for you as it only supplies 1D-lookups (so something like "lookupRadial(r)*lookupTangential(alpha)" can work) but no general f(x,y,z) like you need it (it is not completely trivial to implement and I haven't needed it yet for a project. But of course: if someone wants to implement it ... I accept contributions)

But timeVaryingMapped might work for you (although you probably will have to reformat the data)

sagnikmazumdar January 19, 2013 10:18

Thanks for the information. It seems for time varying condition we can only mention (time Ux Uy Uz) ! Is there a way to input location details as well like (time x y z Ux Uy Uz) ! Thanks again.

gschaider January 19, 2013 19:05

Quote:

Originally Posted by sagnikmazumdar (Post 402854)
Thanks for the information. It seems for time varying condition we can only mention (time Ux Uy Uz) ! Is there a way to input location details as well like (time x y z Ux Uy Uz) ! Thanks again.

Please read carefully. I said timeVaryingMapped!!!

Quote from the comment in the source file
Code:

    Foam::timeVaryingMappedFixedValueFvPatchField

    Interpolates from a set of supplied points in space and time. Supplied
    data in constant/boundaryData/<patchname>:
        - points : pointField with locations
        - ddd    : supplied values at time ddd
    Points need to be more or less on a plane since get triangulated in 2D.



All times are GMT -4. The time now is 02:52.