Computing the output of velocity gradient

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Clement
Posts: 2
Joined: Tue Feb 09, 2016 12:48 am

Computing the output of velocity gradient

Post by Clement »

Hello,

I wish to compute the output of the instantaneous velocity gradient but so far I couldn't find a way to obtain it.

I tried to compute something similar to the "extract 1D profile" example in order to write in a file the values of the gradient at every time step, but I can't find a way to use correctly the field_gradient_vector subroutine, which is I think what I need. I am getting memory error messages.

So if someone has already tried this, or just already used succesfully the subroutine, I will be very thankful to obtain some help.

I am running on version 4.0.5, in parallel on a PBS cluster.

Best regards,
Clement
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Computing the output of velocity gradient

Post by Yvan Fournier »

Hello,

The function you mention should works, so you probably have a minor programming error in your user subroutines.

Regards,

Yvan
Clement
Posts: 2
Joined: Tue Feb 09, 2016 12:48 am

Re: Computing the output of velocity gradient

Post by Clement »

Hello,

Indeed I made a mistake using ncel instead of ncelet...

Thank you for your quick reaction and sorry for the inconvenience.

Best regards,
Clement
Post Reply