Saturday, 5 November 2011

Code_Saturne 2.1.0 has been released

On 31 Oct, 2011, Code_Saturne 2.1.0 (intermediate version) has been released and is available for downloading. The details of the new features are described on the corresponding news page.

The selective major features include:
  • Packaging: Code_Saturne is now provided as a single package, grouping all existing libraries (BFT, FVM, MEI, libsyrcs). It also includes preliminary source code for SALOME plugin (CFDSTUDY module and Code_Aster coupling).
  • Code coupling: Code_Saturne 2.1 can be coupled with SYRTHES 4.0.0-10 (at least). SYRTHES 4.0 is a complete rewrite of SYRTHES 3.4 with many new features and should shortly be released. Code_Saturne 2.1 also contains preliminary code for Code_Aster coupling (more to come on this topic in next versions).
  • User interface: both the script user interface and the graphical user interface have been simplified and completed to enhance user experience. Just give a try to the new runcase script (and its Python overloading) and to the new features of the graphical interface (more to come also on this topic in next versions).
  • New mesh readers: Code_Saturne pre- and post- processing has been updated to support CGNS 3.1 and MED 3.0 format. MED 3.0 is compatible with SALOME 6.3.
  • Documentation: the user manual has been slightly improve and a Doxygen documentation of the sources is now available. An installation manual is now provided too.
  • Configuration: a configuration file can be completed, either globally or by user, to setup some runtime options like the scratch directory, an optional mesh database or SYRTHES 4.0 version to be used.
  • Automatic V&V: a tool for automatic run of Code_Saturne has been developped, enabling the user to automatically run simulations, plot graphs and receive a PDF report by e-mail. It can be very useful for automatic Verification & Validation, though it is still in the very early stage of development.

26 comments:

  1. Morning...
    I installed Code_Saturne by the terminal, but I dont know how to run it. How can I do that? I need to install Syrthes too? Thanks

    ReplyDelete
  2. Hi Renan Neves,

    You need to start with the code_saturne script from the terminal, create a study and a case, configure the case with GUI and then simulate. Please refer to my previous post as an example,

    http://code-saturne.blogspot.com/2010/02/cfd-example-laminar-flow-along-2d_06.html

    The major change of the current version is that the script cs was renamed to code_saturne.

    Good luck :)

    ReplyDelete
  3. Hi,

    I tried to put "renanneves@ubuntu:~$ code_saturne create --help" but it didn't work. Did I do this wrong?
    I've been tried to do other things too, but nothing worked yet.

    (By the way, sorry for bothering you with simples issues, but I'm desperate. I'm new at UBUNTU and I'm stuck at this there's one month already and I need to finish a work 'til end of January, work that I not even started because I can't run Code Saturne)

    ReplyDelete
  4. Hi Renan,

    No worry. Can you post the error msg or the output at the console?

    It should work if you have correctly compiled and installed Code_Saturne. Can you briefly talk about how you installed CS then?

    Good luck :)

    ReplyDelete
  5. Hi,

    So, the last time that I tried to install, I'd used the installer of the EDF's site. I used the command "./install_saturne.py", because I didn't know if your way to install would work to this version of Code Saturne.
    To check if the installation was wrong, I tried to install again, but now, it didn't work. When I tried to do it, appeared this:

    renanneves@ubuntu:~/Bureau/installer$ ./install_saturne.py

    Installation of Code_Saturne
    ____________________________

    The process will take several minutes.
    You can have a look at the log file meanwhile.

    Check the setup file and some utilities presence.

    o Checking for python... /usr/bin/python
    Python version is 2.6
    o Checking for make... /usr/bin/make
    o Checking for pdflatex... /usr/bin/pdflatex
    o Checking for fig2dev... /usr/bin/fig2dev

    Installation of CGNS

    CGNS (CFD General Notation System)
    version: 2.5.5
    url: http://sourceforge.net/projects/cgns/files/cgnslib_2.5/Release%205/cgnslib_2.5-5.tar.gz/download
    package: cgnslib
    source_dir: /home/renanneves/Bureau/installer/cgnslib_2.5
    install_dir: /home/renanneves/opt/cgnslib-2.5.5
    config_opts: --enable-64bit --enable-lfs

    o Configure...
    o Compile...
    o Install...
    o Clean...

    Installation of HDF5
    hdf5-1.8.7.tar.gz is not a tar archive

    So, I tried to do your way for the previous version.
    These errors appeared:

    renanneves@ubuntu:~/Bureau/bft$ make install
    Making install in src
    make[1]: entrant dans le répertoire « /home/renanneves/Bureau/bft/src »
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/bft/src »
    test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
    /bin/sh ../libtool --mode=install /usr/bin/install -c libbft.la '/usr/local/lib'
    libtool: install: /usr/bin/install -c .libs/libbft.so.1.0.0 /usr/local/lib/libbft.so.1.0.0
    /usr/bin/install: cannot remove `/usr/local/lib/libbft.so.1.0.0': Permission denied
    make[2]: *** [install-libLTLIBRARIES] Erreur 1
    make[2]: quittant le répertoire « /home/renanneves/Bureau/bft/src »
    make[1]: *** [install-am] Erreur 2
    make[1]: quittant le répertoire « /home/renanneves/Bureau/bft/src »
    make: *** [install-recursive] Erreur 1

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Hi,

    So, the last time that I tried to install, I'd used the installer of the EDF's site. I used the command "./install_saturne.py", because I didn't know if your way to install would work to this version of Code Saturne.
    To check if the installation was wrong, I tried to install again, but now, it didn't work. When I tried to do it, appeared this:

    renanneves@ubuntu:~/Bureau/installer$ ./install_saturne.py

    ...
    Installation of HDF5
    hdf5-1.8.7.tar.gz is not a tar archive
    ____

    So, I tried to do your way for the previous version.
    These errors appeared:

    renanneves@ubuntu:~/Bureau/bft$ make install
    Making install in src
    make[1]: entrant dans le répertoire « /home/renanneves/Bureau/bft/src »
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/bft/src »
    test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
    /bin/sh ../libtool --mode=install /usr/bin/install -c libbft.la '/usr/local/lib'
    libtool: install: /usr/bin/install -c .libs/libbft.so.1.0.0 /usr/local/lib/libbft.so.1.0.0
    /usr/bin/install: cannot remove `/usr/local/lib/libbft.so.1.0.0': Permission denied
    make[2]: *** [install-libLTLIBRARIES] Erreur 1
    make[2]: quittant le répertoire « /home/renanneves/Bureau/bft/src »
    make[1]: *** [install-am] Erreur 2
    make[1]: quittant le répertoire « /home/renanneves/Bureau/bft/src »
    make: *** [install-recursive] Erreur 1 ________________________________________________________

    renanneves@ubuntu:~/Bureau/ecs$ make
    make all-recursive
    make[1]: entrant dans le répertoire « /home/renanneves/Bureau/ecs »
    Making all in src/base
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/ecs/src/base »
    make[2]: Rien à faire pour « all ».
    make[2]: quittant le répertoire « /home/renanneves/Bureau/ecs/src/base »
    Making all in src/pre-post
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/ecs/src/pre-post »
    make[2]: Rien à faire pour « all ».
    make[2]: quittant le répertoire « /home/renanneves/Bureau/ecs/src/pre-post »
    Making all in src/util
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/ecs/src/util »
    make[2]: Rien à faire pour « all ».
    make[2]: quittant le répertoire « /home/renanneves/Bureau/ecs/src/util »
    Making all in src/appli
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/ecs/src/appli »
    make[2]: Rien à faire pour « all ».
    make[2]: quittant le répertoire « /home/renanneves/Bureau/ecs/src/appli »
    Making all in src/outils
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/ecs/src/outils »
    make[2]: Rien à faire pour « all ».
    make[2]: quittant le répertoire « /home/renanneves/Bureau/ecs/src/outils »
    Making all in po
    make[2]: entrant dans le répertoire « /home/renanneves/Bureau/ecs/po »
    test ! -f ./cs_preprocess.pot || \
    test -z "fr.gmo" || make fr.gmo
    make[3]: entrant dans le répertoire « /home/renanneves/Bureau/ecs/po »
    rm -f fr.gmo && : -c --statistics --verbose -o fr.gmo fr.po
    mv: impossible d'évaluer «t-fr.gmo»: Aucun fichier ou dossier de ce type
    make[3]: *** [fr.gmo] Erreur 1
    make[3]: quittant le répertoire « /home/renanneves/Bureau/ecs/po »
    make[2]: *** [stamp-po] Erreur 2
    make[2]: quittant le répertoire « /home/renanneves/Bureau/ecs/po »
    make[1]: *** [all-recursive] Erreur 1
    make[1]: quittant le répertoire « /home/renanneves/Bureau/ecs »
    make: *** [all] Erreur 2

    __

    Unfortunately the problem is with the installation again. Could you help me?

    Really thanks in advance!

    ReplyDelete
  8. Hey, "salad"!
    Really thanks for the help! I could do it! I was missing 1 library and there was one else that shouldn't have been installed. I deleted that last one and installed "gettext", and all now I can run that command.

    Really thanks, man! If I have other trouble I'll be back.
    Congratulations for you blog. It's really helpful.

    Best Regards

    ReplyDelete
  9. Hi Renan,

    Great to hear that you have fixed the problem and make it run.

    Best regards,

    ReplyDelete
  10. Hey Salad,

    I'm here again to bother you.

    I meshed using Salome, and I tried to run in the Code Saturne. But, as soon as I clicked in "check mesh" it appears to me:

    Lecture du fichier de maillage au format MED (EDF/CEA)
    ------------------------------
    Fichier de maillage : /home/renanneves/CYL/MESH/Cylindre2.med


    Nom du maillage : Mesh_1


    Erreur a l'exécution de l'ECS
    =============================

    ecs_pre_med.c:427: Erreur fatale.

    MED : erreur à la lecture du fichier "/home/renanneves/CYL/MESH/Cylindre2.med".
    Erreur à la lecture des coordonnées.


    Pile d'appels
    1: 0x7f5ad9787152 (libbft.so.1)
    2: 0x427b13 (cs_preprocess)
    3: 0x40d51b (cs_preprocess)
    4: 0x409570 (cs_preprocess)
    5: 0x7f5ad879ec4d (libc.so.6)
    6: 0x403839 (cs_preprocess)
    Fin de la pile

    ____

    I thought that it could be problem with the mesh, but I did another one, and the error kept the same.
    Would you know what I need to do?

    Best Regards

    ReplyDelete
  11. I followed all the steps to install Code Saturne that was in your blog, but maybe my problem is that i didn't compile the Code Saturne. I don't know...

    ReplyDelete
  12. By the way, using UNV instead MED, the "check part" worked. What the difference between them?

    Best Regards,

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. By the way, I tried to run the calculation, but it didn't work...

    This is the error:

    Starting calculation
    ********************************************

    mpiexec_ubuntu: cannot connect to local mpd (/tmp/mpd2.console_renanneves); possible causes:
    1. no mpd is running on this host
    2. an mpd is running but was started without a "console" (-n option)
    In case 1, you can start an mpd on this host with:
    mpd &
    and you will be able to run jobs just on this host.
    For more details on starting mpds on a set of hosts, see
    the MPICH2 Installation Guide.
    Error running the calculation.

    Check Kernel log (listing) and error* files for details


    ********************************************
    Error in calculation stage.
    ********************************************

    Thanks in advance

    ReplyDelete
  15. Hi Renan,

    Sorry for this late reply.

    I suspect the error related to MED is due to the absence of the correct MED library files, because when using UNV it worked. UNV support is native, but MED support requires additional libraries (MED, HDF).

    Regarding the error of calculation, it seems that you used a wrong platform. For Ubuntu, you may firstly try 1 CPU core for calculating, (check the last step of configuration in the GUI), and then link with openmpi for parallel computations.

    Good luck,

    ReplyDelete
  16. Salad,

    To install MED 3.0.3, I need to install HDF5 1.8.7. I downloaded from HDF5's site, but I don't know how to install. Can you help me?

    http://www.hdfgroup.org/HDF5/release/obtain5.html

    Best Regards

    ReplyDelete
  17. Hi Renan,

    Please refer to my previous posts on Code_Saturne compilation; there are some tips on how to compile HDF5 packages, e.g.

    http://code-saturne.blogspot.com/2009/08/installation-of-codesaturne-200-on.html

    Can you see and report the HDF5 version if you use apt-get to install it? Thanks.

    http://code-saturne.blogspot.com/2010/06/installation-of-codesaturne-20-rc1-on.html

    Good luck :)

    ReplyDelete
  18. Hi Salad!

    I'm here, again, another time, to bother you.
    That's the deal now:

    I could solve the problem with the ".med". But now, when I try to run the Code Saturne, it says the it can't run because the problem is with the post-processing (I want that the post-processing be MED).

    That's the error now:

    In the terminal

    --------------------------------------------------------------------------
    MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
    with errorcode 1.

    NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
    You may or may not see output from other processes, depending on
    exactly when Open MPI kills them.
    --------------------------------------------------------------------------
    --------------------------------------------------------------------------
    mpirun has exited due to process rank 0 with PID 9718 on
    node ubuntu exiting without calling "finalize". This may
    have caused other processes in the application to be
    terminated by signals sent by mpirun (as reported here).
    --------------------------------------------------------------------------
    Error running the calculation.

    Check Kernel log (listing) and error* files for details

    and

    In the file

    fvm_writer.c:663: Erreur fatale.

    Format type "MED_fichier " required for case "chr" is not available


    Pile d'appels :
    1: 0x7f1680323920 (libfvm.so.0)
    2: 0x7f168067c67a (libsaturne.so.0)
    3: 0x7f168067caf0 (libsaturne.so.0)
    4: 0x7f168055a4f4 (libsaturne.so.0)
    5: 0x7f168055af35 (libsaturne.so.0)
    6: 0x7f167d63ac4d <__libc_start_main+0xfd> (libc.so.6)
    7: 0x400759 <> (cs_solver)
    Fin de la pile

    Do you have any clue about it?

    Best Regards!

    ReplyDelete
  19. Hi Renan,

    It is quite strange that CS can read MED but cannot write MED files. Can you try writing with EnSight format for post-processing and see if it works? If yes, it is indeed related to MED; if no, MED should be okay but there are other reasons accounting for the error.

    Personally I recommend EnSight and ParaView for post-process, although I used MED and it worked well.

    Good luck :)

    ReplyDelete
  20. Well,

    EnSight works with the .unv format. But I can't read "EnSight" in Salome. Can you? If yes, what do you do? If no, what software do you use?

    Really thanks!

    ReplyDelete
  21. Hi Renan,

    I don't think SALOME can read EnSight. ParaView can read EnSight and it is a popular post-process software.

    You can use MED for mesh input and Ensight for post-process.

    Good luck,

    ReplyDelete
  22. This comment has been removed by the author.

    ReplyDelete
  23. FINALLY!
    I finally finished the installation. After 2 months.

    Now, I would want to know if you could help me to simulate a simple flow in the Code Saturne. I've been simulating but the answers are not being nice.

    If yes, we can talk by email (reneves_rnn@hotmail.com). If no, it's okay! You've been helping me a lot! I'm really thankful, man!

    Best Regards

    ReplyDelete
  24. Hi Renan,

    Great to hear that.

    My gmail name is salad00. You can let me know if you have difficulties.

    Good luck,

    ReplyDelete
  25. Hi Salad,
    Thanks for such a useful post

    I am very new to all this and while I tried to run CS, Found the following problem

    MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
    with errorcode 1.

    NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
    You may or may not see output from other processes, depending on
    exactly when Open MPI kills them.
    --------------------------------------------------------------------------
    --------------------------------------------------------------------------
    mpirun has exited due to process rank 0 with PID 9718 on
    node ubuntu exiting without calling "finalize". This may
    have caused other processes in the application to be
    terminated by signals sent by mpirun (as reported here).
    --------------------------------------------------------------------------
    Error running the calculation.

    Check Kernel log (listing) and error* files for details



    Can you please kindly guide me?

    ReplyDelete