User subroutines Code Saturne 4.0

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Muhsin
Posts: 25
Joined: Mon May 18, 2015 5:48 pm

User subroutines Code Saturne 4.0

Post 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
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: User subroutines Code Saturne 4.0

Post 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
Muhsin
Posts: 25
Joined: Mon May 18, 2015 5:48 pm

Re: User subroutines Code Saturne 4.0

Post 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.
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: User subroutines Code Saturne 4.0

Post 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
Muhsin
Posts: 25
Joined: Mon May 18, 2015 5:48 pm

Re: User subroutines Code Saturne 4.0

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