Page 1 of 1
User subroutines Code Saturne 4.0
Posted: Thu Jul 23, 2015 2:46 pm
by Muhsin
Hi all,
I am new in using code saturne, May I know if there's any guide available to run code saturne 4.0 using user subroutines(without gui).
Cheers,
Muhsin
Re: User subroutines Code Saturne 4.0
Posted: Fri Jul 24, 2015 9:59 am
by Yvan Fournier
Hello,
Do you need to run the code using user subroutines in addition to the GUI, or do you need to avoid the GUI completely ? (and in this case, is it due to an installation issue, or to a recommendation from somebody else) ?
In any case, source files added to a case's SRC directory will be compiled and used by the code (at that level; subdirectories are ignored). You can test compilation before running the code using "code_saturne compile -t -s SRC".
There are many examples in a case's SRC/USER_EXAMPLES, and also in the Doxygen documentation.
Regards,
Yvan
Re: User subroutines Code Saturne 4.0
Posted: Fri Jul 24, 2015 12:33 pm
by Muhsin
Hi Yvan,
In this case I would like to try to run code saturne without GUI as suggested by my colleague who has done using it on version 3. But I couldn't find guide for it. I'm aware that there are some changes that is different from version 3, and I'm really new on this code, thus I'm posting this. Sorry if it's sound naive.
Re: User subroutines Code Saturne 4.0
Posted: Fri Jul 24, 2015 1:38 pm
by Yvan Fournier
Hello,
I was afraid it was due to a "suggestion": there are good reasons for using user subroutines (for the more complex settings, boundary conditions, source terms, ...), and there may be external constraints (code build without the GUI support on some machines), but In general, I recommend using the GUI as much as possible (for all simple settings), with user subroutines for the more complex stuff.
This requires less user subroutines, and makes the setup verification (and update when changing versions) much easier.
Compared to version 3, some routines have changed (so when updating a setup, you must compare the routine names and arguments), but the principle of using user subroutines has not changed (so your colleague should be able to help you), and the documentation has improved (for the Doxygen documentation, use the one in the code, not the one from the website, which might not be up to date).
Regards,
Yvan
Re: User subroutines Code Saturne 4.0
Posted: Fri Jul 24, 2015 3:48 pm
by Muhsin
Hi Yvan,
Thank you for your clarification. Then I would follow as how you suggest for this version. Have a great weekend ahead.