|
[Sponsors] |
July 10, 2016, 17:12 |
SGS stress tensor B
|
#1 |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Hi,
How can I incorporate SGS stress tensor in solver pimpleFoam?! I have constructed "B" in createField.H as follows: Code:
volSymmTensorField B ( IOobject ( "B", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedSymmTensor ( "B", dimPressure, symmTensor::zero ) ); Code:
B = turbulence->B(); Code:
MypimpleFoam.C: In function ‘int main(int, char**)’: MypimpleFoam.C:90:32: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘B’ B = turbulence->B(); I think B is defined in LESModel.H but when I try to include this file I get compilation errors, indicating that the file cannot be found. Please help me to solve this problem. Thanks, Syavash PS: I am using OF version 2.3.1 |
|
February 10, 2018, 16:26 |
|
#2 |
Member
Join Date: Nov 2013
Posts: 35
Rep Power: 13 |
Dear syavash,
could you please tell me what the SGS stress tensor B is ... or how it is defined? This would help me a lot since I have to deal with it when using WALE LES model. Thank you very much in advance! cheers |
|
February 10, 2018, 16:46 |
|
#3 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
It is the sub-grid scale stress tensor usually defined in literature by tau_ij. It is often placed in the right hand side of momentum equation, undergoing divergence operator. I am sure you will find it in the common turbulence text books such as Pope or Sagaut. Best regards, Syavash |
||
February 12, 2018, 13:04 |
|
#4 |
Member
Join Date: Nov 2013
Posts: 35
Rep Power: 13 |
Ahh I see ... the term "B" has unsettled me.
Thank you very much syavash for your fast response! |
|
December 9, 2018, 15:13 |
|
#5 | |
New Member
Not applicable
Join Date: Sep 2018
Posts: 15
Rep Power: 8 |
Quote:
I saw the B in GenSGSstress but it does not say how to get this value. The subgrid model can get the Vsgs but how to get B. What's more, in the codes devReff() seems to be Subgrid stress and B is tau_kk? I am very confused. |
||
March 22, 2019, 05:51 |
|
#6 |
New Member
Manaf Muhammed
Join Date: Oct 2018
Posts: 21
Rep Power: 8 |
dear sir
do you find an answer that how B and Reff is related in LES. Please help |
|
March 25, 2019, 10:44 |
|
#7 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
It might be a little late, but you can find more details in the LESpimpleFoam that I had previously shared out on github: HTML Code:
https://github.com/syavash20/TurbLab/tree/master/LESpimpleFoam Syavash |
||
March 25, 2019, 10:53 |
|
#8 |
New Member
Manaf Muhammed
Join Date: Oct 2018
Posts: 21
Rep Power: 8 |
Thankyou very much for your help sir
But can you tell me where exactly or how B is used to solve the equations. I can see Reff is used as a part of U equation but where is B used. |
|
March 25, 2019, 10:58 |
|
#9 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Best Regards, Syavash |
||
March 26, 2019, 05:20 |
|
#10 |
New Member
Manaf Muhammed
Join Date: Oct 2018
Posts: 21
Rep Power: 8 |
sir,
As you know the smagorinsky constant Cs in OpenFOAM is defined as a function of Ce and Ck. But when i do the simulation for various combinations of Ck and Ce, that gives the same Cs, I am getting different results. So could you please tell me where else Ck and Ce is used other than in smagorinsky model. My problem is incompressible LES with standard smagorinsky model and vandriest delta. Please help Thanking you |
|
March 26, 2019, 06:01 |
|
#11 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Code:
SmagorinskyCoeffs { filter simple; ck 0.094; ce 1.048; } Syavash |
||
March 26, 2019, 06:06 |
|
#12 |
New Member
Manaf Muhammed
Join Date: Oct 2018
Posts: 21
Rep Power: 8 |
dear sir
I think Ck is read from LESproperties and Ce is read from GenEddyvisc.C file. But i would like to know that if Ck and Ce is used anywhere else in incompressible LES with standard smagorinsky model when using a pisoFoam solver (openFOAM2.4x). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" | Jeremie84 | ANSYS Meshing & Geometry | 70 | October 25, 2017 17:03 |
Reg. LES in OpenFOAM | ganeshv | OpenFOAM Running, Solving & CFD | 39 | February 26, 2014 21:07 |
How the trace term of SGS stress tensor implemented in Openfoam | star shower | OpenFOAM Running, Solving & CFD | 0 | March 3, 2012 09:56 |
shear stress scalar definitions? | Novak Elliott | CFX | 0 | April 6, 2003 02:45 |
What is the detail definition of wall shear stress | zjm | FLUENT | 0 | January 2, 2002 08:43 |