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

You are not logged in.

#1 2021-09-13 13:10:57

Volker
Member
From: Chemnitz
Registered: 2016-05-23
Posts: 92

Error in DEFI_MATERIAU If I use ELAS_FO and MOHR_COULOMB

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.

SOL_p = DEFI_MATERIAU(ELAS_FO=_F(E=E_pres, NU=NU, RHO=R, ALPHA=Alpha,TEMP_DEF_ALPHA =0.,),
                      MOHR_COULOMB=_F(ANGDIL=27.0,COHESION=5000.0,PHI=20.0))

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      ! 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

Last edited by Volker (2021-09-13 13:11:42)

Offline

#2 2021-09-13 13:50:48

Hanbin
Member
From: Shanghai
Registered: 2020-07-19
Posts: 86

Re: Error in DEFI_MATERIAU If I use ELAS_FO and MOHR_COULOMB

I check the pdf and you are right . It says " The elastic characteristics must be defined under
the keyword ELAS." I hope I can know how to compile this great software, but it seems we need to read Developer document for this purpose .

Offline

#3 2021-09-13 15:04:05

Volker
Member
From: Chemnitz
Registered: 2016-05-23
Posts: 92

Re: Error in DEFI_MATERIAU If I use ELAS_FO and MOHR_COULOMB

Thank you!

There is another (interesting) file: defi_materiau.py

               ...
               PRESENT_PRESENT('MOHR_COULOMB','ELAS'),
               PRESENT_PRESENT('MOHR_COULOMB','ELAS_FO'),#Volker
               PRESENT_PRESENT('ELAS_GLRC','GLRC_DM'),
               EXCLUS('HAYHURST','HAYHURST_FO'),
               ...

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

Offline