Beginning with AsterStudy and Salome-Meca on Windows

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

run_salome.bat file

and let’s wait until Salome-Meca for Windows  gets started …

Salome-Meca launching on Windows 7 64 bits

It is not necessary to allow access to the network when asked by Salome services.

Cancel firewall for Salome-Meca on Windows 7 64 bits

Once Salome-Meca is started, click on AsterStudy icon to activate AsterStudy module and select New to create a new study.

Salome-Meca AsterStudy module launching on Windows 7 64 bits

To import an existing case, activate the History View tab. Then select in the menu,  Operations -> Import a testcase

Import a testcase in Salome-Meca AsterStudy module on Windows 7 64 bits

As for the previous post, we will deal with the forma02a case.

Testcase choose on Code_Aster website

Fill in the lineedit with “forma02a” and click on the OK button.

Choose a testcase in Salome-Meca AsterStudy module on Windows 7 64 bits

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.

Graphical edition of a case in Salome-Meca AsterStudy module on Windows 7 64 bits

Do the same for it’s corresponding output IMPR_TABLE.

Remove an output result in Salome-Meca AsterStudy module on Windows 7 64 bits

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.

Set up an output Code_Aster result in Salome-Meca AsterStudy module on Windows 7 64 bits

Select a directory and a file name for your result file, for example “forma02a.rmed” and click on Save button.

Choose an output Code_Aster result file name using Windows explorer

Then click on Apply button.

Validate the command edition in Salome-Meca AsterStudy module on Windows 7 64 bits

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.

Choose a file name to save the Salome-Meca study using Windows explorer

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.

Preparing to run Code_Aster via Salome-Meca AsterStudy module on Windows 7 64 bits

AsterStudy has launched Code_Aster Windows. We can wait for the job to end.

Code_Aster case is running via Salome-Meca AsterStudy module on Windows 7 64 bits

Analyze results

Once the job is completed, it is possible to display the message file via the Show message file Button.

Viewing the Code_Aster message output in the external Salome-Meca editor after a successful AsterStudy launch on Windows 7 64 bits

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.

Directly open a Code_Aster output result in Salome_Meca ParaVis module from AsterStudy on Windows 7 64 bits

Once in paravis module, results can be explored as it is done in the previous post.

Code_Aster output result opened in Salome_Meca ParaVis module on Windows 7 64 bits

Follow this post to see more about post-processing with paravis.

Conclusion

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.

10 thoughts on “Beginning with AsterStudy and Salome-Meca on Windows

  1. 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

    Like

    1. Hello,
      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

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s