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

Profile data - (x y z ux uy uz) at Inlet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2013, 00:13
Default Profile data - (x y z ux uy uz) at Inlet
  #1
New Member
 
Sagnik
Join Date: Oct 2012
Posts: 28
Rep Power: 14
sagnikmazumdar is on a distinguished road
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
Attached Files
File Type: txt Inlet_Flow_Condition.txt (69.2 KB, 32 views)
sagnikmazumdar is offline   Reply With Quote

Old   January 19, 2013, 08:41
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sagnikmazumdar View Post
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)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 19, 2013, 11:18
Default
  #3
New Member
 
Sagnik
Join Date: Oct 2012
Posts: 28
Rep Power: 14
sagnikmazumdar is on a distinguished road
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.
sagnikmazumdar is offline   Reply With Quote

Old   January 19, 2013, 20:05
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sagnikmazumdar View Post
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.
fumiya likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply


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
Pulsatile profile at inlet Josyula Fluent UDF and Scheme Programming 4 May 6, 2012 11:09
How to assign the inlet B.C using a bunch of data set for an unsteady problem? ali8500 CFX 3 March 28, 2012 19:41
Pressure Inlet Boundary Condition Profile arapha FLUENT 0 April 4, 2011 17:23
NON-UNIFORM VELOCITY INLET BOUNDARY PROFILE MURAT Main CFD Forum 0 December 30, 2003 22:08
create logarithmic wind profile for inlet Murat Main CFD Forum 0 December 30, 2003 01:45


All times are GMT -4. The time now is 01:08.