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

Smirnov inlet Boundary condition for LES

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2021, 04:59
Default Smirnov inlet Boundary condition for LES
  #1
Member
 
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6
jnanabrao is on a distinguished road
Dear Foamers,
I need to implement a very specific velocity boundary condition for my LES simulation. The velocity should be decomposed into a mean velocity obtained from a RANS simulation and velocity fluctuations that are calculated as a Fourier sum. The velocity fluctuations should be as described by Smirnov(2001) This boundary condition is different to the boxTurb method implemented in OpenFOAM, in that, in Smirnov's method an orthogonal transformation and scaling of the Fourier amplitudes is performed based on the Reynold's stress calculated from a previous RANS simulation. Can anyone guide me as to where I could find such an implementation in OpenFOAM or which boundary condition could be a good starting point for developing something like this?


Ideally, I would like to code a boundary condition that generates the normalized random wavenumbers, frequencies and amplitudes as described in the paper and stores them at the start of the simulation. Then at each time step it simply uses the Fourier expansion to return the velocity fluctuations at a patch location based on the value of time and position. The final velocity would then add the velocity fluctuations and mean velocity and set that to the 'U' value at the patch.


I can code this in python but I have very limited understanding of the OpenFOAM speicific data types to write the code efficiently. I can't even figure out which existing boundary condition would be a good starting point. I'm currently working with OF-6 but any boundary condition in any release that might get me started would be helpful.


Regards,
JBR
jnanabrao is offline   Reply With Quote

Old   June 16, 2021, 07:33
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
The digital filter method of Castro and a divergence free synthetic eddy method is available in openfoam.com. you may start to look at this implementation
mAlletto is offline   Reply With Quote

Old   June 17, 2021, 09:47
Default
  #3
Member
 
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6
jnanabrao is on a distinguished road
Thanks...that is quite helpful.
jnanabrao is offline   Reply With Quote

Old   July 4, 2021, 03:02
Default Access to R
  #4
Member
 
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6
jnanabrao is on a distinguished road
I was able to compile the boundary condition as I required. However, when trying to access the Reynold's stress tensor R in the 0 folder, for calculations within my boundary condition object, I get the error that no such object exists in the objectRegistry. On reading about objectRegistry class of OpenFOAM, I understood that this is perfectly sensible as the objectRegistry is usually populated by the solver and the solver doesn't require the R field when it is trying to read/calculate U, so it is not present in the registry. Is there a method to read a field, that has been manually copied to the cases directory, by a private function of my custom boundary function class?



P.S: The interpolateorRead() method used by the digitalFilterInlet boundary condition class doesn't work for me. It provides an undefined symbol error that i couldn't understand.
jnanabrao 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
Cyclic boundary condition in foam-extend 4.0 rellumeister OpenFOAM Pre-Processing 2 March 3, 2020 09:03
Pressure Inlet Boundary Condition for gas-solid fluidized bed m.uzair Fluent Multiphase 0 January 18, 2018 07:08
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 00:56.