This post is a step-by-step tutorial for beginners wishing to start with the new AsterStudy interface on Windows. This is an update compared to this post, published a few months ago, before AsterStudy came out. We are going to proceed the same way here:
- Pick up an existing case
- Run the case
- Analyze results
This time, each step is exclusively achieved using Salome-Meca on Windows.
Pick up an existing case
Let’s assume that you are familiar with the Salome installation process and already unzipped the Salome-Meca archive from our download page.
Double click on run_salome.bat
and let’s wait until Salome-Meca for Windows gets started …
It is not necessary to allow access to the network when asked by Salome services.
Once Salome-Meca is started, click on AsterStudy icon to activate AsterStudy module and select New to create a new study.
To import an existing case, activate the History View tab. Then select in the menu, Operations -> Import a testcase
As for the previous post, we will deal with the forma02a case.
Fill in the lineedit with “forma02a” and click on the OK button.
The forma02a case should now be loaded in AsterStudy.
Run the case
Before to run the case, we need to define the output files.
We are not going to be interested by MACR_LIGN_COUPE output. Unfold the graphical view and right click on MACR_LIGN_COUPE command and select Delete.
Do the same for it’s corresponding output IMPR_TABLE.
We are interested in IMPR_RESU command, double click on Set output results and wait for the Edit command right panel to appear. Then click on the “…” button to select the result file location.
Select a directory and a file name for your result file, for example “forma02a.rmed” and click on Save button.
Then click on Apply button.
Click on OK button and go back to the History View tab.
Before to be able to run Code_Aster, the Salome-Meca study should be saved. Click on the save icon button, then select a folder and choose a file name, for example forma02 and click on Save button.
Click on the red square button for a green plus to appear, then click on Run button in AsterStudy interface. The AsterStudy Run window should appear. Click on Run button from this window to launch the solver.
AsterStudy has launched Code_Aster Windows. We can wait for the job to end.
Once the job is completed, it is possible to display the message file via the Show message file Button.
It is possible to directly open the result file in Paravis module from AsterStudy. Go back to the Case view tab and Data Files tab. Then right click on forma02a.rmed and choose Open In Paravis.
Once in paravis module, results can be explored as it is done in the previous post.
Follow this post to see more about post-processing with paravis.
This post demonstrate how AsterStudy and Salome-Meca made it easy to begin with Code_Aster on Windows. Many complete tutorials presented on Linux are feasible using this Salome-Meca and AsterStudy version. As an example, you can follow this brief presentation of a successfully reproduced tutorial on Windows.
20 thoughts on “Beginning with AsterStudy and Salome-Meca on Windows”
Is your Windows packaged version of Salome Meca based on 2017.0.2 ?
Thank you for your answer.
Yes, AsterStudy module in Salome-Meca Windows package has been updated since November to 2017.0.2 version
Is the version available from your ‘Download’ link the 2017.0.2?
Currently the message file is written with the cp1252 encoding which results in numerous incorrectly displayed characters (such as “Version 13.4.0 modifiÚe le 29/06/2017”, “d’Úchange”), is it possible to correct these by changing the encoding to UTF8 for instance? Thanks
OEM encoding is preinstalled in your Windows OS. A workaround to solve display issues is to force cp1252 in your console:
nice tuto. How is it possible to display the stresses, for example “color by RESU_SIEF_ELNO” : there is no access ?
ELNO corresponds to a field stored by element, one value for each element node; ELGA corresponds to a field stored by element, one value for each element Gauss point.
Theses fields cannot be displayed directly but are accessible via menu bar Filter -> Mechanics. To display SIEF_ELNO as a surface one can use Filter -> Mechanics -> ‘ELNO field to surface’. Color by RESU____SIEF_ELNO will be available in th new created entry. More info here
I have tried to load other testcases given in the codeaster website. I can not find the testcases PERF0xx,
xx going from 1 to 16.In particular, I am looking for the PERF014a, b and c. Where can I find them ?
Here you are: https://bitbucket.org/code_aster/codeaster-perf/src/default/astest/
Hello, I just installed, and don’t find my answer in FAQ.
1. When I click on AsterStudy, and New case, I don’t have “operation” in Menu. What is wrong?
2. I noticed that the logo is not the samme as on the tutotorial,n I don’t have the Orange W on AsterStudy
Can you use salome-meca for windows in shell mode, similar to how it can be run on Linux?
This seems to work (to be confirmed depending to what you want to do) :
open a cmd
Good morning. I downloaded the latest 2019 version on a laptop with Windows 10 and followed the steps.
After I started the analysis, the hourglass started to rotate and nothing more happens.
When I checked the stderr_command_salome.log file found in folder C:\Temp\CodeAster\forma02a_Files\RunCase_1\Result-forma02a
i found “abnormal abort” messages.
Can you please advise what am I doing wrong?
Command line 1 :
C:\sm-2019-w64-0.3\PRODUCTS\code_aster\14.4\bin\aster C:\sm-2019-w64-0.3\PRODUCTS\code_aster\14.4\lib\aster\Execution\E_SUPERV.py -commandes fort.1 –num_job=513 –mode=interactif –rep_outils=C:\sm-2019-w64-0.3\PRODUCTS\code_aster\outils –rep_mat=C:\sm-2019-w64-0.3\PRODUCTS\code_aster\14.4\share\aster\materiau –rep_dex=C:\sm-2019-w64-0.3\PRODUCTS\code_aster\14.4\share\aster\datg –numthreads=1 –suivi_batch –tpmax=60.0 –memjeveux=64.0
Code_Aster run ended, diagnostic : _ABNORMAL_ABORT
Thank you very much
Hi, downloaded and unzipped “Salome-Meca 2019 W64 Fix” and started running few test cases – forma02a, forma01a
For all the test cases, RunCase_1 is going on indefinitely with a rotating hourglass icon and not giving any result. I changed amount of RAM up to 16 GB. Still the run is not getting complete even after 30 minutes and no error shown in python3.exe window.
I have unzipped the sm-2019-w64-1.2 folder in E drive but AsterStudy Workdir is getting created in C Drive-Users-AppData – Local – Temp directory. Could this be the reason? Should I keep the Salome-Meca folder in C Drive only?
Can you please help on this? Thanks.
Reply received from Mr Luca for same query asked through contact form – It works.
Did you try the refresh button ? There is also an autorefresh combo box on the page which is (I do not know why) to 0 secs by default
Hope this helps, best regards,
To add to my above post, after I close the Salome-Meca window, following text appears in background python3.exe window:
This application failed to start because it could not find or load the Qt platform plugin “windows”
Reinstalling the application may fix this problem.