On Linux, the official manner to begin with Code_Aster is to download Salome-Meca from the dedicated Salome-Meca web page on the official Code_Aster website, extract the downloaded archive, and then execute the .run self executable that will install a full functional Salome-Meca on your computer 🙂
Unfortunately, Salome-Meca is only available for Linux. This post intend to give a workaround for Windows users, that have no ability, motivation or time to set up a dual boot or a virtual machine …
Based on the fact that Salome-Meca is a custom Salome with additional stuff like Code_Aster, the workaround is then simple :
- install the classic Salome, available for windows,
- install the Code_Aster for windows provided in the download page.
Install Salome for windows
Download Salome for windows from the official salome-platform download page.
Execute the downloaded file. It will self-extract in a SALOME-x.y.z-WIN64 directory.
Test your Salome installation
Go into the extracted directory and into the “WORK” directory. Then execute “run_salome.bat”.
A cmd window will appear and set up things since Salome is running for the first time, be patient … Then another cmd window will effectively launch Salome.
Finally a graphical environment should appear 🙂
Install Code_Aster for windows
Download Code_Aster for windows provided in the download page.
Right click on the downloaded file and choose “extract all…”.
Go into the extracted directory and into the “install” directory, and execute “create_testing_link.bat”, this will create the “testing” symbolic link in your install directory.
Test your Code_Aster installation
Open a cmd prompt, you can find it from the start menu by typing “cmd” in the search bar.
Navigate into the extracted Code_Aster directory with the console and run :
install\bin\as_run.bat --test forma01a
Code_Aster will run the predefined testcase forma01a from the testing\tests directory, it should display at the end:
DIAGNOSTIC JOB : OK
Once Salome and Code_Aster successfully run on Windows, the post Beginning with Salome and Code_Aster for Windows provide a first step by step example. Then it is possible to retrieve part of the Salome-Meca tutorials to deal with more advanced feature on Code_Aster for Windows.