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

SGS stress tensor B

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2016, 16:12
Default SGS stress tensor B
  #1
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
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
      )
);
In pimpleFoam.c, under turbulence->correct(); in the main time loop, I have added:

Code:
B = turbulence->B();
when I compile the code, I get the following error:

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 have checked calss turbulenceModel and B is not defined there.

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
syavash is offline   Reply With Quote

Old   February 10, 2018, 15:26
Default
  #2
Member
 
Join Date: Nov 2013
Posts: 35
Rep Power: 12
beatlejuice is on a distinguished road
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
beatlejuice is offline   Reply With Quote

Old   February 10, 2018, 15:46
Default
  #3
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by beatlejuice View Post
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
Hi,

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
syavash is offline   Reply With Quote

Old   February 12, 2018, 12:04
Default
  #4
Member
 
Join Date: Nov 2013
Posts: 35
Rep Power: 12
beatlejuice is on a distinguished road
Ahh I see ... the term "B" has unsettled me.

Thank you very much syavash for your fast response!
beatlejuice is offline   Reply With Quote

Old   December 9, 2018, 14:13
Default
  #5
New Member
 
Not applicable
Join Date: Sep 2018
Posts: 15
Rep Power: 7
kagen816 is on a distinguished road
Quote:
Originally Posted by syavash View Post
Hi,

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
Hi Syavash,

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.
kagen816 is offline   Reply With Quote

Old   March 22, 2019, 04:51
Default
  #6
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
dear sir

do you find an answer that how B and Reff is related in LES. Please help
manafaero is offline   Reply With Quote

Old   March 25, 2019, 09:44
Default
  #7
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by kagen816 View Post
Hi Syavash,

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.
Hi kagen,

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
Best Regards,
Syavash
syavash is offline   Reply With Quote

Old   March 25, 2019, 09:53
Default
  #8
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
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.
manafaero is offline   Reply With Quote

Old   March 25, 2019, 09:58
Default
  #9
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by manafaero View Post
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.
B itself is an auxiliary quantity and is not included in primary momentum equations.

Best Regards,
Syavash
syavash is offline   Reply With Quote

Old   March 26, 2019, 04:20
Default
  #10
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
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
manafaero is offline   Reply With Quote

Old   March 26, 2019, 05:01
Default
  #11
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by manafaero View Post
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
Unfortunately I lack the experience of working with standard Smagorinsky model. However by looking at the source code I see that both ce and ck should be read from dictionary of LESproperties, something like the following should work:

Code:
SmagorinskyCoeffs
    {
      filter    simple;
      ck        0.094;
      ce        1.048;
    }
Best Regards,
Syavash
syavash is offline   Reply With Quote

Old   March 26, 2019, 05:06
Default
  #12
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
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).
manafaero 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
[ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" Jeremie84 ANSYS Meshing & Geometry 70 October 25, 2017 16:03
Reg. LES in OpenFOAM ganeshv OpenFOAM Running, Solving & CFD 39 February 26, 2014 20:07
How the trace term of SGS stress tensor implemented in Openfoam star shower OpenFOAM Running, Solving & CFD 0 March 3, 2012 08:56
shear stress scalar definitions? Novak Elliott CFX 0 April 6, 2003 01:45
What is the detail definition of wall shear stress zjm FLUENT 0 January 2, 2002 07:43


All times are GMT -4. The time now is 23:42.