Selection of values on internal faces in version 4.0

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
CTrinca
Posts: 32
Joined: Mon Mar 30, 2015 9:19 am

Selection of values on internal faces in version 4.0

Post 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
Erwan Le Coupanec
Posts: 45
Joined: Sun Sep 08, 2013 8:50 pm

Re: Selection of values on internal faces in version 4.0

Post 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.
Post Reply