Troubles with "Salome-CFD extension"

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Charles
Posts: 2
Joined: Sat Dec 18, 2021 8:15 pm

Troubles with "Salome-CFD extension"

Post by Charles »

Hello everyone,

As a complete beginner on Linux, I am experiencing some troubles to embed Code Saturne into the Salome plateforme.
Beside the instructions written in the README.md , is there a more detailed guide to do so ?
(Sorry if my question might seem obvious, but I am really beginning with Linux).

I have typed :

./configure
make
make install

After (autoconf automake etc ...) without any apparent error, but the CFD study module does not appear in Salome. Unfortunately, I don't know in which file, I should replace "<top_source_dir>" and "<salome_root_directory>" with the actual directory names.

Thank your for your help.

I am working with :

Virtual machine - Ubuntu 20.4
Code Saturne 7.0
Salome 9.7
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Troubles with "Salome-CFD extension"

Post by Yvan Fournier »

Hello,

For the salome_cfd extensions, it may sometimes be necessary to source the salome environment before running configure/make/make install (this is not by design, but some cases might not be covered).

In any case, you install might be OK. When installing these extensions, the main Salome install is not modified, but a new virtual application is generated in the salome_cfd_extensions install directory. So you need to run "salome_cfd" (in the salome_cfd_extensions $prefix/bin/ directory) instead.

Best regards,

Yvan
Charles
Posts: 2
Joined: Sat Dec 18, 2021 8:15 pm

Re: Troubles with "Salome-CFD extension"

Post by Charles »

Thank you for your answer, I realised my problem.

I have :
/home/usr/cfd_extension/cfd_extension_build
and
/home/usr/cfd_extension/salome_cfd_extensions-master

I cannot execute "aclocal" outside of the source tree. I get : aclocal error : non-option arguments are not accepted.
(autoreconf doesn't work either outside the source tree) when I enter in the terminal (opened in the cfd_extension_build folder) :
$ aclocal /home/usr/cfd_extension/salome_cfd_extensions-master

Am I missing out something ?
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Troubles with "Salome-CFD extension"

Post by Yvan Fournier »

Hello,

Did you run ./sbin/bootstrap in the salome_cfd_extensions directory after cloning it ? This step might be missing in the documentation. From the previous exchanges, I would assume you already did this, but prefer to double check.

In any case, bootstrap should be run in the source tree while configure should preferably be run in a separate build directory (sorry for the documentation being a bit light relative to this).

Best regards,

Yvan
mayank
Posts: 6
Joined: Wed Mar 09, 2022 3:16 pm

Re: Troubles with "Salome-CFD extension"

Post by mayank »

Hi
Can you kindly provide a detailed method of integrating code_Saturne in salome. I am new to Linux and unable to embed it in salome. Kindly assist in this regard!
mayank
Posts: 6
Joined: Wed Mar 09, 2022 3:16 pm

Re: Troubles with "Salome-CFD extension"

Post by mayank »

Hi
I somehow could configure and build the extension into a build directory. However when I invoke make Install I get the following error:
omniidl: ERROR!

omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /home/mayank15/SALOME-9.8.0-native-UB20.04-SRC/INSTALL/omniORB/lib
omniidl: (or set the PYTHONPATH environment variable)

omniidl: (The error was 'No module named _omniidl')
Attachments
Screenshot from 2022-03-11 13-05-32.png
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Troubles with "Salome-CFD extension"

Post by Yvan Fournier »

Hello,

Yes, Omniidl is statistically the library causing us the most issues with the salome_cfd extensions...

Is the .so file mentionned in the appropriate directory, as per the error message ? In that case, adding a PYTHONPATH as indicated or through LD_LIBRARY_PATH might work. Otherwise, we nned to find that file in the salom install (and understand why the path is not correct). But as the path mentions your user account and not some build directory, I guess the installer updated the paths correctly, and the issue is probably later.

Also, please copy-paster error messages as text rather than as images: it make it much easier to copy/past file names and paths and suggest appropriate parameters for your case.

Best regards,

Yvan
mayank
Posts: 6
Joined: Wed Mar 09, 2022 3:16 pm

Re: Troubles with "Salome-CFD extension"

Post by mayank »

Dear Yavan,
Thank you so much for the reply. I no longer have this error coming. I could remove the error after re-installing SALOME again.
However now that I have run configure, make and make install. I get the following files:
bin config.log libtool salome_cfd_config.h
cfd_study config.status Makefile stamp-h1

Inside bin is the file salome_cfd. Upon executing that I get this
[
mayank15@mayankuni:~/cfd_study/bin$ ./salome_cfd
runSalome running on mayankuni
Searching for a free port for naming service: 2810 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Registry in Naming Service + found in 0.5 seconds
Searching /Kernel/ModulCatalog in Naming Service +th. 140259409982080 - Trace /home/mayank15/SALOME-9.8.0-native-UB20.04-SRC/SOURCES/KERNEL/src/ModuleCatalog/SALOME_ModuleCatalog_Server.cxx [98] : Module Catalog Server: Naming Service was found
found in 0.5 seconds
RunStudy
Searching /Study in Naming Service + found in 0.5 seconds
Searching /Containers/mayankuni/FactoryServer in Naming Service +Warning, no type found for resource "localhost", using default value "single_machine"
+ found in 1.0 seconds
Start SALOME, elapsed time : 2.7 seconds
]
Salome does not start after this. I feel like I am still missing something but I am unable to figure it out.
Kindly help in this regard. Thanks in advance.

Best Regards
Mayank
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Troubles with "Salome-CFD extension"

Post by Yvan Fournier »

Hello,

Does the same install of Salome start normally when run without the salome_cfd_extensions (i.e. when just running "salome" from the Salome install instead of "salome_cfd" fro m the CFD extensions install) ?

You start message seems similar to what is normally expected, so it is surprising that you have nothing else.

Best regards,

Yvan
mayank
Posts: 6
Joined: Wed Mar 09, 2022 3:16 pm

Re: Troubles with "Salome-CFD extension"

Post by mayank »

Dear Yvan,

Thank you for your reply. I am able to run Salome from Salome install folder. The Salome window opens and runs cleanly except it says error regarding paraview missing ospray plug-in that inhibits other plugins to open in Salome. However the geometry module and mesher opens cleanly.
Could this missing plug-in be the reason for no window showing in Salome cfd extension install folder?
Please let me know what other details I could provide that would help you to help me better.

Thanks in advance

Regards
Mayank
Post Reply