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

You are not logged in.

#1 2020-11-11 15:44:11

Achille_2016
Member
Registered: 2020-11-11
Posts: 9

Extraction of mass and stiffness matrices

Hello to everyone
i am using code-aster 14.6 and i'd like to know if it is possible to extract the global mass and stiffness matrices in salome-meca because i want to use them in matlab. I look around in the forum but there is not a clear and comprehensive answer. Thanks to those who can help me

Offline

#2 2020-11-11 16:15:58

GPSalachs
Member
Registered: 2018-03-10
Posts: 216

Re: Extraction of mass and stiffness matrices

Hello,

have a look here : forum2/viewtopic.php?pid=62625 . The post is recent too so i think it will help you!

Offline

#3 2020-11-11 17:17:25

Achille_2016
Member
Registered: 2020-11-11
Posts: 9

Re: Extraction of mass and stiffness matrices

Thank you too much

Offline

#4 2020-11-12 08:32:10

Achille_2016
Member
Registered: 2020-11-11
Posts: 9

Re: Extraction of mass and stiffness matrices

Using the suggestion contained in forum2/viewtopic.php?pid=62625 i have this problem

# ------------------------------------------------------------------------------------------
ERREUR WITH INTERPRETATION IN ACCAS - INTERRUPTION
>> JDC.py: DEBUT CR phase d'initialisation
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   ! Erreur dans matr_asse.EXTR_MATR en PAR_LOT='OUI' !
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
fin CR phase d'initialisation

REPORT
>> JDC.py: FIN REPORT

attached there my comm file. Can someone help me?

Thank a lot


Attachments:
RunCase_1_Stage_1.comm, Size: 2.14 KiB, Downloads: 41

Offline

#5 2020-11-12 13:02:08

GPSalachs
Member
Registered: 2018-03-10
Posts: 216

Re: Extraction of mass and stiffness matrices

Change the PAR_LOT to 'NON' . Also read : /V2/UPLOAD/DOC/Formations/18-python.pdf in the training material section, it is really well made and explains a lot of stuff that are useful!

Offline

#6 2020-11-12 15:16:53

Achille_2016
Member
Registered: 2020-11-11
Posts: 9

Re: Extraction of mass and stiffness matrices

Thank you very much i will have a look. Before of that message in salome shell i have also this message

# ------------------------------------------------------------------------------------------
/home/daniele/salome_meca/V2019.0.3_universal/tools/Code_aster_stable-v144_smeca/lib/aster/aster_settings.py:262: DeprecationWarning: this command line option is deprecated : --rep_outils
  coreopts.parse_args(argv or sys.argv)
/home/daniele/salome_meca/V2019.0.3_universal/prerequisites/Python-365/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  return f(*args, **kwds)
ERREUR WITH INTERPRETATION IN ACCAS - INTERRUPTION

it can be linked with the error? I use salome meca on ubuntu 20.04

Offline

#7 2020-11-12 15:31:16

Achille_2016
Member
Registered: 2020-11-11
Posts: 9

Re: Extraction of mass and stiffness matrices

And honestly i don't know where the command PAR_LOT='OUI' is used

Offline

#8 2020-11-12 15:40:59

GPSalachs
Member
Registered: 2018-03-10
Posts: 216

Re: Extraction of mass and stiffness matrices

Hello,

the PAR_LOT command is located within the DEBUT() command at the beginning of your script. If it is not there, add it.
Now as far as the error goes i don't know because my installation is on Ubuntu 18.04.
If you want to see more things, go to the testcases, i think there is a testcase that will match your interest for the extraction and manipulation of mass and stiffness matrixes.

Offline

#9 2020-11-12 20:57:21

Achille_2016
Member
Registered: 2020-11-11
Posts: 9

Re: Extraction of mass and stiffness matrices

Finally it works! I did as you suggested writing DEBUT(PAR_LOT='OUI').
Thank you very much for your help. Now i have to understand how to import the file in matlab i will open another post. Thank you again

Offline