# How to use Aster "the old-school way"

**URL:** <https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271>\
**Category:** Code\_Aster installation\
**Created:** [October 4, 2024, 10:36am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271 "2024-10-04T10:36:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SadriMevel](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@SadriMevel](https://code-aster.org/forum/u/SadriMevel)\
**Post date:** [October 4, 2024, 10:36am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/1 "2024-10-04T10:36:31Z")

</div>

Hello everyone,

Is it still possible to launch a study with the old-fashion way :

`/opt/aster/bin/as_run --run mon_etude.export`

?

It was very useful and efficient to run multiple studies and, moreover, link them with other internal or professionnal tools I have on my computer.

I’ve just downloaded the “Scibian10 Singularity container” and the last sif with Salome\_Meca. Thank you : it works ! I have a graphical interface, with all the tools (Geometry, Mesh, etc.). But I do not figure out how to write and launch my own script, in a bash-style.

I wanted to download Aster **without Salome** , but I havnt found Aster alone ☹ I’ve tried to read :

- [https://gitlab.com/codeaster-opensource-documentation/opensource-installation-development](https://gitlab.com/codeaster-opensource-documentation/opensource-installation-development) =\> but I didn’t find the answer ;
- [User’s guide — code\_aster documentation](https://codeaster.readthedocs.io/en/latest/userguide.html) =\> but the guide is empty, and the links are broken.

\*\*I would be soooo pleased to find a way to just write my scripts in text, and launch it without any graphical interface.

Can I ?\*\*

Thank you for your help !

Pardon if the answer is already written somewhere.

A+

PS : I’m not a EDF worker - I usse Aster both for personnal et professionnal use

---

<div class="post-metadata">

**Author:** ![mf1](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@mf1](https://code-aster.org/forum/u/mf1)\
**Post date:** [October 4, 2024, 11:35am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/2 "2024-10-04T11:35:19Z")

</div>

@SadriMével

Hello,

there you go:

 ![bildschirmfoto-vom-2024-10-04-13-32-34.png](https://code-aster.org/forum/uploads/default/original/1X/ec069daa8f51f59fdae45972cbe8cb6e6106abc5.png)

There’s a shortcut too (only one command) but that I forgot. Your container may have a different filename,

Mario.

---

<div class="post-metadata">

**Author:** ![jeanpierreaubry](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@jeanpierreaubry](https://code-aster.org/forum/u/jeanpierreaubry)\
**Post date:** [October 4, 2024, 11:42am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/3 "2024-10-04T11:42:57Z")

</div>

hello

this is the way i have proceeded for almost 16 years now on

and the way i keep proceeding to day with version 16.5 and 17

have a look at this post it explains how it is possible

[https://forum.code-aster.org/public/d/27218-where-is-code-aster-website-going/8](https://forum.code-aster.org/public/d/27218-where-is-code-aster-website-going/8)

jean pierre aubry

---

<div class="post-metadata">

**Author:** ![jacob](https://code-aster.org/forum/user_avatar/code-aster.org/jacob/32/10409_2.png) [@jacob](https://code-aster.org/forum/u/jacob)\
**Post date:** [October 4, 2024, 12:52pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/4 "2024-10-04T12:52:31Z")

</div>

singularity run ~/salome\_meca-lgpl-2021.0.0-0-20210601-scibian-9.sif shell \<\< END

as\_run Stage\_0\_PreProcess.export

as\_run Stage\_1\_Assembly.export

as\_run Stage\_2\_Load.export

as\_run Stage\_3\_PostProcess.export

as\_run Stage\_4\_Reactions.export

END

---

<div class="post-metadata">

**Author:** ![Cherblanc](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/c/7bcc69/32.png) [@Cherblanc](https://code-aster.org/forum/u/Cherblanc)\
**Post date:** [October 4, 2024, 2:14pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/5 "2024-10-04T14:14:36Z")

</div>

I added the following alias in my .bashrc:

alias aster=‘singularity run /home/path\_to\_Salome/salome\_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif shell – as\_run --run’

And then I can launch a simulation from the command line with:

aster mon\_etude.export

---

<div class="post-metadata">

**Author:** ![lIlIl](https://code-aster.org/forum/user_avatar/code-aster.org/lilil/32/10408_2.png) [@lIlIl](https://code-aster.org/forum/u/lIlIl)\
**Post date:** [October 7, 2024, 8:39am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/6 "2024-10-07T08:39:24Z")

</div>

@mf It doesn’t work in WSL for me.

```bash
user@mypc:~/sm22> ls
salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif
user@mypc:~/sm22> ./salome_meca-lgpl-2022.1.0-1-20221225-scibian-9 --shell
-bash: ./salome_meca-lgpl-2022.1.0-1-20221225-scibian-9: No such file or directory

```

@jeanpierreaubry I get this:

```txt
user@mypc:~/sm22> singularity run ./salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif shell
*****************************************************
INFO : Running salome_meca in software rendering mode
*****************************************************

```

Then nothing happens. If I add `<< END`, I cannot run the command (it waits for me to end the command line).

@Cherblanc This seems to work.

```txt
user@mypc:~/sm22> singularity run salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif shell -- as_run --test forma01a
*****************************************************
INFO : Running salome_meca in software rendering mode
*****************************************************
<INFO> démarrage de forma01a

--------------------------------------------------------------------------------
 Exécution de Code_Aster

<INFO> préparation de l'environnement (...)

```

---

<div class="post-metadata">

**Author:** ![jeanpierreaubry](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@jeanpierreaubry](https://code-aster.org/forum/u/jeanpierreaubry)\
**Post date:** [October 7, 2024, 9:09am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/7 "2024-10-07T09:09:38Z")

</div>

@lIlIl

the command you display is not what my post is about

not at all

read it more carefully

it needs some installation before running code\_aster

which means installing a stand alone version of code\_aster within a conda environment

main advantage:

-you have full access to what is installed

-you have only code\_aster stand alone, no salome-meca, no asterstudy, no paravis

the old school as was asked for in the tile of the post by SadriMével

---

<div class="post-metadata">

**Author:** ![mf1](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@mf1](https://code-aster.org/forum/u/mf1)\
**Post date:** [October 7, 2024, 12:57pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/8 "2024-10-07T12:57:59Z")

</div>

@lIlIl

Hello,

yes, repeating half of the commands probably does not work 🙂

Mario.

---

<div class="post-metadata">

**Author:** ![k\_zurawski](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@k\_zurawski](https://code-aster.org/forum/u/k_zurawski)\
**Post date:** [October 7, 2024, 6:52pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/9 "2024-10-07T18:52:46Z")

</div>

I’m running WSL2 Debian 12 and Salome-Meca 2022 under Singularity 4.2.0. It works in terminal:

 ![image.png](https://code-aster.org/forum/uploads/default/original/1X/ce854e948f0ec974c8f0efa6bc361b7d3371e548.png)

 ![image.png](https://code-aster.org/forum/uploads/default/original/1X/ea33108856e106c4dce3399859d6a5196465d2a1.png)

---

<div class="post-metadata">

**Author:** ![lIlIl](https://code-aster.org/forum/user_avatar/code-aster.org/lilil/32/10408_2.png) [@lIlIl](https://code-aster.org/forum/u/lIlIl)\
**Post date:** [October 9, 2024, 2:16pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/10 "2024-10-09T14:16:57Z")

</div>

My reply went to show that short answers do not actually help beginners solve their problems. I share my own tests to save time for others.

@mf Since your first command contains `install` I did not run it since I had already downloaded the SIF (Singularity Image File) when following the [tutorial by Hassan Berro](https://forum.code-aster.org/public/d/27156-installing-official-salome-meca-on-windows-10-11-using-wsl2).

I tried to run your first command just now: nothing else was installed, a Python file was created in the folder (`salome_meca-lgpl-2022.1.0-1-20221225-scibian-9`) and now the second line worked. I looked up “–app install” in the [documentation](https://docs.sylabs.io/guides/3.0/user-guide/index.html), but it does not explain what it does in details. `singularity run -h` explains that:

```txt
--app string set an application to run inside a container

```

I do not understand what it means. No mention of “–app install”.

@k_zurawski I managed to do what you did in the PowerShell. When I tried:

`singularity run ./salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif shell`

again today in the Windows terminal, it worked! So @jeanpierreaubry’s command also works (without the `<< END`). The _conda_ environment approach is interesting.

My problem now is that many of the tests don’t work (`forma01a`, `forma01b`, `forma02a`, `adlv100d`):

```txt
 ╔════════════════════════════════════════════════════════════════════════════════════════════════╗
 ║ <F> <JEVEUX1_71> ║
 ║ ║
 ║ La mémoire totale de 256.00 Mo allouée à l'étude est insuffisante, il est nécessaire ║
 ║ de disposer d'au moins 688.39 Mo uniquement pour démarrer l'exécution. ║
 ║ ║
 ║ ║
 ║ Cette erreur est fatale. Le code s'arrête. ║
 ╚════════════════════════════════════════════════════════════════════════════════════════════════╝

```

---

<div class="post-metadata">

**Author:** ![k\_zurawski](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@k\_zurawski](https://code-aster.org/forum/u/k_zurawski)\
**Post date:** [October 11, 2024, 11:12pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/11 "2024-10-11T23:12:39Z")

</div>

@lIlIl change amount of memory in export file to something bigger than required.

---

<div class="post-metadata">

**Author:** ![lIlIl](https://code-aster.org/forum/user_avatar/code-aster.org/lilil/32/10408_2.png) [@lIlIl](https://code-aster.org/forum/u/lIlIl)\
**Post date:** [December 9, 2024, 12:44pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/12 "2024-12-09T12:44:11Z")

</div>

This solved the problem (as described in the error message). I mentioned it because I was surprised a test would fail in the official container. Dose the required amount of memory change depending on the hardware?..

---

<div class="post-metadata">

**Author:** ![Sound\_Spinning](https://code-aster.org/forum/user_avatar/code-aster.org/sound_spinning/32/10422_2.png) [@Sound\_Spinning](https://code-aster.org/forum/u/Sound_Spinning)\
**Post date:** [December 10, 2024, 8:53am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/13 "2024-12-10T08:53:41Z")

</div>

@lIlIl I also found this part very odd in code\_aster, a default small RAM & run time, dunno why…

I set in .export file:

P memory\_limit 56640.625 ## Mb, 90% of my PC RAM

P time\_limit 400000.0 ## in seconds, odd unit

With those 2 it always seems to work. Is there a config file somewhere to set these by default for all runs?

---

<div class="post-metadata">

**Author:** ![k\_zurawski](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@k\_zurawski](https://code-aster.org/forum/u/k_zurawski)\
**Post date:** [December 10, 2024, 4:05pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/14 "2024-12-10T16:05:54Z")

</div>

Mega octets, not megabytes, and memory limit is max possible to use not assigned to a job. mem jeveux is.

---

<div class="post-metadata">

**Author:** ![Sound\_Spinning](https://code-aster.org/forum/user_avatar/code-aster.org/sound_spinning/32/10422_2.png) [@Sound\_Spinning](https://code-aster.org/forum/u/Sound_Spinning)\
**Post date:** [December 10, 2024, 5:41pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/15 "2024-12-10T17:41:27Z")

</div>

@k_zurawski I don’t quite understand, but look interesting, what do you exactly mean?

When I use the values I posted, code\_aster writes in the .export file these:

`  
P memjob 58000000

P memory\_limit 56640.625

P time\_limit 400000.0

P tpsjob 6667

A memjeveux 7080.078125

A tpmax 400000.0  
`

What’s the difference vs what you suggest?

---

<div class="post-metadata">

**Author:** ![k\_zurawski](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@k\_zurawski](https://code-aster.org/forum/u/k_zurawski)\
**Post date:** [December 10, 2024, 6:16pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/16 "2024-12-10T18:16:48Z")

</div>

memjeveux controls the amount of memory (RAM) allocated to the Jeveux memory manager, which is used internally by Code\_Aster for managing temporary data structures and computation buffers.

memory\_limit is upper limit for the total memory that can be used by the analysis, including Jeveux memory and other memory used by the solver, libraries, and linked modules.

---

<div class="post-metadata">

**Author:** ![k\_zurawski](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@k\_zurawski](https://code-aster.org/forum/u/k_zurawski)\
**Post date:** [December 10, 2024, 6:21pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/17 "2024-12-10T18:21:06Z")

</div>

In my opinion, and this is only opinion not based on facts, the same testcase created years ago for standalone Code\_Aster might require less memory than run in the latest Salome\_Meca in container.

---

<div class="post-metadata">

**Author:** ![J\_Berthellemy](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@J\_Berthellemy](https://code-aster.org/forum/u/J_Berthellemy)\
**Post date:** [September 4, 2025, 5:54pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/18 "2025-09-04T17:54:03Z")

</div>

@jeanpierreaubry

Bonjour Jean-Pierre

Je ne trouve pas de version 16 : [https://code-aster.org/spip.php?article272](https://code-aster.org/spip.php?article272)

J’en étais resté à la V13 sous Ubuntu 18.04 mais soudain ASTK ne répond plus à la commande LANCE.

Sur un nouvel ordi je dois installer Ubuntu 24.04 LTS mais comment savoir si la version 16 y sera compilable ?

Cordialement

---

<div class="post-metadata">

**Author:** ![jeanpierreaubry](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@jeanpierreaubry](https://code-aster.org/forum/u/jeanpierreaubry)\
**Post date:** [September 5, 2025, 7:36am UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/19 "2025-09-05T07:36:32Z")

</div>

@J_Berthellemy

bonjour Jacques

vous pouvez me contacter à mon mail (dans la signature)

comment je procède maintenant est expliqué plus haut dans ce fil

---

<div class="post-metadata">

**Author:** ![AsterOdactyle](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@AsterOdactyle](https://code-aster.org/forum/u/AsterOdactyle)\
**Post date:** [September 8, 2025, 8:34pm UTC](https://code-aster.org/forum/t/how-to-use-aster-the-old-school-way/271/20 "2025-09-08T20:34:05Z")

</div>

La version d’aster est diffusée en container salome\_meca désormais, il n’y a plus de paquet “aster-full” compilable.
