Install Code_Saturne 5 coupled with Salome 8
- noname
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
7 years 4 months ago - 7 years 4 months ago #9212
by noname
Install Code_Saturne 5 coupled with Salome 8 was created by noname
Hi every one, I'm trying to install Code_Saturne 5 coupled with Salome 8 in CAE Linux 2017 (which is based in Xubuntu 16.04) to enable the CFDSTUDY module.
Actualy if i try to run the "install_saturne.py" script i get the following errors:
Did you have any suggestions on how to run the script properly? Thanks!!
Actualy if i try to run the "install_saturne.py" script i get the following errors:
Installation of Code_Saturne
____________________________
The process will take several minutes.
You can have a look at the log file meanwhile.
Traceback (most recent call last):
File "/opt/code_saturne-5.1.0_Installer/install_saturne.py", line 1409, in <module>
setup = Setup()
File "/opt/code_saturne-5.1.0_Installer/install_saturne.py", line 674, in __init__
url="https://gforge.inria.fr/frs/download.php/file/34618")
File "/opt/code_saturne-5.1.0_Installer/install_saturne.py", line 179, in __init__
self.url = url % self.archive
TypeError: not all arguments converted during string formatting
birba@Birba-PC:/opt/code_saturne-5.1.0$
Did you have any suggestions on how to run the script properly? Thanks!!
Last edit: 7 years 4 months ago by noname.
- ing.nicola.dettole
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
7 years 4 months ago - 7 years 4 months ago #9213
by ing.nicola.dettole
Replied by ing.nicola.dettole on topic Re: Install Code_Saturne 5 coupled with Salome 8
You have to run " configure" command as specified in
cap 6.8 of version 5 install guide
. Whit this command you have to specify the location of various folders of salome-meca .
you have first to install prerequisites
than run "configure"
than compile binaries.
Not simply
!
Good luck
you have first to install prerequisites
than run "configure"
than compile binaries.
Not simply

Good luck

Last edit: 7 years 4 months ago by ing.nicola.dettole.
- noname
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
7 years 4 months ago #9214
by noname
Replied by noname on topic Re: Install Code_Saturne 5 coupled with Salome 8
Following the Installation Guide, I tried with:
Everything seam fine until I run "make", where a lot of warning appears, and then "make install" do not run... If there some one could explain the correct string to configure the installer it would be very appreciated!! Thanks!
/opt/code_saturne-5.1.0_Installer//configure
--with-salome=/opt/SalomeMeca/V2017.0.2/
--with-hdf5=salome --with-cgns=salome
--with-med=salome
Everything seam fine until I run "make", where a lot of warning appears, and then "make install" do not run... If there some one could explain the correct string to configure the installer it would be very appreciated!! Thanks!
- noname
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
7 years 4 months ago - 7 years 4 months ago #9216
by noname
Replied by noname on topic Re: Install Code_Saturne 5 coupled with Salome 8
Finally I've found the way to do, here a step-by-step walkthrough:
1)Download Code_Saturne 5.1.0
2)Unzip the downloaded Code_Saturne into a folder named "code_saturne-5.1.0" in /opt directory. (So the absolute patch would be "/opt/code_saturne-5.1.0").
3)Open terminal and run:
4)If no errors appears, run:
5)Then run:
Now you have finished, and you can run Salome with enabled CFDSTUDY, typing in the terminal:
If you want to install Code_Saturne 5.0.4 you have to force the use of the PyQt 5 libraries during the installation of Code_Saturne instead of the default PyQt 4, as reported by Yvan Fournier on the Code-Saturne forum, should be sufficient to add "QT_SELECT=5" at the end of the configure line, but I haven't tested yet and this configuration has been reported to be not-stable at least when coupling with Salome-Meca instead of Salome only.
3.1)So I guess the first command to run in the terminal should be:
5.1)And after "make" and "make install", to open Salome with enabled CFDSTUDY, you have to run:
1)Download Code_Saturne 5.1.0
2)Unzip the downloaded Code_Saturne into a folder named "code_saturne-5.1.0" in /opt directory. (So the absolute patch would be "/opt/code_saturne-5.1.0").
3)Open terminal and run:
/opt/code_saturne-5.1.0/configure --prefix=/opt/code_saturne-5.1.0/code_saturne-5.1.0/arch/Linux_x86_64/ --with-salome=/opt/SalomeMeca/V2017.0.2 --with-hdf5=salome --with-cgns=salome --with-med=salome
4)If no errors appears, run:
make
5)Then run:
make install
Now you have finished, and you can run Salome with enabled CFDSTUDY, typing in the terminal:
/opt/code_saturne-5.1.0/code_saturne-5.1.0/arch/Linux_x86_64/bin/code_saturne salome
If you want to install Code_Saturne 5.0.4 you have to force the use of the PyQt 5 libraries during the installation of Code_Saturne instead of the default PyQt 4, as reported by Yvan Fournier on the Code-Saturne forum, should be sufficient to add "QT_SELECT=5" at the end of the configure line, but I haven't tested yet and this configuration has been reported to be not-stable at least when coupling with Salome-Meca instead of Salome only.
3.1)So I guess the first command to run in the terminal should be:
/opt/code_saturne-5.0.4/configure --prefix=/opt/code_saturne-5.0.4/code_saturne-5.0.4/arch/Linux_x86_64/ --with-salome=/opt/SalomeMeca/V2017.0.2 --with-hdf5=salome --with-cgns=salome --with-med=salome QT_SELECT=5
5.1)And after "make" and "make install", to open Salome with enabled CFDSTUDY, you have to run:
/opt/code_saturne-5.0.4/code_saturne-5.0.4/arch/Linux_x86_64/bin/code_saturne salome
Last edit: 7 years 4 months ago by noname.
- ing.nicola.dettole
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
7 years 4 months ago #9220
by ing.nicola.dettole
in /opt directory ?
from which directory we have to run other commands ?
Replied by ing.nicola.dettole on topic Re: Install Code_Saturne 5 coupled with Salome 8
2)Unzip the downloaded Code_Saturne into a folder named "code_saturne-5.1.0"
in /opt directory ?
from which directory we have to run other commands ?
- noname
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
7 years 4 months ago - 7 years 4 months ago #9221
by noname
Replied by noname on topic Re: Install Code_Saturne 5 coupled with Salome 8
Yesdettole wrote:
2)Unzip the downloaded Code_Saturne into a folder named "code_saturne-5.1.0"
in /opt directory ?
There are only absolute path, so is irrelevant from which directory you run the terminal.dettole wrote: from which directory we have to run other commands ?
Last edit: 7 years 4 months ago by noname.
The following user(s) said Thank You: ing.nicola.dettole
Moderators: catux
Time to create page: 0.142 seconds