Hi,
I am a new user of Code_Saturne and Salome Meca.
I have started to use this for my phd studies, since it is a great tool and it is free. (Thank you EDF! )
I have followed several topics on this forum for the instaltion of code_saturne with Salome and now Iām doing the toturial( https://www.code-saturne.org/cms/sites/default/files/file_attach/Tutorial/version-3.0/Tutorial_CFD_Study.pdf) of a pipe.
Iām now facing a problem with the CFDSTUDY activation. It is shows an error message like this:
āFailed to activate module CFDSTUDYā
See attached figure.
How was Code_Saturne installed ? Was the āāwith-salome=ā¦ā option used during the configure stage -this is explained in the installation manual).
Did you use the standard Salome launch command or ācode_saturne salomeā ?
Yes, i have installed the Code Saturne with Salome ( i think soā¦). I have two file attached, the installation log and setup file.
I have have initiated the salome with ācode_saturne salomeā on terminal. (I have added a PATH environment to the ācode_saturne salomeā file. So i can used anywhere on terminal.)
You might have an issue due to Salome_Meca using Qt5, and Code_Saturne using Qt4.
When both PyQt4 and PyQt5 are available on a machine, Code_Saturne 5.0 defaults to using PyQt4, while Code_Saturne 5.1 defaults to PyQt5.
To force selection of PyQt5, you can add QT_SELECT=5 to the āconfigureā line. Otherwise make sure PyQt5 is available, and if you do not need it for othet purposes, uninstalling PyQt4 can help.
Not 100% sure this is the cause of the issue, but the error message seems to indicate of problem of this type, or PYTHONPATH issues.
Did you use the general installer or ācd <build_dir> && <src_dir>/configure [options] && make && make installā approach ?
In the build directory, check the top of the āconfig.logā file for the āconfigureā command. Replay that adding QT_SELECT=5 (also explained in the installation manual). Then make && make install.
I still have this issue with the CFDSTUDY module. Iāve added the QT_SELECT=5 option to configure, removed PyQt4 from my system and also tried it in combination with salome_meca and salome 8. Still no success. It seems like the configure script doesnāt process the QT_SELECT option.
Besides trying to manually replace the pyqt4 references, it there any other way to fix this?
Hi, thanks for the reply.
My setup is similar to the first post. Iām trying to install on Ubuntu. I downloaded saturne, extracted it and then ran the configure script as per the instructions, including the extra pieces:
./configure --with-salome= < my path to salome> QT_SELECT=5.
make -j 4
sudo make install
"code_saturne salome " threw some errors about missing Qt4 stuff when running CFDSTUDY and failed to load the module.
next steps:
sudo make uninstall ā to get rid of the faulty saturne
remove all the pyqt4 stuff via the package manager
make clean
./configure --with-salome= < my path to salome> QT_SELECT=5
make -j 4
sudo make install
run ācode_saturne salomeā again
result: it still wants pyqt4. module fails to load.
I ended up downloading the development release. this one uses pyQt5 by default, so it woked fineā¦