Page 1 of 2

Troubles with "Salome-CFD extension"

Posted: Sat Dec 18, 2021 9:41 pm
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

Re: Troubles with "Salome-CFD extension"

Posted: Sun Dec 19, 2021 10:40 pm
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

Re: Troubles with "Salome-CFD extension"

Posted: Wed Dec 22, 2021 6:41 pm
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 ?

Re: Troubles with "Salome-CFD extension"

Posted: Thu Dec 23, 2021 8:48 pm
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

Re: Troubles with "Salome-CFD extension"

Posted: Wed Mar 09, 2022 3:19 pm
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!

Re: Troubles with "Salome-CFD extension"

Posted: Fri Mar 11, 2022 8:36 am
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')

Re: Troubles with "Salome-CFD extension"

Posted: Fri Mar 11, 2022 4:57 pm
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

Re: Troubles with "Salome-CFD extension"

Posted: Sat Mar 12, 2022 1:36 pm
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

Re: Troubles with "Salome-CFD extension"

Posted: Mon Mar 14, 2022 11:31 am
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

Re: Troubles with "Salome-CFD extension"

Posted: Mon Mar 14, 2022 3:06 pm
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