|
[Sponsors] |
August 4, 2016, 04:17 |
GenSGSStress class
|
#1 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
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 |
|
August 4, 2016, 17:45 |
|
#2 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
This is really important to me,
Please, anyone got an idea??! Thanks |
|
August 5, 2016, 11:41 |
|
#3 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Could anyone give me an explanation please??!
Thanks, Syavash |
|
August 10, 2016, 19:32 |
|
#4 |
New Member
Desanga
Join Date: Dec 2013
Posts: 19
Rep Power: 12 |
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 |
|
August 11, 2016, 06:06 |
|
#5 | |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
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 |
||
August 11, 2016, 10:16 |
|
#6 | |
New Member
Desanga
Join Date: Dec 2013
Posts: 19
Rep Power: 12 |
Quote:
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. |
||
|
|
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 |