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

GenSGSStress class

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2016, 04:17
Default GenSGSStress class
  #1
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Hi Foamers,

I looked over GenSGSStress class under incompressible LES. Why nuSgs is defined in this class, while not read nor written? AFAIK this class only deals with sub-grid stress tensor B, and not sub-grid scale viscosity nuSgs. However, the latter has been implemented in calculating divDevReff which has confused me so much!

Now I appreciate if anyone could give an explanation.

Thanks,
Syavash
syavash is offline   Reply With Quote

Old   August 4, 2016, 17:45
Default
  #2
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
This is really important to me,
Please, anyone got an idea??!

Thanks
syavash is offline   Reply With Quote

Old   August 5, 2016, 11:41
Default
  #3
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Could anyone give me an explanation please??!

Thanks,
Syavash
syavash is offline   Reply With Quote

Old   August 10, 2016, 19:32
Default
  #4
New Member
 
Desanga
Join Date: Dec 2013
Posts: 19
Rep Power: 12
desanga is on a distinguished road
Hi,

I'm not sure this reply would be sufficient to resolve your problem but let me give a try.

GenSgsStress is just a base class and inside this class nuSgs is initialized with nu (or laminar viscosity). if you have a look inside LRRDiffStress which is a derived class of GenSgsStress, you will see nuSgs_ is calculated during the runtime.

inside the momentum equation, divDevReff(U) will invoke divDevReff(U) in GenSgsStress and turbulence->correct() in pisoFoam/pimpleFoam will execute correct(const tmp<volTensorField>& tgradU) (see turbulence.H) which will lead to runtime calculation of nuSgs_.

Hope this will help you a little
desanga is offline   Reply With Quote

Old   August 11, 2016, 06:06
Default
  #5
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by desanga View Post
Hi,

I'm not sure this reply would be sufficient to resolve your problem but let me give a try.

GenSgsStress is just a base class and inside this class nuSgs is initialized with nu (or laminar viscosity). if you have a look inside LRRDiffStress which is a derived class of GenSgsStress, you will see nuSgs_ is calculated during the runtime.

inside the momentum equation, divDevReff(U) will invoke divDevReff(U) in GenSgsStress and turbulence->correct() in pisoFoam/pimpleFoam will execute correct(const tmp<volTensorField>& tgradU) (see turbulence.H) which will lead to runtime calculation of nuSgs_.

Hope this will help you a little
Thanks for your reply

Honestly, I do not still get why nuSgs is used in GenSGSStress to calculate divDevReff, as it is supposed to use only sub-grid stress tensor B. This would matter if I want to develop a SGS model that only calculates B, and not nuSgs. I guess I should manually set nuSgs to zero in current implementation.
Ah..., about this LRRDiffStress class, does it exist in OF 2.3.1?! What is it supposed to do??

Thanks,
Syavash
syavash is offline   Reply With Quote

Old   August 11, 2016, 10:16
Default
  #6
New Member
 
Desanga
Join Date: Dec 2013
Posts: 19
Rep Power: 12
desanga is on a distinguished road
Quote:
Originally Posted by syavash View Post
Thanks for your reply

Honestly, I do not still get why nuSgs is used in GenSGSStress to calculate divDevReff, as it is supposed to use only sub-grid stress tensor B. This would matter if I want to develop a SGS model that only calculates B, and not nuSgs. I guess I should manually set nuSgs to zero in current implementation.
Ah..., about this LRRDiffStress class, does it exist in OF 2.3.1?! What is it supposed to do??

Thanks,
Syavash
check
src/turbulenceModels/incompressible/LES/LRRDiffStress/
OR
https://github.com/OpenFOAM/OpenFOAM.../LRRDiffStress


try to get the full picture with this derived class because base class itself does not give full meaning. most of the sgs models implement through sgs viscosities which are calculated using "B" . if you set nusgs manually to zero, this may result laminar simulation.

However, I'm not very familiar with this particular LES model. try to find and read "Launder, Rece & Rodi 1975" (I think you can download this using "http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid=386515&fileId= S0022112075001814" but double check)

Last edited by desanga; August 11, 2016 at 12:59.
desanga 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
The udf.h headers are unable to open- in VISUAL STUDIO 13 sanjeetlimbu Fluent UDF and Scheme Programming 4 May 2, 2016 05:38
Possible bug in OpenFoam Interpolation class MMC15 OpenFOAM Bugs 2 March 23, 2014 12:55
Nested class and inheritance permissions MMC15 OpenFOAM Programming & Development 0 December 20, 2013 10:16
Questions about several Class Descriptions maybee OpenFOAM Programming & Development 3 November 25, 2013 06:40
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30


All times are GMT -4. The time now is 10:43.