Install Code_Aster on Windows

On Linux, the official manner to install code_aster as a standalone package is to download the souces and compile from scratch. We provide here an easy way to install Code_Aster on Windows.

Install Code_Aster for windows

Download Code_Aster for windows provided in the download page.

Code_Aster for Windows 64-bit download page and download link

Right click on the downloaded file and choose “extract all…”.

Extract Code_Aster for Windows 64-bit

That’s it ! For users of the previous version, the mklink symbolic link is not needed anymore.

Test your Code_Aster installation

Open a cmd prompt, you can find it from the start menu by typing “cmd” in the search bar.

Open a cmd to run Code_Aster on Windows 7 64-bit

Navigate into the extracted Code_Aster directory with the console and run :

install\bin\as_run.bat --test forma01a

Launch as_run.bat to test Code_Aster for Windows installation on Windows 7 64-bit

Code_Aster will run the predefined testcase forma01a from the testingtests directory, it should display at the end:

DIAGNOSTIC JOB : OK

Code_Aster for Windows successfully installed and running on Windows 7 64-bit

Conclusion

Once Code_Aster successfully runs on your Windows machine, you may consider to use a graphical interface such as Salome. Then, the post Beginning with Salome and Code_Aster for Windows provides a first step by step example, and  Salome-Meca tutorials deal with more advanced feature.

77 thoughts on “Install Code_Aster on Windows

  1. Hello, I followed all the steps but I get an issue while trying to run the command “installbinas_run.bat –test forma01a”.

    Here is the log :
    ####
    c:\code_aster>install\bin\as_run.bat –test forma01a

    c:\code_aster>echo ON

    c:\code_aster>set ASTER_ROOT_DIR=c:\code_aster\install\bin\..

    c:\code_aster>set PYTHONHOME=c:\code_aster\install\bin\..\Python27

    c:\code_aster>set PYTHONPATH=c:\code_aster\install\bin\..\lib\python2.7\site-packages;c:\code_aster\install\bin\..\lib\python2.7\site-packages

    c:\code_aster>set PATH=c:\code_aster\install\bin\..\Python27;C:\Python27;C:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Program\DataOracle\Java\javapath;C:\P
    rogram\Data\Oracle\Java\javapath;C:\Windows\System32;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Skype\Phone;C:\Windows
    System32;C:\MinGW\bin;c:\program files (x86)\fluent.inc\nt\bin\nt\x86

    c:\code_aster>set PYTHONEXECUTABLE=python.exe

    c:\code_aster>set ASTER_TMPDIR=C:\code_aster\temp

    c:\code_aster>python.exe -c “import sys, asrun ; from asrun.main import main,start; del sys.argv[0]; main()” install\bin\as_run.bat –test forma01a
    starting forma01a

    _COPY_ERROR error during copying C:\code_aster\temp\astk_Romain Bousson\Romain Bousson-Romain\Bousson-profil_astk.2448 to C:\code_aster\temp\Romain Bousson-RomainBo
    usson-interactif.24482448.export
    message : Le fichier sp?cifi? est introuvable.

    ———————————————————————————
    cpu system cpu+sys elapsed
    ———————————————————————————
    Total 0.03 0.03 0.06 0.16
    ———————————————————————————

    as_run 1.13.9

    ————————————————————
    — DIAGNOSTIC JOB : _COPY_ERROR
    ————————————————————

    EXIT_CODE=4
    Le fichier spécifié est introuvable.
    Le fichier spécifié est introuvable.
    Le fichier spécifié est introuvable.
    Le chemin d’accès spécifié est introuvable.
    Le fichier spécifié est introuvable.

    c:\code_aster>
    ###

    It looks like there are some files missing, but i can’t find where is the script that controls this copying operation.
    All the paths look OK. I do have python2.7 working.
    Any idea please ? Thanks

    Like

    1. Hello Romain,
      The issue seems to be that there is a space in your username. The best way to solve this is to make sure that your username does not contain spaces (by replacing them with underscores).
      An other possibility (not tested) : Try to modify ASTER_TMPDIR in as_run.bat file, by default %TEMP% path in your case is related to the windows account and contains spaces. You may also modify some python code in installlibpython2.7site-packagesasrun, for example line 162 in run.py :

      tmp_user = osp.join(self.config['rep_tmp'],
      'astk_'+getpass.getuser())

      will create a path containing spaces if %USERNAME% contains spaces

      Liked by 1 person

      1. Thank you! It worked!
        I changed the name of my username, which was the hardest task I ever had to do on windows7. And it is indeed a difficult task. Took me an entire afternoon 🙂

        Now, I have written “Diagnostic job OK”,
        but there is still an odd message in the next line :
        “The directory name is invalid.”

        Everything looks good though, exept the log immediately after the end of the Code Aster code:
        #######
        FIN();

        # ——————————————————————————————
        try to add new values in the .comm file…
        0 (‘OK’, ‘XXXX’, ‘308.289244482’, ‘308.289244482’, ‘1.149262E-10%’, ‘0.0001% r’)
        1 (‘OK’, ‘XXXX’, ‘-88.3181823676’, ‘-88.3181823676’, ‘2.556784E-11%’, ‘0.0001% r’)
        0 {‘start’: 2649, ‘end’: 2672, ‘val’: ‘308.289244482’, ‘key’: ‘VALE_CALC’}
        1 {‘start’: 3026, ‘end’: 3050, ‘val’: ‘-88.3181823676’, ‘key’: ‘VALE_CALC’}
        Traceback (most recent call last):
        File “C:\code_aster_13-3-win64-beta-0-2\install\13.3\lib\aster\Execution\decorators.py”, line 55, in wrapper
        ret = func(*args, **kwds)
        File “C:\code_aster_13-3-win64-beta-0-2\install\13.3\lib\aster\Execution\E_SUPERV.py”, line 348, in Finish
        testcase_tools.testcase_post()
        File “C:\code_aster_13-3-win64-beta-0-2\install\13.3\lib\aster\Contrib\testcase_tools.py”, line 35, in testcase_post
        change_test_resu()
        File “C:\code_aster_13-3-win64-beta-0-2\install\13.3\lib\aster\Contrib\testcase_tools.py”, line 82, in change_test_resu
        append_to_file(‘fort.6’, howto, stdout=True)
        File “C:\code_aster_13-3-win64-beta-0-2\install\13.3\lib\aster\Contrib\testcase_tools.py”, line 90, in append_to_file
        open(fname, ‘ab’).write(txt)
        IOError: [Errno 13] Permission denied: ‘fort.6’
        continue…
        Code_Aster run ended, diagnostic : OK

        ——————————————————————————–
        Copying results

        OK Code_Aster run ended
        #######

        thanks again

        Like

      2. Thanks for the feedback. The log over Permission denied: ‘fort.6’ is a platform limitation : Windows refuse to open a file already open (fort.6 is already the sdtout of the running process). It does not impact results, this is only used for QA tests.

        “The directory name is invalid.” is an OS message, probably displayed after as_run cleanup process of temporary working files

        Liked by 1 person

  2. Hello, first of all great project. Thanks for bringing Code_Aster on Windows.

    I followed your steps, but get an error executing the test. I can’t quite figure out what the problem might be. Any idea?

    Here the log:

    C:\Users\bp\code_aster_13-3-win64-beta-0-2>install\bin\as_run.bat –test forma01a

    C:\Users\bp\code_aster_13-3-win64-beta-0-2>echo OFF
    starting forma01a

    ——————————————————————————–
    Code_Aster execution

    prepare environment in C:\Users\bp\AppData\Local\Temp\bp-Win-interactif.3273

    ——————————————————————————–
    Copying datas

    copying …tests\forma01a.comm… copying …tests\forma01a.datg… copying …tests\forma01a.mmed… Parameters : memory 506 MB – time limit 60 s

    ——————————————————————————–
    Code_Aster run

    Command line 1 :
    C:\Users\bp\code_aster_13-3-win64-beta-0-2\install\13.3\bin\aster C:\Users\bp\code_aster_13-3-win64-beta-0-2\install\13.3\lib\aster\Execution\E_SUPERV.py -commandes fort.1 –num_job=3273 –mode=interactif –rep_outils=C:\Users\bp\code_aster_13-3-win64-beta-0-2\install\outils –rep_mat=C:\Users\bp\code_aster_13-3-win64-beta-0-2\install\testing\materiau –rep_dex=C:\Users\bp\code_aster_13-3-win64-beta-0-2\install\testing\datg –numthreads=1 –suivi_batch –memjeveux=63.25 –tpmax=60.0
    Usage: ./aster.exe C:\Users\bp\code_aster_13-3-win64-beta-0-2\install\13.3\lib\aster\Execution\E_SUPERV.py [-h|–help] [options]

    aster.exe: error: option ‘–command’ expects an existing file
    Code_Aster run ended, diagnostic : _ABNORMAL_ABORT

    ——————————————————————————–
    Copying results

    _ABNORMAL_ABORT Code_Aster run ended

    ———————————————————————————
    cpu system cpu+sys elapsed
    ———————————————————————————
    Preparation of environment 0.00 0.00 0.00 0.00
    Copying datas 0.02 0.00 0.02 0.05
    Code_Aster run 0.00 0.00 0.00 2.65
    Copying results 0.00 0.00 0.00 0.00
    ———————————————————————————
    Total 0.03 0.03 0.06 2.82
    ———————————————————————————

    as_run 1.13.9

    ————————————————————
    — DIAGNOSTIC JOB : _ABNORMAL_ABORT
    ————————————————————

    EXIT_CODE=4
    The directory name is invalid.

    Like

    1. Hello Robert,
      fort.1 should correspond to installtestingtestsforma01a.comm after the “Copying data” step. It is very strange in your case, aster.exe complains that fort.1 does not exist, but it should be present in working directory C:UsersbpAppDataLocalTempbp-Win-interactif.3273 since “Copying data” step (above in the log) seems to be successful

      Like

  3. Thanks for your fast reply! Yes, I can confirm that the working directory is not created. I’ve also tried to run as administrator, just in case there is some rights issue. Same result though.

    I’ll try to investigate a little and report back in case I find something out. Using Windows 10 by the way.

    Thanks,
    Robert

    Like

  4. Hi.. thank you for bringing openfoam to windows.

    It’s seems that in my case the “create_testing_link.bat” can’t generate the testing link. How do I solve that?

    Like

    1. Hi,

      The problem may be related to access rights. You can try to create the link with this command in a cmd prompt :

      mklink /j testing 13.3\share\aster

      It will give you more information about the issue, in case of failure.

      mklink may also not work on windows network drives

      Like

      1. Thank you for the help & response.. I’ve successfully run the diagnostic..

        It’s said that the diagnostic job : OK, but the directory name is invalid. Is it going to be a problem?

        Thanks
        Joko

        Like

      2. Hi,
        Thanks for the feedback, “diagnostic job : OK” means a normal termination of the job.
        “directory name is invalid” is an OS message, related to a temporary no more existing directory after cleanup, there is no problem

        Like

  5. Hello,
    I’ve got a problem with the final step. As i open “forma02a.rmed” using “Open paraVIS file” it appears the message “Fatal error: bad allocation”. I’ve tried to change the file’s directory but it’s still not working.
    I don’t know if the problem is due to the file or it’s some program’s issue.
    Any ideas please ? Thanks

    Like

    1. Hi Francesco,
      You can still run Code_Aster a second time to recreate the “forma02a.rmed”, but I don’t believe that the issue comes from the file if you got it from a Code_Aster successful run.
      You can try to restart Salome, or to reinstall it. You may also try to directly open the file with ParaView, following this post

      Like

  6. Hello, I follow all steps in salome and code aster installation on win 8.1. Salome ran normally, but error appear with code aster diognostic job. Here is the log, Any ideas?

    C:\code_aster>install\bin\as_run.bat –test forma01a

    C:\code_aster>echo OFF
    starting forma01a
    _ABNORMAL_ABORT error getting environment

    ——————————————————————————–

    Code_Aster execution

    prepare environment in C:\Users\asshot\AppData\Local\Temp\asshot-asshot-p
    c-interactif.699

    ——————————————————————————-

    cpu system cpu+sys elapsed

    ——————————————————————————-

    Preparation of environment 0.00 0.00 0.00 0.00

    ——————————————————————————-

    Total 0.02 0.03 0.05 0.06

    ——————————————————————————-

    as_run 1.13.9

    ————————————————————
    — DIAGNOSTIC JOB : _ABNORMAL_ABORT
    ————————————————————

    EXIT_CODE=4

    Like

    1. Hello Dmitry,
      Thanks for the feedback and the log.
      I don’t know if it will solve your issue but it seems that there are some remaining UNIX syntax in file:
      install\13.3\share\aster\profile.bat
      You can try to edit profile.bat file and replace $PYTHONPATH by %PYTHONPATH%

      Like

  7. Thank you very much for the port.
    Any advice to run code aster from any working directory?
    Adding the path “%codeaster%installbin ” in the PATH environment variable?

    Like

    1. Hello Roberto,
      As you suggested, it is possible to launch as_run from any working directory (without specifying the full %codeaster% path) by adding “%codeaster%installbin” in the Windows PATH environment variable.
      Thanks for the advice

      Like

  8. Greetings,
    I’m in trouble in Salome install process. I followed the steps and when Salome should start, stay in the prompt windows and nothing happens. I have already waited for a long time.
    That is what appear to me.
    runSalome running on Familia
    Searching for a free port for naming service: 2816 – OK
    Searching Naming Service found in 0.0 seconds
    Searching /Registry in Naming Service + found in 0.5 seconds
    Searching /Kernel/ModulCatalog in Naming Service +th. 00000000018AFAF0 – Trace ……..KERNEL_SRC\src\Module\Catalog\SALOME_Module\Catalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
    found in 0.5 seconds
    RunStudy
    Searching /myStudyManager in Naming Service ++++++ found in 3.0 seconds
    Warning, no type found for resource “localhost”, using default value “single_machine”
    Searching /Containers/Familia/FactoryServer in Naming Service +++ found in 1.5 seconds
    Start SALOME, elapsed time : 0.0 seconds

    And in the code aster install process, when “create testing link.bat” is clicked the folder does not appear.

    How can I proceed? Thanks

    Like

    1. Hello,
      For Salome, it could be your firewall or maybe something got wrong during archive extraction. You can try to re-extract it.
      For Code aster, you can try to run “create_testing_link.bat” in a cmd prompt and see what append.
      A new package is available in our download page. It’s a preliminary release that contains salome + code aster 13.4 + asterstudy. In this package, Code aster can be launched graphically in asterstudy module, and is still usable with cmd prompt. Code_Aster subdirectory is PRODUCTScode_aster, the “create_testing_link.bat” is no more needed in this package.

      Like

      1. Thanks for the reply, and I still with the error.
        I already re-extract Salome, delete all files, downloaded the new package, re-extract again, I have allowed all firewall requirements and I still have the same problem, Salome does not start.

        cmd log:
        runSalome running on Familia
        Searching for a free port for naming service: 2817 – OK
        Searching Naming Service found in 0.0 seconds
        Searching /Registry in Naming Service + found in 0.5 seconds
        Searching /Kernel/ModulCatalog in Naming Service +th. 0000000001CDFD30 – Trace ……..KERNEL_SRC\src\Module\Catalog\SALOME_Module\Catalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
        found in 0.5 seconds
        RunStudy
        Searching /myStudyManager in Naming Service + found in 0.5 seconds
        Warning, no type found for resource “localhost”, using default value “single_machine”
        Searching /Containers/Familia/FactoryServer in Naming Service + found in 0.5 seconds
        Start SALOME, elapsed time : 0.0 seconds

        Like

  9. Now this.

    Configure parser: processing C:\Users\ManassÚs\Downloads\code aste\MODULES\GUI\RELEASE\GUI_INSTALL\share\salome\resources\gui\SalomeApp.xml …
    Configure parser: Error : can not read configuration file C:\Users\ManassÚs\Downloads\code aste\MODULES\GUI\RELEASE\GUI_INSTALL\share\salome\resources\gui\SalomeApp.xml
    Configure parser: user configuration file is
    Configure parser: Warning : can not find user configuration file
    Configure parser: processing C:\Users\ManassÚs\Downloads\code aste\MODULES\GUI\RELEASE\GUI_INSTALL\share\salome\resources\gui\SalomeApp.xml …
    Configure parser: Error : can not read configuration file C:\Users\ManassÚs\Downloads\code aste\MODULES\GUI\RELEASE\GUI_INSTALL\share\salome\resources\gui\SalomeApp.xml
    Configure parser: processing C:\Users\ManassÚs\Downloads\code aste\MODULES\GUI\RELEASE\GUI_INSTALL\share\salome\resources\gui\SalomeApp.xml …
    Configure parser: Error : can not read configuration file C:\Users\ManassÚs\Downloads\code aste\MODULES\GUI\RELEASE\GUI_INSTALL\share\salome\resources\gui\SalomeApp.xml
    Configure parser: user configuration file is
    Configure parser: Warning : can not find user configuration file
    runSalome running on Familia
    Searching for a free port for naming service: 2818 – OK
    startSalome {‘foreground’: 1, ‘save_config’: True, ‘valgrind_session’: False, ‘file’: 0, ‘plugins’: [], ‘ddd_session’: False, ‘port’: ‘2818’, ‘appname’: ‘SalomeApp’, ‘user_config’: ”, ‘splash’: False, ‘killall’: 0, ‘shutdown_servers’: 0, ‘logger’: 0, ‘session_gui’: False, ‘portkill’: 0, ‘pinter’: 0, ‘xterm’: 0, ‘pyscript’: [], ‘wake_up_session’: False, ‘study_hdf’: None, ‘key’: [], ‘gdb_session’: False, ’embedded’: [], ‘standalone’: [], ‘gui’: 0, ‘modules’: [], ‘batch’: False, ‘noexcepthandler’: 0}
    Launch Naming Service++ Name Service… ss = [‘NameService=corbaname::Familia:2818’] … ok
    to list contexts and objects bound into the context with the specified name : showNS
    Searching Naming Service found in 0.0 seconds
    Searching /Registry in Naming Service + found in 0.5 seconds
    Searching /Kernel/ModulCatalog in Naming Service +th. 000000000225F680 – Trace ……..KERNEL_SRC\src\Module\Catalog\SALOME_Module\Catalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
    found in 0.5 seconds
    RunStudy
    Searching /myStudyManager in Naming Service + found in 0.5 seconds
    Searching /Containers/Familia/FactoryServer in Naming Service +Warning, no type found for resource “localhost”, using default value “single_machine”
    found in 0.5 seconds

    Start SALOME, elapsed time : 0.0 seconds
    additional external python interpreters: 0
    addToKillList: 9536 : SALOMEDS_Server
    addToKillList: 3360 : SALOME_Container
    addToKillList: 10328 : SALOME_LauncherServer
    addToKillList: 13044 : SALOME_Registry_Server
    addToKillList: 2264 : SALOME_ModuleCatalog_Server
    addToKillList: 13276 : omniNames
    addToKillList: 12536 : SALOME_ConnectionManagerServer

    Saving of the dictionary of Salome processes in c:usersmanass~1appdatalocaltemplogsManasses.Manasses_Familia_2818_SALOME_pidict
    To kill SALOME processes from a console (kill all sessions from all ports):
    python killSalome.py
    To kill SALOME from the present interpreter, if it is not closed :
    killLocalPort() –> kill this session
    (use CORBA port from args of runSalome)
    givenPortKill(port) –> kill a specific session with given CORBA port
    killAllPorts() –> kill all sessions

    runSalome, with –killall option, starts with killing
    the processes resulting from the previous execution.

    — registered objects tree in Naming Service —

    Registry.object
    Kernel.dir

    ModulCatalog.object
    Study.dir

    myStudyManager.object
    ConnectionManager.object
    ResourcesManager.object
    ContainerManager.object
    SalomeLauncher.object
    DataServerManager.object
    DataServerManager.dir

    Default.object
    Containers.dir

    Familia.dir

    FactoryServer.object

    Like

    1. Thanks for the trace, I was able to reproduce this issue simply by adding a “é” character in the path. It seems that salome does not like special characters in the path. You can try to move your install directory elsewhere to avoid this. By the way, you should also avoid spaces in the path that could lead to dysfunctions in the current version of code_aster.

      Like

  10. Now it’s working. But when I’ve clicked on create a new AsterStudy the following error appears.
    “Failed to activate module AsterStudy”.
    But anyway thank you for the support so far.

    Like

    1. Hi
      I installed version of stand-alone code_aster 13.4 ,the test run went smoothly

      ****************************************
      FERMETURE DE LA BASE “GLOBALE” EFFECTUEE.

      ArrÛt normal dans “FIN”.
      ARRET NORMAL DANS “FIN” PAR APPEL A “JEFINI”.

      ———————————————————————————
      cpu system cpu+sys elapsed
      ———————————————————————————
      Preparation of environment 0.02 0.00 0.02 0.02
      Copying datas 0.00 0.00 0.00 0.03
      Code_Aster run 0.00 0.00 0.00 3.06
      Copying results 0.00 0.00 0.00 0.00
      ———————————————————————————
      Total 0.05 0.02 0.06 3.24
      ———————————————————————————

      as_run 1.13.10

      ————————————————————
      — DIAGNOSTIC JOB : OK
      ————————————————————

      The directory name is invalid.

      C:\CodeAster\13.4\install\bin>X:
      ******************************************************

      when I tried to run a nromal case:

      *******************************************************

      X:\composite\Esempio\ZZZZ176>as_run zzzz176a.export

      X:\composite\Esempio\ZZZZ176>echo ON

      X:\composite\Esempio\ZZZZ176>set ASTER_ROOT_DIR=C:\CodeAster\13.4\install\bin\..

      X:\composite\Esempio\ZZZZ176>set OUTILS=C:\CodeAster\13.4\install\bin\..\outils

      X:\composite\Esempio\ZZZZ176>set PYTHONHOME=C:\CodeAster\13.4\install\bin\..\Python27

      X:\composite\Esempio\ZZZZ176>set PYTHONPATH=C:\CodeAster\13.4\install\bin\..\lib\python2.7\site-packages;C:\CodeAster\13.4\install\
      bin\..\lib\python2.7\site-packages

      X:\composite\Esempio\ZZZZ176>set PATH=C:\CodeAster\13.4\install\bin\..\Python27;C:\CodeAster\13.4\install\bin\..\outils;C:\CodeAste
      r\13.4\install\bin\..\Python27;C:\CodeAster\13.4\install\bin\..\outils;C:\CodeAster\13.4\install\bin\..\Python27;C:\CodeAster\13.4\
      install\bin\..\outils;C:\CodeAster\13.4\install\bin\..\Python27;C:\CodeAster\13.4\install\bin\..\outils;C:\ProgramData\OracleJav
      ajava\path;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\Windows\PowerShell\v1.0;C:\Program Files (x
      86)\MiKTeX 2.9\miktex\bin;C:\CodeAster\13.4\install\bin;C:\Program Files\Tortoise\SVN\bin;C:\Program Files (x86)\LyX 2.2\Perl\bin;
      C:\dislin\win;C:\mingw-w64\mingw64\bin;C:\MinGW\msys1.0\bin

      X:\composite\Esempio\ZZZZ176>set PYTHONEXECUTABLE=python.exe

      X:\composite\Esempio\ZZZZ176>set ASTER_TMPDIR=C:\Users\ADMINI~1\AppData\Local\Temp

      X:\composite\Esempio\ZZZZ176>python.exe -c “import sys, asrun ; from asrun.main import main,start; del sys.argv[0]; main()” as_run
      zzzz176a.export

      UNEXPECTED_VALUE Unknown mode (”), use ‘interactif’ instead

      _FILE_NOT_FOUND file not found : config.txt

      ———————————————————————————
      cpu system cpu+sys elapsed
      ———————————————————————————
      Total 0.02 0.03 0.05 0.34
      ———————————————————————————

      as_run 1.13.10

      ————————————————————
      — DIAGNOSTIC JOB : _FILE_NOT_FOUND
      ————————————————————

      EXIT_CODE=4
      The directory name is invalid.

      X:\composite\Esempio\ZZZZ176>

      Like

      1. I red the FAQ checked the export file but I got the same error, then I tried with the file copied from the directory of the installation without modification but I got the same error

        Like

      2. thank you. You was right. after the run the export file has been modified.
        Would you point me to some documentation about the the syntax of the export file?

        Best regards

        Like

  11. Hi, my Salome is on Windows but I have a problem with Code Aster, I did eveything what You said (in this instruction) in the end I have a informations DIAGNOSTIC : OK, after that I run my Salome and switch Geometry/Mesh on AsterStudy and program communicate : Faild to activate module AsterStudy, sorry for my knowledge but I’m simple engineer not softwear developer.

    Like

  12. …….installbinas_run.bat –test forma01aset_env.bat – like this ? Sorry but I’m not a programist, I have to past a path to cmd like this ?

    Like

    1. No, your issue with AsterStudy concerns Salome-Meca, not Code_Aster. After the file WORK\set_env.bat modified with set debug=1, you can run Salome-Meca again by double clicking on WORK\run_salome.bat. Then Salome-Meca will launch, as usual with a cmd console in the background, But this time some debug info should appear in the cmd console when AsterStudy fails to activate.

      Like

  13. Hi Maximilien,
    When I try to test my installation I get an EXIT_CODE=4 with these logs. My system is configured in french so there are some lines I translated the best that I could (the translated parts are between asterisks).

    F:\Mes documents\Neapoli\Code_aster\install\bin>as_run.bat –test forma01a

    F:\Mes documents\Neapoli\Code_aster\install\bin>echo OFF
    starting forma01a
    ‘cmd.exe’ n’est pas reconnu en tant que commande interne
    ou externe, un programme exécutable ou un fichier de commandes.
    *** ‘cmd.exe’ isn’t recognised as an internal or external command, an executable or an executable file***

    _ABNORMAL_ABORT error getting environment

    ——————————————————————————–

    Code_Aster execution

    prepare environment in C:\Users\Invo\AppData\Local\Temp\Robin-MSIGT702PC-
    interactif.2140

    ——————————————————————————-

    cpu system cpu+sys elapsed

    ——————————————————————————-

    Preparation of environment 0.00 0.00 0.00 0.00

    ——————————————————————————-

    Total 0.03 0.00 0.03 0.05

    ——————————————————————————-

    as_run 1.13.10

    ————————————————————
    — DIAGNOSTIC JOB : _ABNORMAL_ABORT
    ————————————————————

    EXIT_CODE=4
    Nom de répertoire non valide.
    ***repertory name not valid***

    Like

  14. Good morning. I followed all the steps but when i execute the command ”as run.bat” appears this issue
    ———————————————————————
    ———————————————————————

    Microsoft Windows [Versión 10.0.17134.165]
    (c) 2018 Microsoft Corporation. Todos los derechos reservados.

    C:\Users\ITZAMNÁ>cd Desktop\code-aster_13-4-win64

    C:\Users\ITZAMNÁ\Desktop\code-aster_13-4-win64>install\bin\as_run.bat –test forma01a

    C:\Users\ITZAMNÁ\Desktop\code-aster_13-4-win64>echo OFF
    Traceback (most recent call last):
    File “”, line 1, in
    File “C:\Users\ITZAMN┴\Desktop\code-aster_13-4-win64\install\lib\python2.7\site-packages\asrun\main.py”, line 113, in main
    start()
    File “C:\Users\ITZAMN┴\Desktop\code-aster_13-4-win64\install\lib\python2.7\site-packages\asrun\main.py”, line 96, in start
    meth(run, *args)
    File “C:\Users\ITZAMN┴\Desktop\code-aster_13-4-win64\install\lib\python2.7\site-packages\asrun\execute.py”, line 586, in StartTestNow
    prof = get_export(run, testcase, resutest=resutest)
    File “C:\Users\ITZAMN┴\Desktop\code-aster_13-4-win64\install\lib\python2.7\site-packages\asrun\maintenance.py”, line 1505, in get_export
    reptest=[], test=testcase, resutest=resutest)
    File “C:\Users\ITZAMN┴\Desktop\code-aster_13-4-win64\install\lib\python2.7\site-packages\asrun\execution.py”, line 703, in build_test_export
    export = _existing_file(test + ‘.export’, lrep, last=True)
    File “C:\Users\ITZAMN┴\Desktop\code-aster_13-4-win64\install\lib\python2.7\site-packages\asrun\execution.py”, line 922, in _existing_file
    if osp.exists(osp.join(dirn, fname)):
    File “C:\Users\ITZAMN┴\Desktop\code-aster_13-4-win64\install\bin\..\Python27\lib\ntpath.py”, line 84, in join
    result_path = result_path + p_path
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc1 in position 13: ordinal not in range(128)
    ————————————————————————
    ————————————————————————
    Thanks for your support!

    Like

  15. Hello,
    Is it possible to use the GUI (Aster Study) with the latest solver(Code_Aster 2018)?
    If yes, how should I proceed for the installation?
    Thanks
    Kazu

    Like

  16. Hello everyone,
    How can I run Astk in windows 10 after download Code_Aster for Windows (solver only). I can run with the command “as_run file_name.export” but I cannot run with a parametric study “as_run –serv file_name.export” (I tried in linux everything is OK, but in Windows10 there is a error message: TypeError: ToDelete() got an unexpected keyword argument ‘remove_dirs’

    So could someone help me to overcome this problem,
    Thanks you so much,
    BR,
    Mr. Tuyen

    Like

  17. Hi all!
    I have problem with Code-Aster (in all cases – as a Salome-meca part, as a stand-alone solver, version 2017 and 2018 )
    I can’t find any spaces in the dir names, but then I run the test-case, I have the next results.
    How I can cure this problem?

    D:\CodeAster2017>install\bin\as_run.bat –test forma01a

    D:\CodeAster2017>echo OFF
    starting forma01a

    ——————————————————————————–
    Code_Aster execution

    prepare environment in C:\Users\D36B~1\AppData\Local\Temp\????-MSI-interactif.6049

    ——————————————————————————–
    Copying datas

    copying …\tests\forma01a.comm… copying …\tests\forma01a.datg… copying …\tests\forma01a.mmed… Parameters : memory 506 MB – time limit 60 s

    ——————————————————————————–
    Code_Aster run

    Command line 1 :
    D:\CodeAster2017\install\13.4\bin\aster D:\CodeAster2017\install\13.4\lib\aster\Execution\E_SUPERV.py -commandes fort.1 –num_job=6049 –mode=interactif –rep_outils=D:\CodeAster2017\install\outils –rep_mat=D:\CodeAster2017\install\13.4\share\aster\materiau –rep_dex=D:\CodeAster2017\install\13.4\share\aster\datg –numthreads=1 –suivi_batch –memjeveux=63.25 –tpmax=60.0
    D:\CodeAster2017\install\13.4\lib\aster\aster_settings.py:244: DeprecationWarning: this command line option is deprecated : –rep_outils
    coreopts.parse_args(argv or sys.argv)

    La plate-forme utilis?e ne permet pas d’avoir acc?s ? la valeur de VmPeak.

    Ouverture en ?criture du fichier ./vola.1

    ___ _ _ _ __ ___ _
    / __|___ __| |___ /_\ __| |_ ___ _ _ \ \ / (_)_ _ __| |_____ __ _____
    | (__/ _ \/ _` / -_) / _ \ (_-< _/ -_) '_| \ \/\/ /| | ' \/ _` / _ \ V V (_-<
    \___\___/\__,_\___| /_/ \_\/__/\__\___|_| \_/\_/ |_|_||_\__,_\___/\_/\_//__/
    https://code-aster-windows.com

    — CODE_ASTER — VERSION : EXPLOITATION (stable) —

    Version 13.4.0 modifi?e le 29/06/2017
    r?vision 503b50e0ecda – branche 'v13'
    Copyright EDF R&D 1991 – 2019

    Ex?cution du : 02/16/19 17:24:36
    Nom de la machine : MSI

    Architecture : 64bit
    Type de processeur : AMD64
    Syst?me d'exploitation : Windows 8

    Langue des messages : en (cp1251)

    Version de Python : 2.7.9
    Version de NumPy : 1.12.0

    !—————————————————————————–!
    ! !
    ! !
    ! Vous utilisez une vieille version de Code_Aster. !
    ! !
    ! En mettant ? jour votre version, vous b?n?ficierez des derni?res !
    ! am?liorations !
    ! apport?es au code depuis 15 mois. !
    ! Si vous avez des d?veloppements priv?s, vous risquez d’avoir un travail !
    ! !
    ! important de portage si vous ne suivez pas les mises ? jour. !
    ! !
    ! !
    ! Ceci est une alarme. Si vous ne comprenez pas le sens de cette !
    ! alarme, vous pouvez obtenir des r?sultats inattendus ! !
    !—————————————————————————–!

    Parall?lisme MPI : inactif
    Parall?lisme OpenMP : actif
    Nombre de processus utilis?s : 1
    Version de la librairie HDF5 : 1.8.14
    Version de la librairie MED : 3.2.1
    Librairie MFront : non disponible
    Version de la librairie MUMPS : 5.1.1
    Librairie PETSc : non disponible
    Version de la librairie SCOTCH : 6.0.4

    M?moire limite pour l’ex?cution : 506.00 Mo
    consomm?e par l’initialisation : 0.00 Mo

    par les objets du jeu de commandes : 0.00 Mo
    reste pour l’allocation dynamique : 506.00 Mo
    Taille limite des fichiers d’?change : 12.00 Go

    # ——————————————————————————————
    # Commande No : 0001 Concept de type : –
    # ——————————————————————————————
    DEBUT(CODE=_F(NIV_PUB_WEB=’INTERNET’,),
    DEBUG=_F(SDVERI=’OUI’,
    JEVEUX=’NON’,
    JXVERI=’NON’,
    HIST_ETAPE=’NON’,),
    INFO=1,
    PAR_LOT=’OUI’,
    IMPR_MACRO=’NON’,
    MEMOIRE=_F(TAILLE_BLOC=800.0,
    TAILLE_GROUP_ELEM=1000,),
    RESERVE_CPU=_F(BORNE=900,),
    MESURE_TEMPS=_F(MOYENNE=’NON’,
    NIVE_DETAIL=1,),
    )

    D?bogage SDVERI demand?

    !——————————————————————————————-!
    ! !
    ! !
    ! Les mots-cl?s facteurs CODE et DEBUG dans DEBUT/POURSUITE sont r?serv?s aux cas-tests. !
    ! Il ne faut pas les utiliser dans les !
    ! ?tudes car ils modifient certaines valeurs par !
    ! d?faut des commandes DEBUT/POURSUITE qui ont des cons?quences sur le comportement !
    ! !
    ! en cas d’erreur ou sur les performances. !
    !——————————————————————————————-!

    Valeur initiale du temps CPU maximum = 60 secondes
    Valeur du temps CPU maximum pass? aux commandes = 50 secondes
    R?serve
    CPU pr?vue = 10 secondes

    Ouverture en ?criture du fichier ./glob.1

    Ouverture en ?criture du fichier ./vola.1

    Ouverture en lecture du fichier D:\CodeAster2017\install\13.4\lib\aster/elem.1

    Nom de la base : ELEMBASE
    Cr??e avec la version : 13.04.00
    Nombre
    d’enregistrements utilis?s : 44
    Nombre d’enregistrements maximum : 512
    Longueur d’enregistrement (octets)
    : 819200
    Nombre d’identificateurs utilis?s : 123
    Taille maximum du r?pertoire : 300

    Pourcentage d’utilisation du r?pertoire : 41 %

    Ouverture en lecture du fichier D:\CodeAster2017\install\13.4\lib\aster/elem.1

    Nom de la base : ELEMBASE
    Nombre d’enregistrements utilis?s : 44
    Nombre
    d’enregistrements maximum : 512
    Longueur d’enregistrement (octets) : 819200
    Nombre total d’acc?s en lecture
    : 62
    Volume des acc?s en lecture : 48.44 Mo.
    Nombre total d’acc?s en ?criture : 0

    Volume des acc?s en ?criture : 0.00 Mo.
    Nombre d’identificateurs utilis?s : 123
    Taille maximum
    du r?pertoire : 300
    Pourcentage d’utilisation du r?pertoire : 41 %

    Relecture des catalogues des ?l?ments faite.

    Fin de lecture (dur?e 0.000000 s.)
    # Fin commande No : 0001 user+syst: 0.03s (syst: 0.02s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0002 Concept de type : mater_sdaster
    # ——————————————————————————————
    MA = DEFI_MATERIAU(ELAS=_F(E=2.E5,
    NU=0.3,
    COEF_AMOR=1.0,),
    INFO=1,)

    MATERIAU : MA
    RELATION DE COMPORTEMENT: ELAS

    # Fin commande No : 0002 user+syst: 0.02s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0003 Concept de type : maillage_sdaster
    # ——————————————————————————————
    MAIL = LIRE_MAILLAGE(FORMAT=’MED’,
    INFO_MED=1,
    INFO=1,
    UNITE=20,
    VERI_MAIL=_F(APLAT=1.E-3,
    VERIF=’OUI’,),
    )

    V?rification du maillage.

    ———— MAILLAGE MAIL – IMPRESSIONS NIVEAU 1 ————

    SA-16-FEVR-2019 17:24:36

    NOMBRE DE NOEUDS 259

    NOMBRE DE MAILLES 144
    SEG3 30
    TRIA6 114

    NOMBRE DE GROUPES DE NOEUDS 5
    A 1
    B 1
    D 1
    F 1
    G 1

    NOMBRE DE GROUPES DE MAILLES 5
    haut 2
    trou 5
    gauche 10
    droite 4
    bas 9

    ——————————————————————————–

    # Fin commande No : 0003 user+syst: 0.03s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0004 Concept de type : modele_sdaster
    # ——————————————————————————————
    MODE = AFFE_MODELE(MAILLAGE=MAIL,
    AFFE=_F(PHENOMENE=’MECANIQUE’,
    TOUT=’OUI’,
    MODELISATION=(‘C_PLAN’, ),),
    INFO=1,
    VERI_JACOBIEN=’OUI’,
    DISTRIBUTION=_F(PARTITIONNEUR=’METIS’,
    METHODE=’SOUS_DOMAINE’,),
    )

    Sur les 144 mailles du maillage MAIL, on a demand? l’affectation de 144, on a pu en affecter 144
    Mod?lisation Type maille ?l?ment fini Nombre
    C_PLAN TRIA6 MECPTR6 114
    SEG3 MEPLSE3 30
    #2 Calculs elementaires et assemblages CPU (USER+SYST/SYST/ELAPS): 0.00 0.00 0.00
    # Fin commande No : 0004 user+syst: 0.03s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0005 Concept de type : maillage_sdaster
    # ——————————————————————————————
    MAIL = MODI_MAILLAGE(reuse=MAIL,
    MAILLAGE=MAIL,
    ORIE_PEAU_2D=_F(GROUP_MA=(‘haut’, ),),
    INFO=1,)

    TRAITEMENT DU GROUP_MA: haut DE 2 MAILLES
    0 MAILLE(S) ONT ETE ORIENTEE(S)
    # Fin commande No : 0005 user+syst: 0.02s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0006 Concept de type : cham_mater
    # ——————————————————————————————
    MATE = AFFE_MATERIAU(MAILLAGE=MAIL,
    AFFE=_F(MATER=(MA, ),
    TOUT=’OUI’,),
    INFO=1,
    )

    # Fin commande No : 0006 user+syst: 0.02s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0007 Concept de type : char_meca
    # ——————————————————————————————
    CHAR = AFFE_CHAR_MECA(MODELE=MODE,
    DDL_IMPO=(_F(GROUP_MA=(‘bas’, ),
    DY=0.0,),
    _F(GROUP_MA=(‘gauche’, ),
    DX=0.0,),
    ),
    PRES_REP=_F(GROUP_MA=(‘haut’, ),
    PRES=-100.0,),
    INFO=1,
    VERI_NORM=’OUI’,)

    # Fin commande No : 0007 user+syst: 0.06s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0008 Concept de type : evol_elas
    # ——————————————————————————————
    RESU = MECA_STATIQUE(CHAM_MATER=MATE,
    MODELE=MODE,
    EXCIT=_F(CHARGE=CHAR,
    TYPE_CHARGE=’FIXE_CSTE’,),
    INFO=1,
    OPTION=’SIEF_ELGA’,
    SOLVEUR=_F(RENUM=’METIS’,
    STOP_SINGULIER=’OUI’,
    ELIM_LAGR=’NON’,
    NPREC=8,
    METHODE=’MULT_FRONT’,),
    )

    Le syst?me lin?aire ? r?soudre a 598 degr?s de libert?:
    – 518 sont des degr?s de libert? physiques
    (ils sont port?s par 259
    noeuds du maillage)
    – 80 sont les couples de param?tres de Lagrange associ?s
    aux 40 relations lin?aires dualis?es.

    La matrice est de taille 598 ?quations.
    Elle contient 6025 termes non nuls si elle est sym?trique et 11452 termes non nuls si elle
    n’est pas sym?trique.
    Soit un taux de remplissage de 3.202 %.
    CHAMP STOCKE : DEPL INSTANT : 0.00000E+00 NUMERO D’ORDRE : 1
    #1 Resolution des systemes lineaires CPU (USER+SYST/SYST/ELAPS): 0.00 0.00 0.00
    #2 Calculs elementaires et assemblages CPU (USER+SYST/SYST/ELAPS): 0.01 0.00 0.00
    # Fin commande No : 0008 user+syst: 0.05s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0009 Concept de type : evol_elas
    # ——————————————————————————————
    RESU = CALC_CHAMP(reuse=RESU,
    RESULTAT=RESU,
    PRECISION=1.E-06,
    CRITERES=(‘SIEQ_ELNO’, ‘SIEQ_ELGA’),
    CONTRAINTE=(‘SIGM_ELNO’, ),
    INFO=1,
    CRITERE=’RELATIF’,)

    #2 Calculs elementaires et assemblages CPU (USER+SYST/SYST/ELAPS): 0.00 0.00 0.00
    # Fin commande No : 0009 user+syst: 0.02s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0010 Concept de type : evol_elas
    # ——————————————————————————————
    RESU = CALC_CHAMP(reuse=RESU,
    RESULTAT=RESU,
    PRECISION=1.E-06,
    CRITERES=(‘SIEQ_NOEU’, ),
    CONTRAINTE=(‘SIGM_NOEU’, ),
    INFO=1,
    CRITERE=’RELATIF’,)

    # Fin commande No : 0010 user+syst: 0.03s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0011 Concept de type : –
    # ——————————————————————————————
    IMPR_RESU(FORMAT=’MED’,
    RESU=_F(RESULTAT=RESU,
    MAILLAGE=MAIL,
    NOM_CHAM=(‘DEPL’, ‘SIGM_NOEU’, ‘SIEQ_NOEU’, ‘SIEQ_ELGA’),
    INFO_MAILLAGE=’NON’,
    IMPR_NOM_VARI=’OUI’,),
    UNITE=80,
    INFO=1,
    PROC0=’OUI’,)

    # Fin commande No : 0011 user+syst: 0.03s (syst: 0.02s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0012 Concept de type : –
    # ——————————————————————————————
    TEST_RESU(RESU=_F(NOM_CMP=’SIYY’,
    GROUP_NO=(‘B’, ),
    NOM_CHAM=’SIGM_NOEU’,
    RESULTAT=RESU,
    NUME_ORDRE=1,
    CRITERE=(‘RELATIF’, ),
    REFERENCE=’ANALYTIQUE’,
    VALE_CALC=(308.289244482, ),
    VALE_REFE=(303.0, ),
    PRECISION=0.05,
    VALE_ABS=’NON’,),
    TEST_NAN=’NON’,)

    # Fin commande No : 0012 user+syst: 0.02s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0013 Concept de type : –
    # ——————————————————————————————
    TEST_RESU(RESU=_F(NOM_CMP=’SIXX’,
    GROUP_NO=(‘A’, ),
    NOM_CHAM=’SIGM_NOEU’,
    RESULTAT=RESU,
    NUME_ORDRE=1,
    CRITERE=(‘RELATIF’, ),
    REFERENCE=’ANALYTIQUE’,
    VALE_CALC=(-88.3181823676, ),
    VALE_REFE=(-100.0, ),
    PRECISION=0.15,
    VALE_ABS=’NON’,),
    TEST_NAN=’NON’,)

    # Fin commande No : 0013 user+syst: 0.00s (syst: 0.00s, elaps: 0.00s)
    # ——————————————————————————————

    # ——————————————————————————————
    # Commande No : 0014 Concept de type : –
    # ——————————————————————————————
    FIN(INFO_RESU=’OUI’,
    RETASSAGE=’NON’,
    FORMAT_HDF=’NON’,
    PROC0=’OUI’,)

    !——————————————————————–!
    !
    !
    ! !
    ! Liste des alarmes ?mises lors de l’ex?cution du calcul. !
    ! !
    ! Les alarmes que vous avez choisies d’ignorer sont pr?c?d?es de !
    ! (*). !
    ! Nombre d’occurrences pour chacune des alarmes : !
    ! SUPERVIS2_2 ?mise 1 fois !
    !——————————————————————–!

    ======>

    STRUCTURE DU CONCEPT RESU CALCULE POUR 1 NUMERO D’ORDRE

    LISTE DES NOMS SYMBOLIQUES:
    ! ———- !—————-!—————-!—————-!—————-!—————-!—————-!—————-!
    ! NUME_ORDRE ! DEPL ! SIEF_ELGA ! SIGM_ELNO ! SIGM_NOEU ! SIEQ_ELGA ! SIEQ_ELNO ! SIEQ_NOEU !
    ! ———- !—————-!—————-!—————-!—————-!—————-!—————-!—————-!
    ! 1 ! DEPL_R ! SIEF_R ! SIEF_R ! SIEF_R ! SIEF_R ! SIEF_R ! SIEF_R !
    ! ———- !—————-!—————-!—————-!—————-!—————-!—————-!—————-!

    LISTE DES NOMS DE VARIABLES D’ACCES:
    INST DE TYPE R

    LISTE DES NOMS DE PARAMETRES:
    ! ———- !—————-!—————-!—————-!—————-!—————-!—————-!—————-!—————-!
    ! NUME_ORDRE ! CARAELEM ! CHAMPMAT ! EXCIT ! ITER_GCPC ! METHODE ! MODELE ! RENUM ! STOCKAGE !
    ! ———- !—————-!—————-!—————-!—————-!—————-!—————-!—————-!—————-!
    ! 1 ! K8 ! K8 ! K24 ! I ! K16 ! K8 ! K16 ! K16 !
    ! ———- !—————-!—————-!—————-!—————-!—————-!—————-!—————-!—————-!
    —————————————————————————
    Concepts de la base: G
    Nom Type Taille (Mo) Nombre Nombre de
    d’objets segments
    TOTAL 28.13 176 316

    MA MATER_SDASTER 0.00 5 5
    MAIL MAILLAGE_SDASTER 0.03 36 67
    MODE MODELE_SDASTER 0.01 8 13
    MATE CHAM_MATER 0.00 6 11
    CHAR CHAR_MECA 0.03 28 53
    RESU EVOL_ELAS 0.44 48 61
    &FOZERO 0.00 2 2
    &&_NUM_C 0.00 1 1
    &CATA.AC 0.00 2 4
    &CATA.CL 0.86 1 3
    &CATA.GD 0.14 4 11
    &CATA.ME 0.20 2 4
    &CATA.OP 0.32 4 19
    &CATA.PH 0.00 1 1
    &CATA.PR 0.00 2 4
    &CATA.TE 26.07 17 42
    &CATA.TH 0.01 2 4
    &CATA.TM 0.01 7 11
    —————————————————————————

    Nom de la base : GLOBALE
    Nombre d’enregistrements utilis?s : 47
    Nombre
    d’enregistrements maximum : 62914
    Longueur d’enregistrement (octets) : 819200
    Nombre total d’acc?s en
    lecture : 7
    Volume des acc?s en lecture : 5.47 Mo.
    Nombre total d’acc?s en ?criture :
    61
    Volume des acc?s en ?criture : 47.66 Mo.
    Nombre d’identificateurs utilis?s : 324
    Taille
    maximum du r?pertoire : 2000
    Pourcentage d’utilisation du r?pertoire : 16 %

    Nom de la base : VOLATILE
    Nombre d’enregistrements utilis?s : 3
    Nombre
    d’enregistrements maximum : 62914
    Longueur d’enregistrement (octets) : 819200
    Nombre total d’acc?s en
    lecture : 0
    Volume des acc?s en lecture : 0.00 Mo.
    Nombre total d’acc?s en ?criture :
    4
    Volume des acc?s en ?criture : 3.12 Mo.
    Nombre d’identificateurs utilis?s : 630
    Taille
    maximum du r?pertoire : 2000
    Pourcentage d’utilisation du r?pertoire : 31 %

    Arr?t normal dans “FIN”.

    La plate-forme utilis?e ne permet pas d’avoir acc?s ? la valeur de VmPeak.

    Nom de la base : ELEMBASE
    Nombre d’enregistrements utilis?s : 44
    Nombre
    d’enregistrements maximum : 512
    Longueur d’enregistrement (octets) : 819200
    Nombre total d’acc?s en lecture
    : 62
    Volume des acc?s en lecture : 48.44 Mo.
    Nombre total d’acc?s en ?criture : 0

    Volume des acc?s en ?criture : 0.00 Mo.
    Nombre d’identificateurs utilis?s : 123
    Taille maximum
    du r?pertoire : 300
    Pourcentage d’utilisation du r?pertoire : 41 %

    FERMETURE DES BASES EFFECTUEE

    STATISTIQUES CONCERNANT L’ALLOCATION DYNAMIQUE :
    TAILLE CUMULEE MAXIMUM : 45 Mo.
    TAILLE CUMULEE LIBEREE : 10 Mo.
    NOMBRE TOTAL D’ALLOCATIONS : 40195
    NOMBRE TOTAL DE LIBERATIONS : 40175
    APPELS AU MECANISME DE LIBERATION : 0
    TAILLE MEMOIRE CUMULEE RECUPEREE : 0 Mo.
    VOLUME DES LECTURES : 0 Mo.
    VOLUME DES ECRITURES : 0 Mo.

    MEMOIRE JEVEUX MINIMALE REQUISE POUR L’EXECUTION : 34.26 Mo
    – IMPOSE DE NOMBREUX ACCES DISQUE
    – RALENTIT LA VITESSE D’EXECUTION
    MEMOIRE JEVEUX OPTIMALE REQUISE POUR L’EXECUTION : 44.66 Mo
    – LIMITE LES ACCES DISQUE
    – AMELIORE LA VITESSE D’EXECUTION

    FIN D’EXECUTION LE : SA-16-FEVR-2019 17:24:36

    Informations sur les temps d’ex?cution
    Temps cpu user total 0.58 s
    Temps cpu systeme total 0.12 s
    Temps elapsed total 0.00 s
    Temps restant 50.00 s

    La signature de la base sauvegard?e est (? l’adresse 0) :
    5d67dd866f17ded3636670f93b0278ae6be4cdde
    # ——————————————————————————————
    # Impression du contenu du fichier de commandes ? ex?cuter :
    # ——————————————————————————————
    # coding=utf-8
    # ——————————————————————–
    # Copyright (C) 1991 – 2017 – EDF R&D –
    http://www.code-aster.org
    # This file is part of code_aster.
    #
    # code_aster is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # code_aster is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with code_aster. If not, see .
    # ——————————————————————–

    # person_in_charge: josselin.delmas at edf.fr

    DEBUT(CODE=_F(
    NIV_PUB_WEB=’INTERNET’,
    ),DEBUG=_F(SDVERI=’OUI’))

    MA=DEFI_MATERIAU(ELAS=_F(E=200000.0,
    NU=0.3,),);

    MAIL=LIRE_MAILLAGE(FORMAT=’MED’,);

    MODE=AFFE_MODELE(MAILLAGE=MAIL,
    AFFE=_F(TOUT=’OUI’,
    PHENOMENE=’MECANIQUE’,
    MODELISATION=’C_PLAN’,),);

    MAIL=MODI_MAILLAGE(reuse =MAIL,
    MAILLAGE=MAIL,
    ORIE_PEAU_2D=_F(GROUP_MA=’haut’,),);

    MATE=AFFE_MATERIAU(MAILLAGE=MAIL,
    AFFE=_F(TOUT=’OUI’,
    MATER=MA,),);

    CHAR=AFFE_CHAR_MECA(MODELE=MODE,
    DDL_IMPO=(_F(GROUP_MA=’bas’,
    DY=0.0,),
    _F(GROUP_MA=’gauche’,
    DX=0.0,),),
    PRES_REP=_F(GROUP_MA=’haut’,
    PRES=-100.0,),);

    RESU=MECA_STATIQUE(MODELE=MODE,
    CHAM_MATER=MATE,
    EXCIT=_F(CHARGE=CHAR,),);

    RESU=CALC_CHAMP(reuse=RESU,RESULTAT=RESU,CRITERES=(‘SIEQ_ELNO’,’SIEQ_ELGA’),CONTRAINTE=(‘SIGM_ELNO’))

    RESU=CALC_CHAMP(reuse =RESU,
    RESULTAT=RESU,
    CONTRAINTE=’SIGM_NOEU’,CRITERES=’SIEQ_NOEU’);

    IMPR_RESU(FORMAT=’MED’,
    UNITE=80,
    RESU=_F(MAILLAGE=MAIL,
    RESULTAT=RESU,
    NOM_CHAM=(‘DEPL’,’SIGM_NOEU’,’SIEQ_NOEU’,’SIEQ_ELGA’,),),);

    TEST_RESU(RESU=_F(NUME_ORDRE=1,
    GROUP_NO=’B’,
    REFERENCE=’ANALYTIQUE’,
    RESULTAT=RESU,
    NOM_CHAM=’SIGM_NOEU’,
    NOM_CMP=’SIYY’,
    VALE_CALC=308.289244482,
    VALE_REFE=303.0,
    CRITERE=’RELATIF’,
    PRECISION=0.05,),
    )

    TEST_RESU(RESU=_F(NUME_ORDRE=1,
    GROUP_NO=’A’,
    REFERENCE=’ANALYTIQUE’,
    RESULTAT=RESU,
    NOM_CHAM=’SIGM_NOEU’,
    NOM_CMP=’SIXX’,
    VALE_CALC=-88.3181823676,
    VALE_REFE=-100.0,
    CRITERE=’RELATIF’,
    PRECISION=0.15,),
    )

    FIN();

    # ——————————————————————————————
    try to add new values in the .comm file…
    0 (‘OK’, ‘XXXX’, ‘308.289244482’, ‘308.289244482’, ‘1.149630E-10%’, ‘0.0001% \r’)
    1 (‘OK’, ‘XXXX’, ‘-88.3181823676’, ‘-88.3181823676’, ‘2.577701E-11%’, ‘0.0001% \r’)
    0 {‘start’: 2604, ‘end’: 2627, ‘val’: ‘308.289244482’, ‘key’: ‘VALE_CALC’}
    1 {‘start’: 2981, ‘end’: 3005, ‘val’: ‘-88.3181823676’, ‘key’: ‘VALE_CALC’}
    Traceback (most recent call last):
    File “D:\CodeAster2017\install\13.4\lib\aster\Execution\decorators.py”, line 56, in wrapper
    ret = func(*args, **kwds)
    File “D:\CodeAster2017\install\13.4\lib\aster\Execution\E_SUPERV.py”, line 348, in Finish
    testcase_tools.testcase_post()
    File “D:\CodeAster2017\install\13.4\lib\aster\Contrib\testcase_tools.py”, line 36, in testcase_post
    change_test_resu()
    File “D:\CodeAster2017\install\13.4\lib\aster\Contrib\testcase_tools.py”, line 83, in change_test_resu
    append_to_file(‘fort.6’, howto, stdout=True)
    File “D:\CodeAster2017\install\13.4\lib\aster\Contrib\testcase_tools.py”, line 91, in append_to_file
    open(fname, ‘ab’).write(txt)
    IOError: [Errno 13] Permission denied: ‘fort.6’
    continue…
    Code_Aster run ended, diagnostic : _ALARM

    ——————————————————————————–
    Copying results

    _ALARM Code_Aster run ended

    ——————————————————————————–
    Content of RESU file

    — CODE_ASTER — VERSION : EXPLOITATION (stable) —

    Version 13.4.0 modifi?e le 29/06/2017
    r?vision 503b50e0ecda – branche ‘v13’
    Copyright EDF R&D 1991 – 2019

    Ex?cution du : 02/16/19 17:24:36
    Nom de la machine : MSI

    Architecture : 64bit
    Type de processeur : AMD64
    Syst?me d’exploitation : Windows 8

    Langue des messages : en (cp1251)

    Version de Python : 2.7.9
    Version de NumPy : 1.12.0

    !—————————————————————————–!
    !
    !
    ! !
    ! Vous utilisez une vieille version de Code_Aster. !
    ! !
    ! En mettant ? jour votre version, vous b?n?ficierez des derni?res !
    ! am?liorations !
    ! apport?es au code depuis 15 mois. !
    ! Si vous avez des d?veloppements priv?s, vous risquez d’avoir un travail !
    ! !
    ! important de portage si vous ne suivez pas les mises ? jour. !
    ! !
    ! !
    ! Ceci est une alarme. Si vous ne comprenez pas le sens de cette !
    ! alarme, vous pouvez obtenir des r?sultats inattendus ! !
    !—————————————————————————–!

    Parall?lisme MPI : inactif
    Parall?lisme OpenMP : actif
    Nombre de processus utilis?s : 1
    Version de la librairie HDF5 : 1.8.14
    Version de la librairie MED : 3.2.1
    Librairie MFront : non disponible
    Version de la librairie MUMPS : 5.1.1
    Librairie PETSc : non disponible
    Version de la librairie SCOTCH : 6.0.4
    M?moire limite pour l’ex?cution : 506.00 Mo
    consomm?e par l’initialisation : 0.00 Mo

    par les objets du jeu de commandes : 0.00 Mo
    reste pour l’allocation dynamique : 506.00 Mo
    Taille limite des fichiers d’?change : 12.00 Go

    ——————————————————————————–
    —- RESULTAT NUME_ORDRE NOM_CHAM NOM_CMP GROUP_NO
    RESU 1 SIGM_NOEU SIYY B
    REFERENCE LEGENDE VALE_REFE VALE_CALC ERREUR TOLE
    OK NON_REGRESSION XXXX 308.289244482 308.289244482 1.149630E-10% 0.0001%
    OK ANALYTIQUE XXXX 303.0 308.289244482 1.7456252417% 5.0%

    ——————————————————————————–
    —- RESULTAT NUME_ORDRE NOM_CHAM NOM_CMP GROUP_NO
    RESU 1 SIGM_NOEU SIXX A
    REFERENCE LEGENDE VALE_REFE VALE_CALC ERREUR TOLE
    OK NON_REGRESSION XXXX -88.3181823676 -88.3181823676 2.577701E-11% 0.0001%
    OK ANALYTIQUE XXXX -100.0 -88.3181823676 11.6818176324% 15.0%

    FERMETURE DE LA BASE “GLOBALE” EFFECTUEE.

    Arr?t normal dans “FIN”.
    ARRET NORMAL DANS “FIN” PAR APPEL A “JEFINI”.

    MEMOIRE JEVEUX MINIMALE REQUISE POUR L’EXECUTION : 34.26 Mo
    MEMOIRE JEVEUX OPTIMALE REQUISE POUR L’EXECUTION : 44.66 Mo

    ********************************************************************************
    * COMMAND : USER : SYSTEM : USER+SYS : ELAPSED *
    ********************************************************************************
    * init (jdc) : 0.27 : 0.06 : 0.33 : 0.00 *
    * . compile : 0.00 : 0.00 : 0.00 : 0.00 *
    * . exec_compile : 0.06 : 0.00 : 0.06 : 0.00 *
    * . report : 0.00 : 0.00 : 0.00 : 0.00 *
    * . build : 0.00 : 0.00 : 0.00 : 0.00 *
    * DEBUT : 0.02 : 0.02 : 0.03 : 0.00 *
    * DEFI_MATERIAU : 0.02 : 0.00 : 0.02 : 0.00 *
    * LIRE_MAILLAGE : 0.03 : 0.00 : 0.03 : 0.00 *
    * AFFE_MODELE : 0.03 : 0.00 : 0.03 : 0.00 *
    * MODI_MAILLAGE : 0.02 : 0.00 : 0.02 : 0.00 *
    * AFFE_MATERIAU : 0.02 : 0.00 : 0.02 : 0.00 *
    * AFFE_CHAR_MECA : 0.06 : 0.00 : 0.06 : 0.00 *
    * MECA_STATIQUE : 0.05 : 0.00 : 0.05 : 0.00 *
    * CALC_CHAMP : 0.02 : 0.00 : 0.02 : 0.00 *
    * CALC_CHAMP : 0.03 : 0.00 : 0.03 : 0.00 *
    * IMPR_RESU : 0.02 : 0.02 : 0.03 : 0.00 *
    * TEST_RESU : 0.02 : 0.00 : 0.02 : 0.00 *
    * TEST_RESU : 0.00 : 0.00 : 0.00 : 0.00 *
    * FIN : 0.00 : 0.03 : 0.03 : 0.00 *
    * . part Superviseur : 0.48 : 0.08 : 0.56 : 0.00 *
    * . sdveri : 0.19 : 0.00 : 0.19 : 0.00 *
    * . part Fortran : 0.09 : 0.05 : 0.14 : 0.00 *
    ********************************************************************************
    * TOTAL_JOB : 0.58 : 0.12 : 0.70 : 0.00 *
    ********************************************************************************

    ——————————————————————————–
    Content of ERROR file

    — CODE_ASTER — VERSION : EXPLOITATION (stable) —

    Version 13.4.0 modifi?e le 29/06/2017
    r?vision 503b50e0ecda – branche ‘v13′
    Copyright EDF R&D 1991 – 2019

    Ex?cution du : 02/16/19 17:24:36
    Nom de la machine : MSI

    Architecture : 64bit
    Type de processeur : AMD64
    Syst?me d’exploitation : Windows 8

    Langue des messages : en (cp1251)

    Version de Python : 2.7.9
    Version de NumPy : 1.12.0
    Parall?lisme MPI : inactif
    Parall?lisme OpenMP : actif
    Nombre de processus utilis?s : 1
    Version de la librairie HDF5 : 1.8.14
    Version de la librairie MED : 3.2.1
    Librairie MFront : non disponible
    Version de la librairie MUMPS : 5.1.1
    Librairie PETSc : non disponible
    Version de la librairie SCOTCH : 6.0.4
    M?moire limite pour l’ex?cution : 506.00 Mo
    consomm?e par l’initialisation : 0.00 Mo

    par les objets du jeu de commandes : 0.00 Mo
    reste pour l’allocation dynamique : 506.00 Mo
    Taille limite des fichiers d’?change : 12.00 Go

    FERMETURE DE LA BASE “GLOBALE” EFFECTUEE.

    Arr?t normal dans “FIN”.
    ARRET NORMAL DANS “FIN” PAR APPEL A “JEFINI”.

    ———————————————————————————
    cpu system cpu+sys elapsed
    ———————————————————————————
    Preparation of environment 0.00 0.00 0.00 0.00
    Copying datas 0.00 0.00 0.00 0.03
    Code_Aster run 0.00 0.00 0.00 2.63
    Copying results 0.00 0.00 0.00 0.00
    ———————————————————————————
    Total 0.02 0.03 0.05 2.77
    ———————————————————————————

    as_run 1.13.10

    ————————————————————
    — DIAGNOSTIC JOB :
    _ALARM
    ————————————————————

    The directory name is invalid.

    Like

  18. * AFFE_MODELE : 0.11 : 0.00 : 0.11 : 0.00
    *
    * MODI_MAILLAGE : 0.02 : 0.00 : 0.02 : 0.00
    *
    * AFFE_MATERIAU : 0.03 : 0.00 : 0.03 : 0.00
    *
    * AFFE_CHAR_MECA : 0.06 : 0.00 : 0.06 : 0.00
    *
    * MECA_STATIQUE : 0.09 : 0.03 : 0.12 : 0.00
    *
    * CALC_CHAMP : 0.05 : 0.00 : 0.05 : 0.00
    *
    * CALC_CHAMP : 0.03 : 0.00 : 0.03 : 0.00
    *
    * IMPR_RESU : 0.03 : 0.00 : 0.03 : 0.00
    *
    * TEST_RESU : 0.00 : 0.00 : 0.00 : 0.00
    *
    * TEST_RESU : 0.00 : 0.00 : 0.00 : 0.00
    *
    * FIN : 0.00 : 0.03 : 0.03 : 0.00
    *
    * . part Superviseur : 1.20 : 0.48 : 1.68 : 0.00
    *
    * . sdveri : 0.27 : 0.00 : 0.27 : 0.00
    *
    * . part Fortran : 0.14 : 0.06 : 0.20 : 0.00
    *
    *******************************************************************************
    *
    * TOTAL_JOB : 1.34 : 0.55 : 1.89 : 0.00
    *
    *******************************************************************************
    *

    Informations sur les temps d’exécution
    Temps cpu user total 1.34 s
    Temps cpu systeme total 0.55 s
    Temps elapsed total 0.00 s
    Temps restant 50.00 s

    The signup of the saved base is (with the address 0):
    bc0ac3db691d60d45baea614e00c5735175e7ac5
    # ——————————————————————————
    ————
    # Impression du contenu du fichier de commandes à exécuter :
    # ——————————————————————————
    ————
    # coding=utf-8
    # ——————————————————————–
    # Copyright (C) 1991 – 2017 – EDF R&D – http://www.code-aster.org
    # This file is part of code_aster.
    #
    # code_aster is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # code_aster is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with code_aster. If not, see .
    # ——————————————————————–

    # person_in_charge: josselin.delmas at edf.fr

    DEBUT(CODE=_F(
    NIV_PUB_WEB=’INTERNET’,
    ),DEBUG=_F(SDVERI=’OUI’))

    MA=DEFI_MATERIAU(ELAS=_F(E=200000.0,
    NU=0.3,),);

    MAIL=LIRE_MAILLAGE(FORMAT=’MED’,);

    MODE=AFFE_MODELE(MAILLAGE=MAIL,
    AFFE=_F(TOUT=’OUI’,
    PHENOMENE=’MECANIQUE’,
    MODELISATION=’C_PLAN’,),);

    MAIL=MODI_MAILLAGE(reuse =MAIL,
    MAILLAGE=MAIL,
    ORIE_PEAU_2D=_F(GROUP_MA=’haut’,),);

    MATE=AFFE_MATERIAU(MAILLAGE=MAIL,
    AFFE=_F(TOUT=’OUI’,
    MATER=MA,),);

    CHAR=AFFE_CHAR_MECA(MODELE=MODE,
    DDL_IMPO=(_F(GROUP_MA=’bas’,
    DY=0.0,),
    _F(GROUP_MA=’gauche’,
    DX=0.0,),),
    PRES_REP=_F(GROUP_MA=’haut’,
    PRES=-100.0,),);

    RESU=MECA_STATIQUE(MODELE=MODE,
    CHAM_MATER=MATE,
    EXCIT=_F(CHARGE=CHAR,),);

    RESU=CALC_CHAMP(reuse=RESU,RESULTAT=RESU,CRITERES=(‘SIEQ_ELNO’,’SIEQ_ELGA’),CONT
    RAINTE=(‘SIGM_ELNO’))

    RESU=CALC_CHAMP(reuse =RESU,
    RESULTAT=RESU,
    CONTRAINTE=’SIGM_NOEU’,CRITERES=’SIEQ_NOEU’);

    IMPR_RESU(FORMAT=’MED’,
    UNITE=80,
    RESU=_F(MAILLAGE=MAIL,
    RESULTAT=RESU,
    NOM_CHAM=(‘DEPL’,’SIGM_NOEU’,’SIEQ_NOEU’,’SIEQ_ELGA’,),),);

    TEST_RESU(RESU=_F(NUME_ORDRE=1,
    GROUP_NO=’B’,
    REFERENCE=’ANALYTIQUE’,
    RESULTAT=RESU,
    NOM_CHAM=’SIGM_NOEU’,
    NOM_CMP=’SIYY’,
    VALE_CALC=308.289244482,
    VALE_REFE=303.0,
    CRITERE=’RELATIF’,
    PRECISION=0.05,),
    )

    TEST_RESU(RESU=_F(NUME_ORDRE=1,
    GROUP_NO=’A’,
    REFERENCE=’ANALYTIQUE’,
    RESULTAT=RESU,
    NOM_CHAM=’SIGM_NOEU’,
    NOM_CMP=’SIXX’,
    VALE_CALC=-88.3181823676,
    VALE_REFE=-100.0,
    CRITERE=’RELATIF’,
    PRECISION=0.15,),
    )

    FIN();

    # ——————————————————————————
    ————
    try to add new values in the .comm file…
    0 {‘start’: 2604, ‘end’: 2627, ‘val’: ‘308.289244482’, ‘key’: ‘VALE_CALC’}
    1 {‘start’: 2981, ‘end’: 3005, ‘val’: ‘-88.3181823676’, ‘key’: ‘VALE_CALC’}

    HOWTO:

    To extract automatically the new command files, use:

    python bibpyt/Contrib/testcase_tools.py extract RESDIR NEWDIR “*.mess”

    Replace RESDIR by the directory containing the .mess files
    and NEWDIR by a directory in which the new comm files will be written
    (“*.mess” may be omitted).

    —delimiter—
    # coding=utf-8
    # ——————————————————————–
    # Copyright (C) 1991 – 2017 – EDF R&D – http://www.code-aster.org
    # This file is part of code_aster.
    #
    # code_aster is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # code_aster is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with code_aster. If not, see .
    # ——————————————————————–

    # person_in_charge: josselin.delmas at edf.fr

    DEBUT(CODE=_F(
    NIV_PUB_WEB=’INTERNET’,
    ),DEBUG=_F(SDVERI=’OUI’))

    MA=DEFI_MATERIAU(ELAS=_F(E=200000.0,
    NU=0.3,),);

    MAIL=LIRE_MAILLAGE(FORMAT=’MED’,);

    MODE=AFFE_MODELE(MAILLAGE=MAIL,
    AFFE=_F(TOUT=’OUI’,
    PHENOMENE=’MECANIQUE’,
    MODELISATION=’C_PLAN’,),);

    MAIL=MODI_MAILLAGE(reuse =MAIL,
    MAILLAGE=MAIL,
    ORIE_PEAU_2D=_F(GROUP_MA=’haut’,),);

    MATE=AFFE_MATERIAU(MAILLAGE=MAIL,
    AFFE=_F(TOUT=’OUI’,
    MATER=MA,),);

    CHAR=AFFE_CHAR_MECA(MODELE=MODE,
    DDL_IMPO=(_F(GROUP_MA=’bas’,
    DY=0.0,),
    _F(GROUP_MA=’gauche’,
    DX=0.0,),),
    PRES_REP=_F(GROUP_MA=’haut’,
    PRES=-100.0,),);

    RESU=MECA_STATIQUE(MODELE=MODE,
    CHAM_MATER=MATE,
    EXCIT=_F(CHARGE=CHAR,),);

    RESU=CALC_CHAMP(reuse=RESU,RESULTAT=RESU,CRITERES=(‘SIEQ_ELNO’,’SIEQ_ELGA’),CONT
    RAINTE=(‘SIGM_ELNO’))

    RESU=CALC_CHAMP(reuse =RESU,
    RESULTAT=RESU,
    CONTRAINTE=’SIGM_NOEU’,CRITERES=’SIEQ_NOEU’);

    IMPR_RESU(FORMAT=’MED’,
    UNITE=80,
    RESU=_F(MAILLAGE=MAIL,
    RESULTAT=RESU,
    NOM_CHAM=(‘DEPL’,’SIGM_NOEU’,’SIEQ_NOEU’,’SIEQ_ELGA’,),),);

    TEST_RESU(RESU=_F(NUME_ORDRE=1,
    GROUP_NO=’B’,
    REFERENCE=’ANALYTIQUE’,
    RESULTAT=RESU,
    NOM_CHAM=’SIGM_NOEU’,
    NOM_CMP=’SIYY’,
    VALE_CALC=1.0,
    VALE_REFE=303.0,
    CRITERE=’RELATIF’,
    PRECISION=0.05,),
    )

    TEST_RESU(RESU=_F(NUME_ORDRE=1,
    GROUP_NO=’A’,
    REFERENCE=’ANALYTIQUE’,
    RESULTAT=RESU,
    NOM_CHAM=’SIGM_NOEU’,
    NOM_CMP=’SIXX’,
    VALE_CALC=1.0,
    VALE_REFE=-100.0,
    CRITERE=’RELATIF’,
    PRECISION=0.15,),
    )

    FIN();

    —delimiter—
    Code_Aster run ended, diagnostic : OK

    ——————————————————————————–

    Copying results

    OK Code_Aster run ended

    ——————————————————————————-

    cpu system cpu+sys elapsed

    ——————————————————————————-

    Preparation of environment 0.00 0.00 0.00 0.00

    Copying datas 0.02 0.00 0.02 0.26

    Code_Aster run 0.00 0.00 0.00 15.81

    Copying results 0.00 0.00 0.00 0.00

    ——————————————————————————-

    Total 0.05 0.03 0.08 16.37

    ——————————————————————————-

    as_run 1.13.10

    ————————————————————
    — DIAGNOSTIC JOB : OK
    ————————————————————

    The directory name is invalid.

    DIAGNOSTIC JOB ; OK, then in salome meca still there is no feature aster study. how to fix it? thanks

    Like

  19. Hello,
    i followed the steps to run forma01a, but the Diagnostics don’t work properly and I don’t understand where the mistake is:

    C:\Users\CAD\Desktop\code-aster_v2019_std-win64>v2019\bin\as_run.bat -test forma01a

    C:\Users\CAD\Desktop\code-aster_v2019_std-win64>echo OFF
    Aktive Codepage: 65001.
    Usage: as_run.bat action [options] [arguments]

    Functions :

    – Execute the execution described by the profile (default action) :
    as_run –run [options] profile

    – Start quickly an interactive execution using the files given in arguments :
    as_run –quick [options] file1 [file2 […]] [–surch_pyt=…] [–surch_fort=…]

    – Start an interactive execution of a testcase :
    as_run –test [options] testcase [results_directory]

    – Produce a shared library named FILE by compiling the source files src1… srcN. Typically used to build a UMAT library. :
    as_run –make_shared –output=FILE [src1 […]] srcN

    – Show a source file : fortran, C, python, capy, cata, histor or test :
    as_run –show [options] obj1 [obj2…]

    – Copy a source file in current directory :
    as_run –get [options] obj1 [obj2…]

    – Show the diff of a source file : fortran, C, python, capy, cata or test :
    as_run –diff [options] obj1 [obj2…]

    – Show the main subroutine of a Code_Aster command :
    as_run –showop [options] commande[.capy]

    – Build an export file to run a testcase and print it to stdout :
    as_run –get_export testcase_name

    – Return the available numbers for the routines TE, OP, LC… Return the first 8 items except if –all is present. :
    as_run –free_sub [–all]

    – Build a list of testcases using a list of command/keywords and/or verifying some criterias about cputime or memory. :
    as_run –list [–all] [–test_list=FILE] [–filter=…] [–command=…] [–user_filter=…] [–output=FILE] [test1 [test2 ..]]

    – Build the diagnosis of Code_Aster testcases (from DIR or default astest directory) and write a pickled file of the result. :
    as_run –diag [–astest_dir=DIR1,[DIR2]] [–test_list=LIST] [–only_nook] [diag_result.pick]

    – Operation on Code_Aster messages catalogues. subroutine = returns messages called by “subroutine”. message_number = returns subroutines calling this message. check = check messages catalogues and print some stats. move = move a message from a catalogue to another and produce new catalogues and new source files. :
    as_run –messages subroutine | message_number | check [–fort=…] [–python=…] [–unigest=…] | move old_msgid new_msgid

    – Return cpu and memory informations about given hosts :
    as_run –get_infos [–output=FILE] host1 [host2 […]]

    – Return current release number of the default version :
    as_run –getversion [options]

    – Return the path of the default version :
    as_run –getversion_path [options]

    – Build a Code_Aster version (executable, libraries, catalogues). `target` may be all or clean :
    as_run –make [–vers=VERS] [target]

    – Perform one or several updates of a development version :
    as_run –update [options] fich1.tar.gz [fich2.tar.gz…]

    – Download available updates from a server and apply them to the current development version up to `last_version`. :
    as_run –auto_update [–vers=…] [–force_upgrade] [–keep_increment] [–local] [last_version]

    – Build ctags file :
    as_run –ctags [–vers=VERS]

    – Print informations about installation and configuration :
    as_run –showme [options] bin|lib|etc|data|locale|param [parameter name]

    – Return the main subroutine of a Code_Aster command :
    as_run –getop [options] commande[.capy]

    – start an execution (calling as_run in a separate process) :
    as_run –serv user@mach:/nom_profil.export

    – Send the content of “filename” (may be on a remote host) to EMAIL1,EMAIL2,… :
    as_run –sendmail [–report_to=EMAIL1,EMAIL2] filename

    – Returns informations from astk server configuration : batch, interactive (yes/no, limits), compute nodes, versions :
    as_run –info

    – Returns the state, diagnosis, execution node, spent cpu time and working directory of a job :
    as_run –actu job_number job_name mode

    – Opens output or error file :
    as_run –edit job_number job_name mode output|error

    – Output the last part of fort.6 file or filter lines matching a pattern :
    as_run –tail job_number job_name mode fdest nb_lines [regexp]

    – Kill a job and delete related files :
    as_run –del job_number job_name mode [node] [–signal=…]

    – Delete files of jobs which are NOT in the list :
    as_run –purge_flash job_number1 [job_number2 […]]]

    – Convert a file (may be on a remote machine) into html format and write result to FILE :
    as_run –convert_to_html [user@machine:]file –output=FILE

    – Insert a new entry in the issue tracking system and copy attached files if an export file is provided :
    as_run –create_issue issue_file export_file

    – Fill “corrVdev” or “corrVexpl” field (depends on VERS) in issues found in `histor` and eventually close them :
    as_run –close_issue –vers=VERS histor

    – Extract the content of issues listed in `input_file` to `histor` :
    as_run –extract_histor [–status=STAT] [–format=FORM] [–all_msg] input_file histor

    – prepare the profile to insert an execution into a database. :
    as_run –insert_in_db export_file

    as_run.bat: error: no such option: -t

    EXIT_CODE=2

    Do you have any ideas to solve the problem?
    Thanks in advance

    Like

  20. Hello!
    Thank you for great project!
    I’m running
    — CODE_ASTER — VERSION: EXPLOITATION (stable) —
    Modified 14.4.0 version 28/06/2019
    the revision 952c0751ea6d – branch v14

    At first run got this:
    – File “c:\work\SALOME\v2019\14.4\lib\aster\Execution\E_SUPERV.py”, line 159, in InitJDC
    — print(convert(_(“# Impression du contenu du fichier de ”
    – File “c:\work\SALOME\v2019\bin\..\Python37\lib\encodings\cp1251.py”, line 19, in encode
    —————————————————————————-
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
    UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\xe0’ in position 48: character maps to
    EXECUTION_CODE_ASTER_EXIT_1420=0
    Code_Aster run ended, diagnostic : _ABNORMAL_ABORT

    It seems to be a problem with encodings compatibility (I’m on Win10 with cyrillic localisation). Changing message “Impression du contenu du fichier de…” to low-ASCII (i.e. without diacritic) solved the problem.

    Like

    1. Thank you for your support.
      There is no plan to build 15.2 for 2 reasons : not stable in production (even on Linux), complicate to port on Windows.
      We hope stability issues will be resolved for 15.4 and then, we may perhaps get funds to make it work on Windows !

      Like

  21. Hello there,

    I ran the diagnostics for Code Aster but got an Alarm status as follows (only last few lines are pasted here)

    EXECUTION_CODE_ASTER_EXIT_9479=0
    Code_Aster run ended, diagnostic : _ALARM

    ——————————————————————————–
    Copying results

    _ALARM Code_Aster run ended

    ———————————————————————————
    cpu system cpu+sys elapsed
    ———————————————————————————
    Preparation of environment 0.00 0.00 0.00 0.01
    Copying datas 0.02 0.00 0.02 0.08
    Code_Aster run 0.00 0.02 0.02 4.42
    Copying results 0.00 0.00 0.00 0.00
    ———————————————————————————
    Total 0.06 0.06 0.12 4.78
    ———————————————————————————

    as_run 2018.1

    ————————————————————
    — DIAGNOSTIC JOB :
    _ALARM
    ————————————————————

    The directory name is invalid.

    Please confirm what could be the issue. Secondly, it gave a warning as follows:

    — CODE_ASTER — VERSION: EXPLOITATION (stable) —

    Modified 14.4.0 version 28/06/2019
    the revision 952c0751ea6d – branch v14
    Copyright EDF R & D 1991 – 2021

    Exécution of: Sun Feb 28 16:13:08 2021
    Name of the machine: DESKTOP-6C7EP20
    Structure:
    64bit
    CPU type: AMD64
    Operating system: Windows-10-10.0.19041-SP0
    Language of the messages: en (cp1252)

    Python version: 3.7.2
    NumPy version: 1.16.1

    !————————————————————————!
    !
    !
    ! !
    ! You use an old version of Code_Aster. !
    ! !
    ! By upgrading your version, you will profit from the last improvements !
    ! made to the code !
    ! since 15 month. !
    ! If you have private developments, you are likely to have an important !
    ! work of bearing if you do not follow the !
    ! upgraded ones. !
    ! !
    ! !
    ! This is a warning. If you do not understand the meaning of this !
    ! warning, you can obtain unexpected results! !
    !————————————————————————!

    Parallelism MPI: idle
    OpenMP parallelism: Nombre
    credit of processes used: 1
    Version of the HDF5 library : 1.10.3
    Version of the MED library : 4.0.0
    Librairie MFront : non disponible
    MUMPS library version: 5.1.2
    PETSc library: not available
    Version of the SCOTCH library : 6.0.4

    Mémoire limite pour l’exécution : 506.00 Mo
    consommée par l’initialisation : 44.23 Mo

    par les objets du jeu de commandes : 4.90 Mo
    reste pour l’allocation dynamique : 456.31 Mo
    Cut limiting files of exchange: 48.00 Go

    I would really appreciate the help.

    Thanks.

    Like

  22. Dear All,

    Greetings to All
    Congratulations and Thanks to the developers for providing these wonderful softwares Code-Aster and Salome-Meca in Windows platform!! After the 2021 release of SalomeMeca2019, my teaching using SM and CA has become more student friendly due to the common phobia of many of my students, particularly at undergraduate level, to go for Linux.

    Last two days, For the sake of my teaching and student’s dissertation work, I have been trying to run a parametric study in Code-aster Windows (In a Virtual Machine) using distrib file. After two trials, I have found that it runs normal calculation (The first study with the initial values of parameters provided in the comm file), but does not read the values of parameters from the .distr file as described in the export file. I am attaching my export file for your kind perusal. The same files have worked perfectly in Linux with CA 14.4 as well as 14.6. I must say that the results of the successful calculations are exactly same as those obtained from CA in Linux

    Please advise me if something special is needed in the export file for Windows platform. This is important for dissertation works of my UG students.

    My export file reads as under
    ===============
    P actions make_etude
    P distrib yes
    P memjob 10485760
    P memory_limit 10240.0
    P mode interactif
    P mpi_nbcpu 1
    P ncpus 1
    P rep_trav C:\Users\Sukumar\AppData\Local\Temp\Sukumar-DESKTOP-4BARJFA-interactif_5166
    P time_limit 2400.0
    P tpsjob 41
    P version stable
    A memjeveux 1280.0
    A tpmax 2400.0
    F comm C:\Users\Sukumar\Documents\ParametricStudy\ThreeStudies.comm D 1
    F mmed C:\Users\Sukumar\Documents\ParametricStudy\Slope01WithNodes.med D 20
    F distr C:\Users\Sukumar\Documents\ParametricStudy\Param2.distr D 0
    F mess C:\Users\Sukumar\Documents\ParametricStudy\ThreeStudies.mess R 6
    F rmed C:\Users\Sukumar\Documents\ParametricStudy\ResThreeStudies.rmed R 2
    F dat C:\Users\Sukumar\Documents\ParametricStudy\ResThreeStudies.out R 80
    R repe C:\Users\Sukumar\Documents\ParametricStudy\ThreeStudies R 0
    [\code]

    ========================

    Thanks in advance.

    With Best Regards

    Sukumar

    Like

    1. Hello Sukumar,
      It should be a bug in codeaster-frontend (as_run), I think “.distr” is not part of functionalities tested at release time (not QA). If you are lucky it could be an issue with endlines, on Windows CR+LF instead of LF for Linux. You can try to convert your .distr file using unix2dos command. If it does not solve you may also put a loop in your command file with Python to run multiple analysis in the same .comm file
      Thank you for teaching Code_Aster, I wish you all the best!
      Maximilien

      Like

      1. Dear Maximilien,

        Thank you very much for your advice. I had created the export file in Windows itself. So IMHO, it might not be an issue with end lines (you mean encoding I suppose?, Please correct me if I am wrong..)

        I noted that in the “as_launcher” app, the distrib file was not available in the drop down menu. However I thought that it might work in export file. I suppose, as_launcher is still an experimental app, but it gives the feel of astk. Hence, it’s a nice interface you have developed. Thanks to you for that!

        I was thinking to try with for loop in the comm file and your advice is confirming my position. Thanks a lot. I will try the same whenever I find time to come to Windows.

        Being an opensource enthusiastic, have been using Salome-Meca and Code-aster in my teaching (both UG and PG) since 2017. Your good wishes have inspired me to go ahead further. Thanks a lot !

        Please accept my Congratulations and Thanks for your good works to help the Open Source CAE community..

        With warm regards!

        Sukumar

        Like

  23. Hi, i try to install code easter like his explanation, but, when i run “run –test forma01a” te results are this:

    Copying datas

    copying …\tests\forma01a.comm… copying …\tests\forma01a.datg… copying …\tests\forma01a.mmed… Parameters : memory 506 MB – time limit 60 s

    ——————————————————————————–
    Code_Aster run

    Command line 1 :
    C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\bin\aster C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\lib\aster\Execution\E_SUPERV.py -commandes fort.1 –num_job=8835 –mode=interactif –rep_outils=C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\outils –rep_mat=C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\share\aster\materiau –rep_dex=C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\share\aster\datg –numthreads=1 –suivi_batch –memjeveux=63.25 –tpmax=60.0
    ‘tee’ não é reconhecido como um comando interno
    ou externo, um programa operável ou um arquivo em lotes.
    Code_Aster run ended, diagnostic : _ABNORMAL_ABORT

    ——————————————————————————–
    Copying results

    _ABNORMAL_ABORT Code_Aster run ended

    ———————————————————————————
    cpu system cpu+sys elapsed
    ———————————————————————————
    Preparation of environment 0.00 0.00 0.00 0.00
    Copying datas 0.00 0.00 0.00 0.11
    Code_Aster run 0.00 0.00 0.00 0.79
    Copying results 0.00 0.00 0.00 0.00
    ———————————————————————————
    Total 0.05 0.17 0.22 1.90
    ———————————————————————————

    as_run 2018.1

    ————————————————————
    — DIAGNOSTIC JOB : _ABNORMAL_ABORT
    ————————————————————

    EXIT_CODE=4
    O nome do diretório é inválido.

    C:\Users\Davi\Desktop\software merda de simulação\2\v2019\bin>as_run –test forma01a

    C:\Users\Davi\Desktop\software merda de simulação\2\v2019\bin>echo OFF
    Página de código ativa: 65001
    starting forma01a

    ——————————————————————————–
    Code_Aster execution

    prepare environment in C:\Users\Davi\AppData\Local\Temp\Davi-DESKTOP-D7O1ATU-interactif_7914

    ——————————————————————————–
    Copying datas

    copying …\tests\forma01a.comm… copying …\tests\forma01a.datg… copying …\tests\forma01a.mmed… Parameters : memory 506 MB – time limit 60 s

    ——————————————————————————–
    Code_Aster run

    Command line 1 :
    C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\bin\aster C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\lib\aster\Execution\E_SUPERV.py -commandes fort.1 –num_job=7914 –mode=interactif –rep_outils=C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\outils –rep_mat=C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\share\aster\materiau –rep_dex=C:\Users\Davi\Desktop\software” “merda” “de” “simulação\2\v2019\14.4\share\aster\datg –numthreads=1 –suivi_batch –memjeveux=63.25 –tpmax=60.0
    ‘tee’ não é reconhecido como um comando interno
    ou externo, um programa operável ou um arquivo em lotes.
    Code_Aster run ended, diagnostic : _ABNORMAL_ABORT

    ——————————————————————————–
    Copying results

    _ABNORMAL_ABORT Code_Aster run ended

    ———————————————————————————
    cpu system cpu+sys elapsed
    ———————————————————————————
    Preparation of environment 0.00 0.00 0.00 0.00
    Copying datas 0.00 0.00 0.00 0.05
    Code_Aster run 0.00 0.00 0.00 0.03
    Copying results 0.00 0.00 0.00 0.00
    ———————————————————————————
    Total 0.02 0.03 0.05 0.33
    ———————————————————————————

    as_run 2018.1

    ————————————————————
    — DIAGNOSTIC JOB : _ABNORMAL_ABORT
    ————————————————————

    EXIT_CODE=4
    What should i do for solution this problem ?

    Like

  24. Hello,
    I cannot run install\bin\as_run.bat –test forma01a at all.

    C:\Users\padra>cd Desktop\codeaster_w64

    C:\Users\padra\Desktop\codeaster_w64>install\bin\as_run.bat –test forma01a

    Its unable to find the location.
    Any ideas?

    Like

  25. Hi,

    I am about to use code aster for an industrial application , I wanted to know , Is the windows version of code aster same as linux? does it run smoothly on windows? I have heard that it is developed for linux , so thought to ask you this question before I proceed .
    Thank you

    Basit

    Like

Leave a comment