Page 1 of 1

Selection of values on internal faces in version 4.0

Posted: Fri Jul 31, 2015 3:43 pm
by CTrinca
Hello everyone,

While studying the way to implement periodic boundary condition I stepped into this post, where I found a very instructive subroutine by Yvan Fournier. However, this script relied on the use of the arrays propce and propfa, which as far as I understand are now deprecated in 4.0. Is that correct?
If it is, can anybody suggest me how to translate the lines:

Code: Select all

iflmas = ipprof(ifluma(iu))
[...]
flown = flown + propfa(ifac,iflmas)
in the new approach? Can a call to a field_get_val_* subroutine access a value defined on an internal face, particularly the mass flow across it?
Thanks in advance for any answer and best regards,

Cosimo

Re: Selection of values on internal faces in version 4.0

Posted: Sun Aug 02, 2015 12:27 pm
by Erwan Le Coupanec
Hello,

You can have a look at the user example subroutine (available in SRC/EXAMPLES in your case directory).
You'll find an up to date example of access to the mass flux.

More generally, you can refer to the following Doxygen link for such translations between deprecated Fortran access and up to date Fortran access to variables and properties arrays.

http://code-saturne.org/doxygen/src/field.html

Erwan.