Page 1 of 1

usvist routine for turbulent viscosity

Posted: Wed May 10, 2017 3:33 pm
by daniele
Hello,

I would like to write an algebraic equation for the turbulent viscosity, such as:

mu_t = mu * f(Re)

In v4.3, I understand I have to use the usvist routine. What is not clear for me, is if this routine must be written inside the cs_user_physical_properties.f90 or as a separated file usvist.f90. Anyway, I tried both, and I always get a “forbidden memory area access” error.

The “turbulent viscosity” variable is activated (I use the Mixing Length model) since it is present in the setup.log.

Could you provide me with some help in using the usvist routine?

Many thanks in advance.
Best regards,
Daniele

Re: usvist routine for turbulent viscosity

Posted: Wed May 10, 2017 9:31 pm
by Yvan Fournier
Hello,

Both options are possible.

Do you use a debug build ? If so, do you have a backtrace describing your error somewhat ?

Otherwise, can you post your user subroutines ?

Regards,

Yvan

Re: usvist routine for turbulent viscosity

Posted: Tue May 30, 2017 2:38 pm
by daniele
Hello,

I do not use a debug build. By the way, how can I obtain it?
Attached you can find the subroutine.

Thanks in advance.

Best regards,

Daniele

Re: usvist routine for turbulent viscosity

Posted: Wed May 31, 2017 8:29 am
by Yvan Fournier
Hello,

The beginning of the installation manual provides instructions for a debug build. Basically you need to add --enable-debug to the configure stage.

Regards,

Yvan