Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max values of parameters

Status
Not open for further replies.

saja11

Bioengineer
Aug 2, 2019
42
Hey,
I am working on max and mean values of max principal stress and other parameters of a 3D shape in Abaqus. For taking max values, I am taking peak values (over contact area) from all nodes through each time point. But I want to take max values of parameters better option would be by taking typically several nodes around the maximum node value that have been averaged (all those around that one peak). However, I am not sure how can I take average of neighboring nodes around peak value? Right now I am using this:
KA_Mstress(i)=mean(stress_selected);
Max_Mstress(i)=max(stress_selected);
Your help would be appreciated.
 
Replies continue below

Recommended for you

I assume that you are using Python scripting for this postprocessing task. In such a case you could use the coordinates of node with maximum value as a center point of bounding box, sphere or cylinder to return nodes in the region of interest and then read data from them. These techniques are described in the Scripting Reference Guide.
 
Sorry for my ignorance as I am new in python scripting but can you suggest how can I obtain coordinates of nodes with maximum values. In reference guide I have found function to get array of nodes that lie within the specified bounding box (getByBoundingBox) but I am not sure how to obtain coordinates of all node with peak value.
 
You have to loop through all nodes in the region of interest, reading values from them. This is described in the chapter "Reading from an output database” of the Scripting Guide. Examples are also included there.
 
I am getting indexes of each max value from 23 cells using [maxVal idx] = max(stress_selected_{i}); But how can I access the above and below (eg. in total 3 values above and below that max value) in matlab?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor