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

[Other] gradient of the reynold stress

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2020, 01:38
Default gradient of the reynold stress
  #1
New Member
 
Wanja Njue
Join Date: Oct 2019
Posts: 1
Rep Power: 0
Wanja is on a distinguished road
Hey hey hey
For LES, I want to calculate the gradient of the reynold stress which is volTensorField, it’s gradient should be volVectorField however I receive error due to grad(R) where R is a tensor.
Error is

'no matching function for call to ‘grad(Foam::tmp<Foam::GeometricField<Foam::SymmTens or<double>, Foam::fvPatchField, Foam::volMesh> >)


How do we calculate gradient of reynolds stress ?
Wanja is offline   Reply With Quote

Old   June 29, 2021, 10:19
Default Same Problem
  #2
New Member
 
Ali Amarloo
Join Date: Aug 2018
Posts: 9
Rep Power: 7
Ali Amarloo is on a distinguished road
Hi Wanja,

did you find a way to calculate gradients of reynolds stress?
Ali Amarloo is offline   Reply With Quote

Old   June 29, 2021, 17:32
Default
  #3
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
- Reynolds stress tensor object is volSymmTensorField, not tensor.
- Its gradient will not produce a vector field. The gradient operator increases the order of the tensor. So you will get instead a third-order tenso, which does not exist in OpenFOAM (or anywhere else I know).
HPE is offline   Reply With Quote

Old   June 30, 2021, 03:51
Default
  #4
New Member
 
Ali Amarloo
Join Date: Aug 2018
Posts: 9
Rep Power: 7
Ali Amarloo is on a distinguished road
Hi HPE,
Thanks for your comment.
that is correct.
by the vector of gradients of Reynolds stress, we (or at least I) meant the final 3 values that are calculated based on Reynolds stress gradients and are inserted into 3 equations of momentum (aka RANS).
I can save the R tensor and maybe calculate the gradients myself and then using the equations, and by them, I can calculate those momentum sources (which are induced by Reynolds stress gradients) but I think it would be more accurate if I can have the exact numbers openFoam inserts into equations by the turbulence model.

Or if I can have the values inside that third-order tensor, the final calculation will be only a couple of sum and subtracts.

cheers,
Ali
Ali Amarloo is offline   Reply With Quote

Old   July 1, 2021, 15:55
Default
  #5
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
I couldn't follow the line of explanations of yours, I'm afraid.

>> by the vector of gradients of Reynolds stress, we (or at least I) meant the final 3 values that are calculated based on Reynolds stress gradients and are inserted into 3 equations of momentum (aka RANS).

There won't be any final 3 values, if anyone takes the gradient of a symmetric tensor.

I kindly suggest you to visit Vector calculus to see the mapping properties of the gradient operator.
HPE is offline   Reply With Quote

Old   July 2, 2021, 04:44
Default
  #6
New Member
 
Ali Amarloo
Join Date: Aug 2018
Posts: 9
Rep Power: 7
Ali Amarloo is on a distinguished road
sorry for my bad english.

let me try it again.

Reynolds stress has 6 values so if we take the gradient it will be even more terms than that.

but when we see the RANS equations, we have temporal part, advection, diffusion, etc. and there is only one term which is calculated based on the gradients of Reynolds stress.

That term is a vector because we have three equations in 3 directions (x, y, z).

for example in simpleFoam:

tmp<fvVectorMatrix> tUEqn
(
fvm::div(phi, U)
+ MRF.DDt(U)
+ turbulence->divDevSigma(U)
==
fvOptions(U)
);

I am talking about "turbulence->divDevSigma(U)", which must be a vector.

I am very basic in c++, so I know that is the term I am looking for, but I don't know how can I save numbers (or the vector) separately.

So instead of that term, If I have access to the gradients of those 6 values (gradient of elements in Reynolds stress), I can calculate this turbulence term myself.

I hope, it is more clear now
Ali Amarloo is offline   Reply With Quote

Old   July 2, 2021, 06:02
Default
  #7
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
>> but when we see the RANS equations, we have temporal part, advection, diffusion, etc. and there is only one term which is calculated based on the gradients of Reynolds stress.

The operator there is the divergence operator, not the gradient operator.
HPE 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
pisoFOAM (LES) - internal pipe flow - convergence gu1 OpenFOAM Running, Solving & CFD 0 January 11, 2018 16:39
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 14:42
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
[ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" Jeremie84 ANSYS Meshing & Geometry 70 October 25, 2017 16:03
Calculating the Wall Shear Stress Gradient over surface 123catty456 Main CFD Forum 1 October 1, 2012 22:27


All times are GMT -4. The time now is 20:54.