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

You are not logged in.

#1 2022-02-21 13:01:04

GuillermoBarraza
Member
Registered: 2016-05-24
Posts: 60

Modify field contained in a resultat_sdaster using Python

Hello everyone,

Given the fact that I have a result object from a non-linear static computation (i.e. an instance of an evol_noli) like the following:

RES = STAT_NON_LINE( ... )

How can I modify the values in the memory of e.g. the component LAGS_C of the field DEPL by means of python and the aster data structures contained in RES?

I try to avoid the procedure of creating a new field with CREA_CHAMP with exactly the same values as those coming from STAT_NON_LINE, but with just a couple of modifications to LAGS_C, to later create a new result with CREA_RESU.

Any idea on how to achieve this would be really appreciated.

Best regards,
Guillermo

Offline

#2 2022-02-26 11:26:02

Pisolino
Member
From: Italy
Registered: 2009-04-06
Posts: 64

Re: Modify field contained in a resultat_sdaster using Python

Hi,
i'm interested too in such topic. I really would like to access the data structure of code_aster with python. e.g. i would like to edit a property field (such as thermal conductance LAMBDA) without using the CREA_CHAMP + NEUT parameter.

Andrea

Offline