Questions and remarks about code_saturne usage
Mohammad
Posts: 114 Joined: Thu Oct 25, 2018 12:18 pm
Post
by Mohammad » Thu Feb 21, 2019 8:24 pm
Hi,
I have a version 3.0 code and I want to make it usable in version 5.0.
one of the lines is:
Code: Select all
flux = flux + propfa(ifac,ipprof(ifluma(iu)))
But the compiler does not detect
propfa ,
ipprof and
ifluma .
I changed it to:
Code: Select all
field_get_key_int(ivarfl(iu), kbmasf, ifac)
is that correct? If not, how can I use these functions in ver. 5.0?
Yvan Fournier
Posts: 4251 Joined: Mon Feb 20, 2012 3:25 pm
Post
by Yvan Fournier » Fri Feb 22, 2019 12:46 am
Hello,
Actually, you need something similar to:
Code: Select all
field_get_key_int(ivarfl(iu), kbmasf, f_id)
field_get_val_s(f_id, mass_flux)
The following Doxygen page for version 5.0 describes the main naming conventions:
https://www.code-saturne.org/cms/sites/ ... _dico.html
To help conversion, I just added the version
4.0 Doxygen documentation , which has a page describing the exact mappings from v3.0 to 4.0 (that page was simplified in the v5 documentation assuming users had already migrated to at least version 3.0).
Best regards,
Yvan