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

prescribing inlet for OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2015, 15:19
Default prescribing inlet for OpenFOAM
  #1
Member
 
Mike
Join Date: Apr 2011
Location: Canada
Posts: 83
Rep Power: 15
saeedi is on a distinguished road
Hi,

I recently started using OpenFoam. I want to learn how we can prescribe a profile at the inlet boundary of the domain?

Or, if needed, can we have time dependent pre-generated data (from a precursor simulation) and feed them to the inlet at different times?


Thanks a lot for your help.
saeedi is offline   Reply With Quote

Old   July 2, 2015, 09:30
Default
  #2
Senior Member
 
Join Date: Jan 2015
Posts: 150
Rep Power: 11
Svensen is on a distinguished road
For the time variation of the inlet you can use the following form:
Code:
uniformValue     tableFile;       
tableFileCoeffs       
{       
    fileName     "$FOAM_CASE/myDataFile"       
    outOfBounds  clamp;       
}
it is written more detailed here: http://www.openfoam.org/version2.1.0...conditions.php

For generating a parabolic profile you can use groovyBC library. The information and a short example of creating such profile are presented here: http://openfoamwiki.net/index.php/Contrib_groovyBC
Svensen is offline   Reply With Quote

Old   July 2, 2015, 11:55
Default
  #3
Member
 
Mike
Join Date: Apr 2011
Location: Canada
Posts: 83
Rep Power: 15
saeedi is on a distinguished road
Thank you very much for your reply.

Also, In the simpler case that I want to just prescribe a profile, can I just prescribe a table and ask it to read it and use it during the entire simulation?
saeedi is offline   Reply With Quote

Old   July 2, 2015, 12:28
Default
  #4
Senior Member
 
Join Date: Jan 2015
Posts: 150
Rep Power: 11
Svensen is on a distinguished road
you need to study a documentation of the groovyBC library. I never used this library in my practice... Maybe someone else could help you
Svensen is offline   Reply With Quote

Old   August 14, 2015, 16:37
Default
  #5
Member
 
Mike
Join Date: Apr 2011
Location: Canada
Posts: 83
Rep Power: 15
saeedi is on a distinguished road
Hi Svensen,

Following our previous conversation on BC, I now need to apply an inlet BC that uses data from a table. Could you please give me some detailed explanation if you have done it before.

The webpage you mentioned does not say anything more that what you already posted which is :

uniformValue tableFile;
tableFileCoeffs
{
fileName "$FOAM_CASE/myDataFile"
outOfBounds clamp;
}

I basically want to know:

What should be the format of that table (should it have two columns like Y and U or any thing else)?

Does it have to have the exact same number of rows as the number of grid points in the vertical direction or not and it can do the interpolation?

Any other useful tip?

Thanks a lot
saeedi is offline   Reply With Quote

Old   September 8, 2015, 12:21
Default
  #6
Senior Member
 
Join Date: Jan 2015
Posts: 150
Rep Power: 11
Svensen is on a distinguished road
A file content looks like the following:
(
(0 (0 0 0.205969))
(0.001 (0 0 0.206249))
(0.002 (0 0 0.206554))
(0.003 (0 0 0.206883))
...
);

So, you first put the time value, then three component of velocity.
In a "classical" OpenFOAM this file specifies the same velocity in all points of your patch. For example, all points of patch will have a velocity vector (0 0 0.205969) at the t=0.
Svensen 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
setting the correct format of nonuniform List<vector> for inlet in 0 Folder cfdonline2mohsen OpenFOAM Running, Solving & CFD 8 July 18, 2019 09:03
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 05:58
velocity inlet and ideal gas simultaneously-what's wrong? preetam69 FLUENT 0 September 28, 2013 05:51
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 19:42
Diffusion component at inlet Balaji FLUENT 2 August 8, 2005 08:37


All times are GMT -4. The time now is 23:59.