about code saturne as a "CFD study" module integrated in salome

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
attene
Posts: 68
Joined: Fri Jun 29, 2018 10:54 am

about code saturne as a "CFD study" module integrated in salome

Post by attene »

Dear all,

I am working on installing code saturne through SALOME and I am not a linux expert yet.
So far I have installed succesfully SALOME 8.4.0.
I wanted to ask you an advice how to perform effectively the rest of the installation.
If I well understood there are two ways to proceed:

1) integrate code saturne in Salome: I should find the CFD study module at the end of the installation.
Should I configure (--with-salome) and build code saturne in the SALOME directory?


2)installing code saturne as a standalone software by calling required dependencies such as HDF5, MED CGNS METIS etc... during configuration.
Is code saturne built in a separate directory (nor Salome directory neither code saturne source directory)?

If I installed CS as CFD study module in Salome, am I able to import a mesh in this module which was not generated in SALOME (Geometry plus MESH module)?

Thank you in advance

regards,

FA
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: about code saturne as a "CFD study" module integrated in salome

Post by Yvan Fournier »

Hello,

Yes, in both cases you can import the same meshes.

If you want to integrate the code as a Salome module to have a working CFDStudy, you need to make sure the same versions of Python (2.7 for Salome 8 series) and PyQt are used for Code_Saturne.

Best regards,

Yvan
attene
Posts: 68
Joined: Fri Jun 29, 2018 10:54 am

Re: about code saturne as a "CFD study" module integrated in salome

Post by attene »

Hi Yvan,

Thank you for your answer.
I am going to follow the second approach.

Please could you confirm that the following procedure make sense?

$SALOME= /home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6
$SOURCE=/home/federico/CS/code_saturne-5.0.8
$INSTALL_PATH=/home/federico/CS/CS_build

$SOURCE/configure --prefix=$INSTALL_PATH/with_salome --with-libxml2=$SALOME/libxml2 --with-hdf5=$SALOME/hdf5 \
--with-med=$SALOME/MED --with-cgns=$SALOME/cgns --with-scotch=$SALOME/scotch --with-metis=$SALOME/metis \ --with-pyqt=$SALOME/PyQt --with-mpi \
CC=icc CXX=icpc FC=ifort

$ make

$ make install

Regards

FA
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: about code saturne as a "CFD study" module integrated in salome

Post by Yvan Fournier »

Hello,

This should mostly work, but the SALOME builds of Scotch and Metis are not parallel (which is OK if the cases you are running are not too large).

Also, --with-pyqt=$SALOME/PyQt will not work, as it does not correspond to a Code_Saturne option. You can define the PYUIC5 and PYRCC5 variables based on the paths of the matching tools in Salome, but you will probably also need to add the matching library paths to LD_LIBRARY_PATH.

Regards,

Yvan
attene
Posts: 68
Joined: Fri Jun 29, 2018 10:54 am

Re: about code saturne as a "CFD study" module integrated in salome

Post by attene »

Hello Yvan,

Thank you!!
I need to run large cases; I will built Scotch or PT-Scotch from scratch!
and also, I do not need METIS if I used Scotch/PT-Scotch for partitioning, do I ?

What else can I call from salome Binaries for an effective configuration?

regards,

FA
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: about code saturne as a "CFD study" module integrated in salome

Post by Yvan Fournier »

Hello,

You do not need ParMetis if you have PT-SCOTCH. Actually, you can also do without PT-SCOTCH, using the built-in partitioner, which is more robust, but partitionning quality (and thus performance) is usually (not always) better with PT-SCOTCH.

I don't see any other libraries you could use from SALOME.

Best regards,

Yvan
Post Reply