Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(API) Correct Modal analysis?

28 REPLIES 28
SOLVED
Reply
Message 1 of 29
jokiller70
906 Views, 28 Replies

(API) Correct Modal analysis?

Am I doing this right? I get the same Frequency even if I add loads?

Tags (2)
28 REPLIES 28
Message 2 of 29
Rafal.Gaweda
in reply to: jokiller70

In all loadcases only SW is considered so the results are the same

 

modalsw.jpg



Rafal Gaweda
Message 3 of 29
jokiller70
in reply to: Rafal.Gaweda

From API? Do you have any samples?
Message 4 of 29
Rafal.Gaweda
in reply to: jokiller70

Important - masses are added to case   -1

 

Private Sub CommandButton1_Click()


Dim robapp As RobotApplication
Set robapp = New RobotApplication
    
    Dim cas As RobotSimpleCase
    Dim rec As RobotLoadRecord
    
Set cas = robapp.Project.Structure.Cases.Get(-1)

Set rec = cas.Records.Create(I_LRT_MASS_ACTIVATION)
    rec.SetValue I_MARV_FACTOR, 1.3
    rec.SetValue I_MARV_CASE_NUM, 3
    rec.SetValue I_MARV_ACTIVATION_DIR, 2
    rec.SetValue I_MARV_SIGN, 1
    
 
End Sub

 



Rafal Gaweda
Message 5 of 29
jokiller70
in reply to: Rafal.Gaweda

Shall I use -1 as loadcase? Or the actual one I would like to calculate? Also which frequenzy is the correct one?

eigval = robapp.Project.Structure.Results.Advanced.Eigenvalues.Value(icomb, ncomb)

ncomb 1 is always hig and ncomb 10 is very low. (Does not match our tested values)
Message 6 of 29
Rafal.Gaweda
in reply to: jokiller70


Shall I use -1 as loadcase? 
-1 is a loadcase number to which you convert loads onto masses


eigval = robapp.Project.Structure.Results.Advanced.Eigenvalues.Value(icomb, ncomb)

ncomb 1 is always hig and ncomb 10 is very low. (Does not match our tested values)

 

No idea what you are talking about.

 

modalres.jpg



Rafal Gaweda
Message 7 of 29
jokiller70
in reply to: Rafal.Gaweda

So 4,18 is the lowest possible frequency that can occur?

And shall I add loadcase -1 to my load combination?
Message 8 of 29
Rafal.Gaweda
in reply to: jokiller70

These results comes from the model you attached - load case 1

You can not add converted masses case to anything.



Rafal Gaweda
Message 9 of 29
jokiller70
in reply to: Rafal.Gaweda

The code you sent (CommandButton1_Click()) does not seem to generate any load to mass generation.
Message 10 of 29
Rafal.Gaweda
in reply to: jokiller70

This was example code how to deal with load to mass conversion from API.
Not related to your model


Rafal Gaweda
Message 11 of 29
jokiller70
in reply to: Rafal.Gaweda

Is there any way to invoke the "Disregard density" ?
Message 12 of 29
Rafal.Gaweda
in reply to: jokiller70

Example:

 



Rafal Gaweda
Message 13 of 29
jokiller70
in reply to: Rafal.Gaweda

I would realy like to have that code! It is not possible to fullscreen your video so I can not read int .,(
Message 14 of 29
jokiller70
in reply to: Rafal.Gaweda

So I figured it out. But now it wont calculate. When i modify the "Load to mass coversion" with the exact same values it works...

 

https://screencast.autodesk.com/main/details/d2cc0bad-66f5-49a6-b376-f819c69e1f2e

 

Message 15 of 29
Rafal.Gaweda
in reply to: jokiller70

Example code (model generation is required to be run (forced to be run))

 

Private Sub CommandButton1_Click()


Dim robapp As RobotApplication
Set robapp = New RobotApplication
    
    Dim cas As RobotSimpleCase
    Dim rec As RobotLoadRecord
    
    Dim ModalParams As RobotModalAnalysisParams
    Dim ModalCase As RobotSimpleCase
    
    Set ModalCase = robapp.Project.Structure.Cases.CreateSimple(robapp.Project.Structure.Cases.FreeNumber, "Modal", I_CN_EXPLOATATION, I_CAT_DYNAMIC_MODAL)
    Set ModalParams = ModalCase.GetAnalysisParams
    ModalParams.DisregardDensity = True
    ModalCase.SetAnalysisParams ModalParams
    
    Set cas = robapp.Project.Structure.Cases.Get(-1)

Set rec = cas.Records.Create(I_LRT_MASS_ACTIVATION)
    rec.SetValue I_MARV_FACTOR, 1.2
    rec.SetValue I_MARV_CASE_NUM, 2
    rec.SetValue I_MARV_ACTIVATION_DIR, 2
    rec.SetValue I_MARV_SIGN, -1
    rec.SetValue I_MARV_INPUT_DIR_X, 1
    rec.SetValue I_MARV_INPUT_DIR_Y, 1
    rec.SetValue I_MARV_INPUT_DIR_Z, 1
    
    robapp.Project.CalcEngine.GenerateModel
End Sub

 

 

 



Rafal Gaweda
Message 16 of 29
Rafal.Gaweda
in reply to: Rafal.Gaweda

or

 

    robapp.Project.CalcEngine.GenerateModel
or
    robapp.Project.CalcEngine.AutoGenerateModel = True

 



Rafal Gaweda
Message 17 of 29
jokiller70
in reply to: Rafal.Gaweda

Tried both, still same problem as in my video...
Message 18 of 29
Rafal.Gaweda
in reply to: jokiller70

Send me your this file.


Rafal Gaweda
Message 19 of 29
jokiller70
in reply to: Rafal.Gaweda

When i add automaticaly generat to mass to load conversion, thoose works. 

Message 20 of 29
Rafal.Gaweda
in reply to: jokiller70

This is what I see:

 

 



Rafal Gaweda

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report