Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
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
Hello,
have a look here : forum2/viewtopic.php?pid=62625 . The post is recent too so i think it will help you!
Offline
Thank you too much
Offline
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
Offline
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
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
And honestly i don't know where the command PAR_LOT='OUI' is used
Offline
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
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