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

Inlet BC for LES

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2010, 13:13
Default
  #41
Member
 
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 16
N. A. is on a distinguished road
Hi Frnasje, Eugene and others,

Are there any guideline of selecting the offset plane value, for example how far from the inlet?

Thanks,
Nir
N. A. is offline   Reply With Quote

Old   November 10, 2010, 11:51
Default
  #42
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Hello Andrea,

The definition you show here, from your ./constant/polyMesh/boundary file, is fine to use with the nearestCell keyword.

If you want to use the nearestPatchFace keyword, you will have to specify a sample patch to the samplePatch switch, instead of none.

I also understand that there is a bug under investigation associated with the use of the nearestFace keyword.

Let me know if this solves your problem.

Kind regards,

Francois.

Quote:
Originally Posted by And View Post
Dear Francois,

thank you very much for your help.

Now I'm confident about the meaning of the offset value. Anyway, only the sample mode "nearestCell" seems working for my application. NEARESTFACE and NEARESTPATCHFACE model are not working. I'm not sure of what I'm doing wrong,

Regards

Andrea

Code:
inlet
{
        type                 directMappedPatch;
        nFaces             1500;
        startFace          2486476;
        sampleMode      nearestCelll;
        sampleRegion    region0;
        samplePatch      none;
        offset               (0.081 0 0);
}
calf.Z likes this.
Fransje is offline   Reply With Quote

Old   November 10, 2010, 12:00
Default
  #43
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Yes, there are.

You might want to read the following papers:
  • Lund et al (1998):
    Generation of Turbulent Inflow Data for Spatially-Developing Boundary Layer Simulations
  • Keating, Piomelli et al (2004):
    A priori and a posteriori tests of inflow conditions for LES
  • Liu and Pletcher (2006):
    Inflow conditions for the large eddy simulation of turbulent boundary layers: A dynamic recycling procedure
  • Ferrante and Elghobashi (2004):
    A robust method for generating inflow conditions for direct simulations of spatially-developing turbulent boundary layers
And you might also want to consider the original papers by Spalart etal.

I hope this helps, and good luck.

Kind regards,

Francois.

Quote:
Originally Posted by N. A. View Post
Hi Fransje, Eugene and others,

Are there any guideline of selecting the offset plane value, for example how far from the inlet?

Thanks,
Nir
calf.Z likes this.
Fransje is offline   Reply With Quote

Old   November 10, 2010, 12:57
Exclamation Update to the use of nearestFace
  #44
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Update to the use of nearestFace

The bug related to the use of the nearestFace keyword has been fixed in the 1.7.x release.

If you are using the 1.7.x version of OpenFOAM, go to the ./OpenFOAM-1.7.x map, and enter:
Code:
git pull
to download the latest updates. Then recompile by using:
Code:
./Allwmake
Kind regards,

Francois.
Fransje is offline   Reply With Quote

Old   November 11, 2010, 05:21
Default
  #45
And
New Member
 
Andrea Aprovitola
Join Date: Nov 2009
Posts: 16
Rep Power: 17
And is on a distinguished road
Dear Francois,

I'm very grateful to you for your support, it s all clear to me and my application is working now

Kind Regards,

Andrea


Quote:
Originally Posted by Fransje View Post
Update to the use of nearestFace

The bug related to the use of the nearestFace keyword has been fixed in the 1.7.x release.

If you are using the 1.7.x version of OpenFOAM, go to the ./OpenFOAM-1.7.x map, and enter:
Code:
git pull
to download the latest updates. Then recompile by using:
Code:
./Allwmake
Kind regards,

Francois.
And is offline   Reply With Quote

Old   November 30, 2010, 09:31
Default free planar jet
  #46
Member
 
Yashar Afarin
Join Date: May 2010
Location: Toronto- Canada
Posts: 40
Rep Power: 16
yashar.afarin is on a distinguished road
Send a message via Skype™ to yashar.afarin
Hi

I am using pisofoam and I want to model a three dimentional free planar jet with large eddy simulation. the co-flow velocity in my case is weak compared to the jet centerline velcity resulting in a strong shear layer at the jet edge.

1- can I use direct map method for turbulet inlet generation?
2- does any body use priodic boundary condition in OF?

I really appreciate any help !!
sincerely yours
yashar.afarin is offline   Reply With Quote

Old   November 30, 2010, 11:45
Default
  #47
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Dear Yashar,

Yes, you can use DirectMapped method for turbulent flow generation. That's what is was developed for. Whether you can apply it to your jet flow case is an other question.
Maybe you can get away with a random turbulent inlet, as your case is somewhat similar to a flow over a backward facing step, for which the quality of the initial turbulence if of less importance. You should refer to relevant literature over the influence of the quality of turbulent information at the inlet for different flow cases. Think of Lund etal 1998, Keating and Piomelli 2004, etc.

Yes, cyclic BC are used in OpenFOAM. Have a look at the channelFoam tutorial.

Kind regards,

Francois.
Fransje is offline   Reply With Quote

Old   November 30, 2010, 12:01
Default
  #48
Member
 
Yashar Afarin
Join Date: May 2010
Location: Toronto- Canada
Posts: 40
Rep Power: 16
yashar.afarin is on a distinguished road
Send a message via Skype™ to yashar.afarin
Dear Francois,

I am really grateful for you guidance.
I will study those papres.

sincerely yours,

Yashar
yashar.afarin is offline   Reply With Quote

Old   January 10, 2011, 04:19
Default
  #49
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
Dear Fransje,
I use directMappedVelocityFlux to recycle the velocity field, but the flow field can not develop at all. After some steps, the velocity in the whole field is nearly zero.

I use "pisoFoam" solver, Smagorinsky SGS model.

I want to know how to make flow field develop using directMapped method ?

or directMapped method must be used for channelFoam ?

Thanks.
panda60 is offline   Reply With Quote

Old   January 10, 2011, 10:34
Default
  #50
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
I run the "pitzDailyDirectMapped" tutorials. I initialize the flow field using Ux=10m/s. But after some time steps, the Ux value become very small.
I think the velocity was not recycled at all.
Anyone can help me ?

The left figure is initial data, the right is some time steps later.
Attached Images
File Type: jpg begin.jpg (47.8 KB, 68 views)
File Type: jpg late.jpg (60.8 KB, 56 views)
panda60 is offline   Reply With Quote

Old   January 11, 2011, 09:24
Default
  #51
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Dear Jiang,

What is the boundary condition you are using? directMappedVelocityFlux, or directMapped(FixedValue)?

Kind regards,

Francois.
Fransje is offline   Reply With Quote

Old   January 12, 2011, 04:44
Default
  #52
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
Dear Fransje,

I am sorry, I haven't explain clearly.
I run the case in the directory "tutorials/........./incompressible/les/pitzDirectMapped".
I have tried 3 kinds of inflow conditions:
1. directMapped (nearestCell).
2. directMapped (nearestFace).
3. directMappedVelocityFlux (nearestFace).

I use the solver "pisoFoam".The following is the detailed information.
panda60 is offline   Reply With Quote

Old   January 12, 2011, 04:53
Default
  #53
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
1. directMapped (nearestCell).

U file:
boundaryField
{
inlet
{
type directMapped;
setAverage false;
average (10 0 0);
value uniform (10 0 0);
}

boundary file:
(
inlet
{
type directMappedPatch;
nFaces 30;
startFace 27238;
sampleMode nearestCell;
sampleRegion region0;
samplePatch none;
offset (0.05 0 0);
}

changeDictionaryDict file:
dictionaryReplacement
{
boundary
{
inlet
{
type directMappedPatch;
offset ( 0.05 0 0 );
sampleRegion region0;
sampleMode nearestCell;
samplePatch none;
}
}
}

the following is initial concours and 1000 time steps later
Attached Images
File Type: jpg directMapped_nearestCell_initial.jpg (84.8 KB, 87 views)
File Type: jpg directMapped_nearestCell_final.jpg (91.1 KB, 84 views)
panda60 is offline   Reply With Quote

Old   January 12, 2011, 05:00
Default
  #54
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
2. directMapped (nearestFace).
U file:
boundaryField
{
inlet
{
type directMapped;
setAverage false;
average (10 0 0);
value uniform (10 0 0);
}

boundary file:
inlet
{
type directMappedPatch;
nFaces 30;
startFace 27238;
sampleMode nearestFace;
sampleRegion region0;
samplePatch none;
offset (0.05 0 0);
}

changeDictionaryDict file:
dictionaryReplacement
{
boundary
{
inlet
{
type directMappedPatch;
offset ( 0.05 0 0 );
sampleRegion region0;
sampleMode nearestFace;
samplePatch none;
}
}
}

the following is initial concours and 1000 time steps later.
Attached Images
File Type: jpg directMapped_nearestFace_initial.jpg (83.0 KB, 35 views)
File Type: jpg directMapped_nearestFace_final.jpg (69.0 KB, 41 views)
panda60 is offline   Reply With Quote

Old   January 12, 2011, 05:07
Default
  #55
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
3. directMappedVelocityFlux (nearestFace).
U file:
boundaryField
{
inlet
{
type directMappedVelocityFlux;
value uniform (10 0 0);
phi phi;
}

boundary file:
type directMappedPatch;
nFaces 30;
startFace 27238;
sampleMode nearestFace;
sampleRegion region0;
samplePatch none;
offset (0.05 0 0);
}

changeDictionaryDict file:
dictionaryReplacement
{
boundary
{
inlet
{
type directMappedPatch;
offset ( 0.05 0 0 );
sampleRegion region0;
sampleMode nearestFace;
samplePatch none;
}
}
}
the following is initial concours and 1000 time steps later.
panda60 is offline   Reply With Quote

Old   January 12, 2011, 05:13
Default
  #56
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
So I think the method "nearestCell" is correct, but the "nearestFace" method in new version 1.7.x is still wrong. I just updated to the version 1.7.x last month(2010.12.20).

Because only directMappedVelocityFlux can be used to modify to realise rescaling method, So the "nearestFace" is important for me. Could you give me some suggestions ? Thanks.
panda60 is offline   Reply With Quote

Old   January 12, 2011, 09:43
Default
  #57
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Dear Jiang,

To be honest, I find surprising that you get any results at all with the settings you gave me.
  1. Are you sure you didn't use previous velocity information as a starting condition for a new run? Like running a simulation, and using the last result as the starting time step of your new simulation.
    As a check, do you have internalField uniform (0 0 0) in every ./0/U file?
  1. Are you certain you did not specify setAverage=true in one of your U files?

Kind regards,

Francois.
Fransje is offline   Reply With Quote

Old   January 12, 2011, 10:35
Default
  #58
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
  1. Are you sure you didn't use previous velocity information as a starting condition for a new run? Like running a simulation, and using the last result as the starting time step of your new simulation.
    As a check, do you have internalField uniform (0 0 0) in every ./0/U file?
Yes, I am sure. For these 3 cases, I use exactly the same initial field. The inital field was set using U=10m/s through "potentialFoam".
  1. Are you certain you did not specify setAverage=true in one of your U files?
As you see above, I didn't specify setAverage=true in U files. All my information are directly copied from my case files.

And the nearestCell method shows correct result, but nearestFace method shows wrong result. I wait for nearestFace nearly 1 year. But it is a pity, I can't pass the example in my computer even using new version 1.7.x. How about your case ? could you give me some information about your case ?
Thanks.
panda60 is offline   Reply With Quote

Old   January 12, 2011, 11:17
Default
  #59
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Dear Jiang,

I definitely cannot reproduce your results using the method you described. As I understand it, you applied the following steps to get your results:
  1. You took the ./run/tutorials/incompressible/pisoFoam/les/pitzDailyDirectMapped tutorial
  2. You ran blockMesh, and changeDictionary, with an offset of 0.05 instead of 0.0495, and nearestCell or nearestFace, as needed
  3. You changed, in the ./0/U file, the internalField information to internalField uniform (10 0 0); and the inlet information to setAverage false;
  4. You ran potentialFoam, after adding the necessary lines to ./system/fvScheme and ./system/fvSolution
  5. You ran pisoFoam for 1000 time steps with the standard pitzDailyDirectMapped settings
Did I miss any steps?

Kind regards,

Francois.
Fransje is offline   Reply With Quote

Old   January 12, 2011, 11:55
Default
  #60
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
Dear Francois,

Yes, I did like this. Is there something which are not appropriate in my setting ?

Thanks.
panda60 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
velocity inlet vs pressure inlet cheong FLUENT 6 April 9, 2011 04:07
subsonic inlet or supersonic inlet? mali CFX 0 November 28, 2008 21:57
about inlet bc ivanyao OpenFOAM Running, Solving & CFD 0 November 25, 2008 04:17
reversed flow at velocity inlet / mass flow inlet ib FLUENT 1 March 26, 2007 14:11
How to set smoke inlet speed on inlet Adam FLUENT 0 October 4, 2005 09:18


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