Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2021-12-30 17:59:54

Liu Shibo
Member
Registered: 2020-06-30
Posts: 6

Problem using the astk which is launched from the salome_meca2021

Hi All,

I used to use the astk well which was launched from the salome_meca2019.
However, recently I updated to the salome_meca2021 and find that the astk in the salome_meca2021 cannot run well with the same documents.

The details are as follows:
01. The salome_meca2021 is installed in ubuntu 18.04. The screenshot to launch astk from termianl is shown in "01 run astk.png" (Figures are compressed in Files.zip and uploaded in the attachment). Here some configuration problem is presented. How to solve this problem? (It will be great if the developers can set the default settings for personal users, so that they can use the software when they lauch the software.)  I followed the instructions of the Jean-Pierre Aubry's book "A practical introduction to finite element method using code_aster and Gmsh". But that seems doen't help.

02. After lauched the astk, I opened the configuration.astk file by click "File --> Open " buttons. But here I see the warning in the "02 File open.png".

03. The configuration of the files are shown in the "03 open configuration.png". 3 files (book.comm + Configuration.astk + Frame1.med) are already put in the folder "//home/ctrlchange/Astkrun02". Previously, there is no problem to use the astk from salome_meca2019 to run this simulation. However, when I change to the astk from salome_meca2021, the simulation cannot be run.

04. After click the "Run" button of astk GUI. Only two new files are generated ( Configuration.export + Message_file.mess ). Please see the figure "04 After click Run buttom.png"

This configuration problem may be typical for the users who installed their salome_meca2021 in ubuntu 18.04.
So experts, please help to give clear instructions (with operable steps) to solve this configuration problem.

Many thanks!

Best regards,
Liu Shibo


Attachments:
Files.zip, Size: 336.51 KiB, Downloads: 81

Offline

#2 2022-01-17 15:35:19

Liu Shibo
Member
Registered: 2020-06-30
Posts: 6

Re: Problem using the astk which is launched from the salome_meca2021

By the way, I installed salome_meca2021 with the "Scibian9 singularity container" version (5.1G).

Offline

#3 2022-01-17 17:05:37

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,773

Re: Problem using the astk which is launched from the salome_meca2021

hello

there is a weird error
and i suggest the code_aster team to read carefully this post

with this bit in the .comm file

liste=DEFI_LIST_REEL(
DEBUT=2.0,
INTERVALLE=_F(JUSQU_A=6,PAS=1.0,),
);

one get the followong error

  File "./book.comm.changed.py", line 205
    from math import *
       ^
SyntaxError: invalid syntax

EXECUTION_CODE_ASTER_EXIT_14345=1

as usual line 205 is not the one where is the error
i guess this is python behavior

with this modified bit in the .comm file
NOTE JUST ONLY THE INDENT IS MODIFIED

liste=DEFI_LIST_REEL(
	            DEBUT=2.0,
	            INTERVALLE=_F(JUSQU_A=6,PAS=1.0,),
);

it runs ok
this is extremely strange

and it happens with 15.2 and 15.4!!

another point using UNITE=9 is not allowed to the user

i will come later on the other troubles which are not that important compared to this one

jean pierre aubry

Last edited by jeanpierreaubry (2022-01-17 17:09:05)


consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/

Offline

#4 2022-01-21 17:24:05

Liu Shibo
Member
Registered: 2020-06-30
Posts: 6

Re: Problem using the astk which is launched from the salome_meca2021

Dear Monsieur Jean Pierre Aubry,

Thanks for your kindly advices.

Look forward to your further reply.

Best regards,
Liu Shibo

Offline