using grdcel with averaged quantities

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
nash

using grdcel with averaged quantities

Post by nash »

Hi,

In order to calculate the modelled Reynolds stresses and shear stress I need to calculate the gradients du/dy,dvdx etc in version 2.1. However I want to calculate the gradient of the velocities that have been averaged i.e propce(1,ipcmom). Is it possible to just replace the variable iu (for example) with propce(1,ipcmom) in grdcel? (after defining ipcmom=ipproc(icmome(1))

I tried this and I get something out but i'm not sure if this is a valid or correct approach.

Cheers

Neil
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: using grdcel with averaged quantities

Post by Yvan Fournier »

Hello,

Yes, this seems correct to me. Some of grdcel's arguments are related to boundary conditions, so if you boundary conditions are time-dependent, there my be an issue here, but with constant boundary conditions, it should work. Another thing which might have some impact is periodicity of rotation: it there is such a periodicity in your case, some additional checks may be necessary, but otherwise, your result should be good.

Best regards,

Yvan
Post Reply