|
[Sponsors] |
June 30, 2015, 15:19 |
prescribing inlet for OpenFOAM
|
#1 |
Member
Mike
Join Date: Apr 2011
Location: Canada
Posts: 83
Rep Power: 15 |
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. |
|
July 2, 2015, 09:30 |
|
#2 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
For the time variation of the inlet you can use the following form:
Code:
uniformValue tableFile; tableFileCoeffs { fileName "$FOAM_CASE/myDataFile" outOfBounds clamp; } 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 |
|
July 2, 2015, 11:55 |
|
#3 |
Member
Mike
Join Date: Apr 2011
Location: Canada
Posts: 83
Rep Power: 15 |
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? |
|
July 2, 2015, 12:28 |
|
#4 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
you need to study a documentation of the groovyBC library. I never used this library in my practice... Maybe someone else could help you
|
|
August 14, 2015, 16:37 |
|
#5 |
Member
Mike
Join Date: Apr 2011
Location: Canada
Posts: 83
Rep Power: 15 |
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 |
|
September 8, 2015, 12:21 |
|
#6 |
Senior Member
Join Date: Jan 2015
Posts: 150
Rep Power: 11 |
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. |
|
|
|
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 |