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

Turbulent Inflow Generator for LES

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By marc.immer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2016, 07:00
Default Turbulent Inflow Generator for LES
  #1
New Member
 
Marc
Join Date: Sep 2012
Posts: 17
Rep Power: 14
marc.immer is on a distinguished road
Hi!

Based on the work of
* Klein, M., Sadiki, A., Janicka, J.: A digital filter based generation of inflow data for spatially developing direct numerical simulation or large eddy simulation
and
* Xie, ZT, and Castro, IP (2008): Efficient Generation of Inflow Conditions for Large-Eddy Simulation of Street-Scale Flows, Flow, Turbulence and Combustion

I have further developed the filtered noise method for turbulence inflow generation, and made a comparison with wind tunnel PIV data.

The code is available on Github: https://github.com/ETH-BuildingPhysi...-OFTools-2.3.X

The validation and comparison is available in my Doctoral Thesis:

Immer, Marc Christian. Time-resolved measurement and simulation of local scale turbulent urban flow. ETH-Zürich (2016). http://dx.doi.org/10.3929/ethz-a-010657618
http://e-collection.library.ethz.ch/...h-49140-02.pdf

Please feel free to fork the repository and further develop the code!
A citation to my thesis is appreciated, and link to the github repository

Cheers!
Marc
amolrajan and kooki_13 like this.
marc.immer is offline   Reply With Quote

Old   May 19, 2017, 14:46
Default fantastic
  #2
New Member
 
kiyo matsui
Join Date: Apr 2015
Posts: 4
Rep Power: 11
kiyo.matsui is on a distinguished road
Hi Marc,

First of all thank-you for releasing this code, also, congratulations on your thesis, it was a really good read.

I have used this inflow generator and ran some test cases of my own.

Overall it worked great.

Only issues I had were pressure spikes at the inlet which I know is an issue mentioned by Xie and Castro. I read that in your code you seem to have fixed this issue, but it may be that I am implementing something wrong.

A few questions: any tips for initialising the LES domain in OpenFOAM?
and do you have any tips on getting inflow statistics for "real" to scale wind profiles other than running the SOWFA pre simulation?

Attached is a "wake interfering flow" case i did.

Again, thanks very much for releasing the code, it is fantastic, and with little modification I got it to work for OF4.

Kiyo
Attached Images
File Type: png WIF.png (187.4 KB, 342 views)
kiyo.matsui is offline   Reply With Quote

Old   May 20, 2017, 10:26
Default
  #3
New Member
 
Join Date: Jan 2016
Posts: 15
Rep Power: 10
SH_Zhong is on a distinguished road
Quote:
Originally Posted by kiyo.matsui View Post
Hi Marc,

First of all thank-you for releasing this code, also, congratulations on your thesis, it was a really good read.

I have used this inflow generator and ran some test cases of my own.

Overall it worked great.

Only issues I had were pressure spikes at the inlet which I know is an issue mentioned by Xie and Castro. I read that in your code you seem to have fixed this issue, but it may be that I am implementing something wrong.

A few questions: any tips for initialising the LES domain in OpenFOAM?
and do you have any tips on getting inflow statistics for "real" to scale wind profiles other than running the SOWFA pre simulation?

Attached is a "wake interfering flow" case i did.

Again, thanks very much for releasing the code, it is fantastic, and with little modification I got it to work for OF4.

Kiyo
Hi Kiyo:

I am very interested in this code. Can you share your experiences in the modification to work in OF4. Many thanks!

Zhong
SH_Zhong is offline   Reply With Quote

Old   May 22, 2017, 07:53
Default
  #4
New Member
 
Marc
Join Date: Sep 2012
Posts: 17
Rep Power: 14
marc.immer is on a distinguished road
Dear Kiyo,

thank you, great to hear that you can use the code.

Sadly, I can't help you that much with specific problems.
For the pressure spikes, I just use a simple mass flow correction, that will eliminate large global pressure fluctiations in the domain.
The relevant code is in void Foam::inflowGenerator::updateCoeffs() after the comment //Mass flux correction.

To reducte the correction magnitude, make sure your domain is large enough to fit a multiple of the biggest scales. The outer domain can be quite coarse.

Please, when you modify the code, always fork from github, then commit your changes to the forked repository (https://help.github.com/articles/fork-a-repo/). This way, future researchers (like Zhong) can benefit from your work. DO NOT modify the code WITHOUT using git, and don't send code around in zip files etc. Use github

Good luck with your work,

Kind Regards,
Marc
marc.immer is offline   Reply With Quote

Old   June 6, 2017, 06:47
Default
  #5
New Member
 
kiyo matsui
Join Date: Apr 2015
Posts: 4
Rep Power: 11
kiyo.matsui is on a distinguished road
Hi Marc,

I agree, I will use github, hopefully sometime this week. It's a tiny change, I feel a bit guilty to call my change a contribution as its such a small change but am honored . On a side note, do you have any advice to contributors who want to verify any modified code?. I simply ran the example case and plotted the hairpin vorticies.

Kiyo
kiyo.matsui is offline   Reply With Quote

Old   June 6, 2017, 10:15
Default
  #6
New Member
 
Join Date: Jan 2016
Posts: 15
Rep Power: 10
SH_Zhong is on a distinguished road
Hi Marc,
Thank you for sharing this code. I have some question about how to use the code. In your phd thesis, the data in the constant/boundaryData/inlet/Lx,Ly,Lz,R,ref are collected in your experiment, and you only need to give two lines points data to generate the turbulence. So if I do not have any experimental data, how can give the boundaryData. For example, to generate a isotropic turbulence.

Many thanks
Zhong
SH_Zhong is offline   Reply With Quote

Old   July 3, 2017, 07:42
Default Sorry it took some time
  #7
New Member
 
kiyo matsui
Join Date: Apr 2015
Posts: 4
Rep Power: 11
kiyo.matsui is on a distinguished road
Sorry it took some time, the quick fix is found in this link.

https://github.com/kiyoMatsui/ETH-OFTools-2.3.X

I hope this is ok, otherwise please let me know.

Kiyo
kiyo.matsui is offline   Reply With Quote

Old   February 23, 2018, 05:27
Default
  #8
New Member
 
Join Date: Mar 2013
Posts: 24
Rep Power: 13
Slanth is on a distinguished road
Hi Marc,

Thanks very much for the excellent work. I have several questions, and I am wondering if you can help me.

I am trying to use the FilteredNoiseInflowGenerator. But I only have the experimental mean velocity file at the inlet. I also know that the turbulent intensity is about 5% and the lenght scale is about 3.5mm.
(1) I am wondering how can set the R, and L in your code?
(2) Can I use codeStream with your code for the ref (Mean velocity)? For exmaple
Slanth is offline   Reply With Quote

Old   December 19, 2018, 04:35
Default
  #9
New Member
 
Join Date: Nov 2018
Posts: 2
Rep Power: 0
openfoam-huster is on a distinguished road
Hi SH_Zhong,
I have the question with you.Have you solved it?
openfoam-huster is offline   Reply With Quote

Old   December 19, 2018, 04:36
Default
  #10
New Member
 
Join Date: Nov 2018
Posts: 2
Rep Power: 0
openfoam-huster is on a distinguished road
Hi Slanth,
I have the question with you.Have you solved it?
openfoam-huster 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
Problem with divergence TDK FLUENT 13 December 14, 2018 07:00
Question - pipe flow simulation to generate turbulent inflow conditions Dan1788 Main CFD Forum 2 December 23, 2014 18:50
k-w turbulent model and inflow boundary conditions vaina74 Main CFD Forum 6 April 26, 2010 07:03
Turbulent Inflow Conditions ali OpenFOAM Running, Solving & CFD 2 July 9, 2009 10:55
How to generate a turbulent inflow for wind turbine at inlet rizhang CFX 1 June 30, 2009 17:21


All times are GMT -4. The time now is 12:30.