Discussion Groups

Robot Structural Analysis

Reply
Contributor
LuisCRodrigues
Posts: 21
Registered: ‎03-29-2010
Accepted Solution

Reading forces envelope of bars and section offset with Robot API

899 Views, 9 Replies
10-20-2011 11:51 AM

I'm trying to read the envelope of forces in bars from robot to excel.

 

I've made a macro that reads Fz, Fx and My in a predefined number of points of a bar for all cases.

Then I analyze all the values and make a report with the maximum and minimum values along as his position in the bar.

 

I still have two problems to solve:

1 - If the maximum (or minimum) value occurs in the bar in a position different from my predefined points, I don't get the value.

How can I get the maximum and minimum value of a force and his position in the bar?

 

2 - Some bars have his section with a offset and I want to read a moment like M=My+Fx*OffSet.

How can I get the offset of the bar?

 

Any ideas?

 

Thanks in advance.

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,340
Registered: ‎04-26-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-20-2011 04:23 PM in reply to: LuisCRodrigues

LuisCRodrigues wrote:

I'm trying to read the envelope of forces in bars from robot to excel.

 

I've made a macro that reads Fz, Fx and My in a predefined number of points of a bar for all cases.

Then I analyze all the values and make a report with the maximum and minimum values along as his position in the bar.

 

I still have two problems to solve:

1 - If the maximum (or minimum) value occurs in the bar in a position different from my predefined points, I don't get the value.

How can I get the maximum and minimum value of a force and his position in the bar?

 

Are you looking for RobotExtremeResultServer ?

If not you have to increase number of points and search for extreme values and their positions in your code.

 

2 - Some bars have his section with a offset and I want to read a moment like M=My+Fx*OffSet.

How can I get the offset of the bar?

 

Dim Off As RobotBarOffsetData
Dim OffEnd As RobotBarEndOffsetData

Set offlabel = Bar.GetLabel(I_LT_BAR_OFFSET)
Set Off = offlabel.Data

Set OffEnd = Off.Start
startnodeoffsetuz = OffEnd.UZ

Set OffEnd = Off.End
endnodeoffsetuz = OffEnd.UZ

 


 



Rafal Gaweda
Please use plain text.
Contributor
LuisCRodrigues
Posts: 21
Registered: ‎03-29-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-21-2011 02:03 AM in reply to: Rafal.Gaweda

With RobotExtremeResultServer I get the maximum and minimum value.

But how can I get the position in the bar where those values occurs?

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,340
Registered: ‎04-26-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-21-2011 03:08 AM in reply to: LuisCRodrigues

Example code:

 

Dim ExtremeParams As RobotExtremeParams
Set ExtremeParams = RobApp.CmpntFactory.Create(I_CT_EXTREME_PARAMS)


ExtremeParams.BarDivision = 100
ExtremeParams.Selection.Set I_OT_BAR, BarSelection
ExtremeParams.Selection.Set I_OT_CASE, CaseSelection

ExtremeParams.ValueType = I_EVT_FORCE_BAR_MY

MaxValue = RobApp.Project.Structure.Results.Extremes.MaxValue(ExtremeParams).Value
MaxValuePosition = RobApp.Project.Structure.Results.Extremes.MaxValue(ExtremeParams).Position
MinValue = RobApp.Project.Structure.Results.Extremes.MinValue(ExtremeParams).Value
MinValuePosition = RobApp.Project.Structure.Results.Extremes.MinValue(ExtremeParams).Position



Rafal Gaweda
Please use plain text.
Contributor
LuisCRodrigues
Posts: 21
Registered: ‎03-29-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-21-2011 03:51 AM in reply to: Rafal.Gaweda

I've tried your suggestion.

 

I get a maximum value for My that is slightly superior of what I get in Robot.

Do you know why?

Is because BarDivision=100?

 

Other problem is that I'm getting MaxValuePosition=0. But I know that should be a value somewhere in the middle of the bar.

Am I missing something?

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,340
Registered: ‎04-26-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-21-2011 06:58 AM in reply to: LuisCRodrigues

In case of bar divided onto bar calculation elements during process of model generation It seems the position is given on calculation element instead of the real one.

Split such bar(s) onto smaller parts

 

div.jpg



Rafal Gaweda
Please use plain text.
Contributor
LuisCRodrigues
Posts: 21
Registered: ‎03-29-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-21-2011 07:28 AM in reply to: Rafal.Gaweda

And the other question:

 

"I get a maximum value for My that is slightly superior of what I get in Robot.

Is because BarDivision=100?"

 

Do you know why this happens?

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,340
Registered: ‎04-26-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-21-2011 07:41 AM in reply to: LuisCRodrigues

Programs itself has fixed number of discrete points along bar length for results presentation. Depending on module it can be 51 or 71 or 101.



Rafal Gaweda
Please use plain text.
Contributor
LuisCRodrigues
Posts: 21
Registered: ‎03-29-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-21-2011 08:10 AM in reply to: Rafal.Gaweda

If I understand your explanation, in the picture below, I get MyMax=73.00 because program has fixed number of discrete points along bar length.

But it´s possible that between those points there can be a bigger value of My?

 

Robot.JPG

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,340
Registered: ‎04-26-2010

Re: Reading forces envelope of bars and section offset with Robot API

10-24-2011 12:17 AM in reply to: LuisCRodrigues

In this example bar element is divided into several bar finite elements (calculation elements). In such case every bar finite element is "divided" for results presentation ( between 2 to 101 discrete points are generated along it). Number of such points is related to size of diagram, existence of extreme results on such element etc.



Rafal Gaweda
Please use plain text.