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

You are not logged in.

#1 Re: Code_Aster usage » Error in DEFI_MATERIAU If I use ELAS_FO and MOHR_COULOMB » 2021-09-13 15:04:05

Thank you!

There is another (interesting) file: defi_materiau.py


But the question remains, how to compile the files new?

#2 Code_Aster usage » Error in DEFI_MATERIAU If I use ELAS_FO and MOHR_COULOMB » 2021-09-13 13:10:57

Replies: 2

Bonjour la communauté Code_Aster!

I have a material model for soil whose young moduls depends on pressure.
So I try to use in DEFI_MATERIAU  ELAS_FO together with MOHR_COULOMB.


      ! Regulate (S) not respected (S):                                            !
      ! - Le mot clé 'MOHR_COULOMB' étant présent, il faut que : ELAS soit présent !

I think, the error output means that MOHR_COULOMB needs ELAS not ELAS_FO. Is that correct?

I have extended "Code_Aster/PRODUCTS/code_aster/14.4/lib/aster/Comportement/mohr_coulomb.py" by ELAS_FO:

loi = LoiComportement(
    nom            = 'MOHR_COULOMB',
    lc_type        = ('MECANIQUE',),
    doc            =   """Loi de Mohr_Coulomb, non-associée, pour la mécanique des sols (cf. [R7.01.16] pour plus de détails).
            Pas d'ecrouissage"""              ,
    num_lc         = 55,
    nb_vari        = 3,
    nom_vari       = ('EPSPVOL','EPSPEQ','INDIPLAS',),
    mc_mater       = ('ELAS','ELAS_FO','MOHR_COULOMB',),#Volker_2021-09-13

But it doesnt helps.
How to recompile this file?

Any suggestions are welcome!

Kind regrads Volker

#3 Re: Code_Aster usage » How to ramp loads BETWEEN loadsteps? » 2021-08-31 12:17:20

regarding you "FOR IN RANGE LOOP":
I think, if you want to reimport the last result into a new calc then
INST from last result "evol_ther" should be equal to INST from new starting THER_NON_LINE, means
your time stepping has to be INST [new start calc] = INST [last step from old calc]

#4 Re: Code_Aster usage » Simplifying Modelling for a PV Module Frame » 2021-08-30 09:39:41

A well-known rail vehicle manufacturer would model it like this:
(without waranty that your costumer wants it like this)
The proof concept for those is the nominal stress concept.

The first step is to derive the mid surface, that you obtain a clean shell model.
Secoundly meshing all as a compound to prevent that you need operator  "liasson-maille" etc..
Mesh zise sould be approx. 20 mm. Also try to suppress all driangle elements.

Use all symmetry conditon.. etc.
Then run time should only a couple of secounds.

I hope it helps you or other "code_aster" enthustiastics

#5 Re: Code_Aster usage » Oscillations in transient thermal results THER_NON_LIN » 2021-08-11 12:23:12

I have often used this construct for thermal calculations of power plant equipment


without a for in range loop. I find that the units in Code_Aster are a bit tricky at times.

Kind regards Volker

#6 Re: Code_Aster usage » [SOLVED] Increasing number of threads increases computational time » 2021-08-05 08:43:07

here some hints from me:

You use parallelisation method openMP not mpi.
(mpi requires, additional to openMP, domain decomposition what you can do with scotch for instance. You can google after scotch and domain decomposition. Then it becomes more clear…)

My experience with a small model and many time steps (Dyn_non_line) was:
-    starting only one thread
-    switch out hyper threading in the Computer BIOS
-    seek for a computer with the highest tact frequency

#7 Re: Code_Aster installation » Code_aster 15.4 MPI installation problem » 2021-08-02 09:56:35

Hi Anirudh,

for which applications and tasks is the PETSC solver compulsory for you?
Can you live also with the mumps solver (for openMP and mpi calculations) together with MULT_FRONT solver (only for openMP calculation)?

Greetings Volker

#8 Re: Code_Aster installation » Code_aster 15.4 MPI installation problem » 2021-07-22 11:07:58

METIS produces a shared-memory-object and
SCOTCH produces in my opinion both or at least also one distributed-memory-object ...

#9 Re: Code_Aster installation » Code_aster 15.4 MPI installation problem » 2021-07-22 11:02:37

first of all I have the greatest respect for your project.

I was thinking about the error message:
"... can not be used when making a shared object ..."
In my opinion this means PETSC needs a "distributed memory object" not a "shared memory object".

Distributed memory objects are needed for mpi parallelization. In contrary
Shared memory objects are needed for openMP parallelization.
I know the mumps solver can deal with both objects, but Im not sure that PETSC can do the same.

So one hint is to comment out the PETSC Solver. Or try to compile PETSC solver for both memory objects...

Good Luck. !!! Pleace let me know when you have any progress in your project. Thank you.


#11 Re: Code_Aster usage » Differences in Von Mises Stresses » 2019-10-10 15:00:14

Hi Astercode,
I tested my suggestion and now I get exactly the same result as in the analytical calculation with Sigma = 120 MPa .
Have you already achieved the same in Nastran?
I attach my .comm file for comparing. Kind regards Volker

#12 Re: Code_Aster usage » Differences in Von Mises Stresses » 2019-10-09 14:06:21

Hi Astercode,
again, both numerical calculations are wrong (also Nastran). Change the boundary conditions in both systems that you get 120 MPa in both numerical calculations Aster and Nastran.  This is very important. Your boundary condition produces a singularity. The correct result should be infinitely in Aster and Nastran !!! ...
Kind regards and good luck Volker

#13 Re: Code_Aster usage » Differences in Von Mises Stresses » 2019-10-09 07:45:09

Hi Astercode, I compared the results and my conclusion is both numerical solutions are wrong.
What happens if you only set  DX of 'NODES_CONSTR' = 0 and an absolutely unimportant node gets the rest (DY, DZ, DRX, DXY, DRZ =0)??

#14 Re: Code_Aster usage » Differences in Von Mises Stresses » 2019-10-08 15:41:45

Hi astercode,
have you already compared your numerical solutions with the analytical solution?

A numerical solution is a good start point to investigate commercial and open source software.

Kind regards and good luck Volker

#15 Re: Code_Aster usage » Problem with Data transfert from CFD to Aster » 2019-07-09 15:11:22

Hi, the error message tells NOM_CHAM in your result file is "T". "T" is not allowed. One solution could be NOM_CHAM = "TEMP" or "TEMP_ELGA"...

#16 Re: Code_Aster installation » Salome-Meca V2018 on Ubuntu 18.04 » 2019-07-01 10:35:04

I was the next one with this problem.
On my machine helps this, and I don't know why:

LD_PRELOAD='/usr/$LIB/libstdc++.so.6' ./salome
(see thread code-aster.org/forum2/viewtopic.php?id=24078)

#17 Re: Code_Aster usage » E_Young varies by EPSI or DIVU » 2019-06-19 15:04:35

Hi, I think E an NU can't be a function of EPSI, only X, Y, Z and INST.
I would check the material model...
Kind regards Volker

#18 Re: Code_Aster usage » How calculate the Principal Stresses on a surface of a solid? » 2019-05-28 10:04:30

Hi All,
here a sketch with my interpretation of the local stresses according the FKM Guideline:

How can we calculate the stress gradient with Code_Aster??

Kind regards Volker

jeanpierreaubry wrote:

i do think this is not necessary maybe giving wrong results by polluting the model..

I total agree with you ,
but I got also the same advice from a commercial support-team to introduce skin elements ;-)

#19 Re: Code_Aster usage » How calculate the Principal Stresses on a surface of a solid? » 2019-05-27 11:47:54

Bonjour Johannes,
which part of FKM Guideline do you mean ??
Do you mean for example calculation of G_Sigma and G_Tau according equation no. 4.3.17 ??

Kind regards Volkere

#20 Re: Code_Aster usage » how to close contact faces without applying forces? » 2019-01-21 20:58:55

Hi kathi,
without knowing exactly your model,
in principle closing a gap is possible with LIAISON_DDL. So, du(Node No. x) - du(Node No. y) = "your gab".
Also, it is possible to close a gap time depending with AFFE_CHAR_MECA_F by placing a time function to COEF_IMPO.
With LIAISON_UNIF it's possible to constrain sets of nodes to the same du.
If you seek the force to close the gap then you can do this by "reverse engineering" for example with unit forces and a python loop over your command file.
Kind regards Volker

#21 Re: Salome-Meca installation » Installation Salome 2016 on Ubuntu 18.04 LTS » 2018-12-08 18:20:04

Hi all,
I had a look in my old start script for versione 2016:
The main purpose of the script was to get a bash terminal with all messages from SALOME which will not disappear suddenly:

gnome-terminal -e "bash -c 'cd /home/vincent/salome_meca && cd appli_V2016 &&  ./salome 2>&1 && exec $SHELL'"

#22 Re: Code_Aster usage » Erreur numérique (floating point exception). » 2018-09-17 08:43:29

Hi again,
I have done modal analysis without any kinematic constraints (Im not sure that I have done it with CA but with other codes).
Greetings Volker

#23 Re: Code_Aster usage » Erreur numérique (floating point exception). » 2018-09-14 13:17:39

Hi udc_Stdnt,
I had a short look on the .mess file.
The names of the groups are similar to meshes produced with hypermesh.
In this case lots of problems are possible (at this point normally I say good night ;-)
Check that M793346 is connected to the neighbour elements.
Can you place at each node of M793346 a constrain in DX, DY, DZ, DRX, DRY, DRZ = 0, just for testing?

Greetings Volker

#24 Re: Code_Aster usage » Erreur numérique (floating point exception). » 2018-09-08 22:02:45

How did you produce your mesh?
And did you try to delete that suspicious element for testing?
Kind regards Volker

#25 Code_Aster usage » Bug in CREA_CHAMP OPERATION='ASSE' ??? » 2018-05-06 20:38:34

Replies: 0

Hi Code_Aster Developer,
regarding to the thread from Cinzia https //www.code-aster.org/forum2/viewtopic.php?id=23360
I believe there is indeed a problem in CREA_CHAMP OPERATION='ASSE'.

If I have input mesh with several node coordinates x = 0 or y = 0 or z =0 then I cant deform the input mesh with  OPERATION='ASSE'.
If I shift the input mesh so that all node coordinates not equal to 0 then I get the expected shapes and calculation results.
I have calculated with code_aster 13.2.
Here my test case:

Kind regards Volker