Hello! This is an old issue, but I think that I can add my little contribution
I've trying to couple Aster + saturne at salome platform for so many years... and now I am still trying, but I feel that I am closer than ever
What I have done up to now:
1. Installing salome + aster + saturne from sources:
Installing salome + saturne doesn't give much trouble (I have done it in the past). The real problem is aster, I have tried to compile but given up at what I considered a death end:
https://forum.code-aster.org/public/d/2 ... on-manjaro
2. Installing salome-meca (singularity) + saturne (from sources):
I think this is the less painful approach. Singularity can be installed according to the instructions in aster web, although it is out-of-date:
https://code-aster.org/spip.php?article303
Then the recipe I have followed is:
- "unzip" the singularity container in a sandbox, so that you can browse the filesystem, and get into its shell:
Code: Select all
singularity build --sandbox sandbox/ salome_meca-lgpl-2023.1.0-4-20240327-scibian-10.sif
singularity shell salome_meca-lgpl-2023.1.0-4-20240327-scibian-10.sif
- "sandbox" is now a folder in your filesystem, you need to chroot it as if it was the root filesystem:
- In my system, if I chroot, internet doesn't work in the shell, so I had to do:
Code: Select all
echo "nameserver 8.8.8.8" > /etc/resolv.conf
- Install saturne pre-requisites (note: it doesn't matter the system you are using, the singularity is built in scibian, a fork of debian, so you have to use apt as package manager):
- Install code saturne with the following setup file:
Code: Select all
prefix /opt/salome_meca/2023.1.0_scibian_univ/tools/
salome /opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/
hdf5 yes no /opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/BINARIES-DB10/hdf5
cgns yes no /opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/BINARIES-DB10/cgns
med yes no /opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/BINARIES-DB10/medfile
- Install salome_cfd_extensions pre-requisites
Code: Select all
apt install libomniorb4-dev qttools5-dev-tools
- Install salome_cfd_extensions. I would like to detail this step, because (spoiler) although it installs without error it doesn't work:
Code: Select all
cd opt/salome_meca/2023.1.0_scibian_univ/tools/
mkdir cfdstudy_src && cd cfdstudy_src
git clone https://github.com/code-saturne/salome_cfd_extensions
salome_cfd_extensions/sbin/bootstrap
mkdir build && cd build
../salome_cfd_extensions/configure --prefix=/opt/salome_meca/2023.1.0_scibian_univ/tools/salome_cfd_extensions --with-salome=/opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/ CS_ROOT_DIR=/opt/salome_meca/2023.1.0_scibian_univ/tools/code_saturne-8.2.0 --with-env-id=120 OMNIIDL=/opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/BINARIES-DB10/omniORB/bin/omniidl
make && make install
- Last step would be "zip" again the singularity container, not done yet because it doesn't work.
So, it compiles but when I launch salome (from within the container and shell), it outputs:
Code: Select all
Traceback (most recent call last):
File "/opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/mesa_salome", line 1073, in <module>
main(args)
File "/opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/mesa_salome", line 1042, in main
module.init(context, out_dir_Path)
File "/opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/extra.env.d/120_s_cfd_study.py", line 29, in init
context.appendVariable(r"SalomeAppConfig", os.path.join(s_cfd_study_ROOT_INSTALL_DIR, r"share/salome/resources/cfdstudy"))
AttributeError: 'SalomeContext' object has no attribute 'appendVariable'
Line 29 at file "/opt/salome_meca/2023.1.0_scibian_univ/prerequisites/Cea_archive-9100/extra.env.d/120_s_cfd_study.py" is:
Code: Select all
context.appendVariable(r"SalomeAppConfig", os.path.join(s_cfd_study_ROOT_INSTALL_DIR, r"share/salome/resources/cfdstudy"))
and if I comment it, it works but without cfd_extension. What is wrong with this code?
Unluckily I can't try "salome_cfd", as it seems to be an out-dated command, not used any more. What can I do now? Any clue will be welcome!
P.S: Some data about my system:
Linux: manjaro
kernel: 6.6.54-2-MANJARO
salome: salome_meca-lgpl-2023.1.0-4-20240327-scibian-10.sif
saturne: 8.2.0