Get Results from a manually defined model #288
-
Hello I am trying to get the member results from my model in my python script in an automated way. I would like to plot the function of the bending moments in matplotlib. So I need an array of the member results. First approachI've tried to connect to the model this way:
which results in this error:
Second approachThen i tried to query the model:
It works fine for getting nodal infos and other parameters. But I cannot get the results for member_internal_forces because i cannot figure out what to put in loading_type. What approach is suited for my workflow? And how to do it :)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @PascalGitz , I think that the problem occurs due to older version of RFEM package. We have fixed this bug in latest version of RFEM==v1.18.0. Please update RFEM package by using pip or you can clone main branch in your repository. This should fix your issue. For your second approach, loading type is enumeration name for CaseObjectType(for which you want to get member result). You can use from my personal experience, I can suggest that first approach is user friendly while it is easy to change and read for different type of results. for second approach, try to store result table in one variable and print it rather than printing directly the result table. By doing this, it will work as first approach. Let us know if you still face the same issue in first approach after updating RFEM package. Thanks and best regards, |
Beta Was this translation helpful? Give feedback.
Hello @PascalGitz ,
I think that the problem occurs due to older version of RFEM package. We have fixed this bug in latest version of RFEM==v1.18.0. Please update RFEM package by using pip or you can clone main branch in your repository. This should fix your issue.
For your second approach, loading type is enumeration name for CaseObjectType(for which you want to get member result). You can use
E_OBJECT_TYPE_DESIGN_SITUATION, E_OBJECT_TYPE_LOAD_CASE, E_OBJECT_TYPE_LOAD_COMBINATION or E_OBJECT_TYPE_RESULT_COMBINATION
in loading_type as a string input.from my personal experience, I can suggest that first approach is user friendly while it is easy to change and read for different type of re…