How to use custom Wind Profile when simulating wind loads via API?

How to use custom Wind Profile when simulating wind loads via API?

renatogheno
Participant Participant
1,324 Views
6 Replies
Message 1 of 7

How to use custom Wind Profile when simulating wind loads via API?

renatogheno
Participant
Participant

Does anyone happen to know if it's possible to input a wind profile via the API for the wind load simulation in Robot? I'm only able to configure the parameters that appear on the first tab (General), and are listed in the image below.

renatogheno_0-1718904796126.png

I would like to be able to input something like this via API. I know that there's a CSV file in Robot's directory, but even in this case I don't know how to use it when running through the API.

renatogheno_1-1718904819530.png

 

0 Likes
Accepted solutions (2)
1,325 Views
6 Replies
  • API
Replies (6)
Message 2 of 7

Stephane.kapetanovic
Mentor
Mentor

hi @renatogheno 

You should consult this topic: Any codes for only selection of cladding elements (API)

Best Regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
Message 3 of 7

renatogheno
Participant
Participant
Hi, Stephane, thank you for your reply.
I may be missing something, but the only part covered in this topic is the General tab as well (wind directions, velocity, elements selected, and so on).
My issue is not knowing how to input custom velocity factors according to height (wind profile).
Again, I appreciate the help
0 Likes
Message 4 of 7

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

hi @renatogheno 

you should consult this topic: https://forums.autodesk.com/t5/robot-structural-analysis-forum/wind-simulation-wind-velocity-profile...

creating a wind profile file consists of a csv file that you can generate as follows

C:\Users\%your_login%\AppData\Roaming\Autodesk\Autodesk Robot Structural Analysis Professional 20XX\CfgUsr\Wind Profiles

Public Enum Terrain
  T_0
  T_NA_0
  T_I
  T_II
  T_III
  T_NA_IIIa
  T_NA_IIIb
  T_IV
  T_NA_IV
End Enum

Sub CreateAllCSV()
  Dim z As Double, z0 As Double, zmin As Double, zmax As Double
  For c = 0 To 8
    Select Case c
      Case T_0:       z0 = 0.003: zmin = 1:  FName = "WP_0"
      Case T_NA_0:    z0 = 0.005: zmin = 1:  FName = "WP_NA_0"
      Case T_I:       z0 = 0.01:  zmin = 1:  FName = "WP_I"
      Case T_II:      z0 = 0.05:  zmin = 2:  FName = "WP_II"
      Case T_III:     z0 = 0.3:   zmin = 5:  FName = "WP_III"
      Case T_NA_IIIa: z0 = 0.2:   zmin = 5:  FName = "WP_NA_IIIa"
      Case T_NA_IIIb: z0 = 0.5:   zmin = 9:  FName = "WP_NA_IIIb"
      Case T_IV:      z0 = 1:     zmin = 10: FName = "WP_IV"
      Case T_NA_IV:   z0 = 1:     zmin = 15: FName = "WP_NA_IV"
    End Select

    Version = 2026 '...................Enter your Robot version number
    appDataPath = Environ("AppData")
    RobotDirectory = "\Autodesk\Autodesk Robot Structural Analysis Professional " & Version & "\CfgUsr\Wind Profiles\"
    filePath = appDataPath & RobotDirectory & FName & ".csv"
    fileNumber = FreeFile
    Open filePath For Output As #fileNumber

    zmax = 200
    dval = 0.05: logRef = Log(zmin / z0)
    Print #fileNumber, 1 & ","; 0
    v = 1#
    Do
      z = z0 * Exp(v * logRef): If z > zmax Then Exit Do
      Print #fileNumber, YourFunction(z, z0, zmin) & ","; Round(z, 3) ' Replace with your function
      v = v + dval
    Loop
    Print #fileNumber, Round(YourFunction(zmax, z0, zmin), 3) & ","; zmax
    Close #fileNumber
  Next
  MsgBox "CSV files successfully created"
End Sub
Function YourFunction(z As Double, Optional z0 As Double = 0.2, Optional zmin As Double = 5) As Double 'default IIIa
  YourFunction = Log(IIf(z < zmin, zmin, z) / z0) / Log(zmin / z0)    'cr(z)/cr(zmin)
End Function

Best regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
0 Likes
Message 5 of 7

renatogheno
Participant
Participant

Perfect, thank you 🙏. I how can I use this created CSV in a wind simulation via API?

0 Likes
Message 6 of 7

Stephane.kapetanovic
Mentor
Mentor

The API was originally developed for internal use. (Load a wind Profile)

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
Message 7 of 7

renatogheno
Participant
Participant
Accepted solution

Thanks for the replies, it helped to come up with an alternative solution. It turns out we can't use a variable wind profile via API.