Hello everyone,
I am currently having trouble understanding the structure for creating a free polygon load in Python. What am I doing wrong?

Hello everyone,
I am currently having trouble understanding the structure for creating a free polygon load in Python. What am I doing wrong?

Hello @Syd_Barrett,
the definition of the load_location variable works best with an auxiliary variable for the LoadLocationTable. The variable can be defined with the following code:
locations = rfem.loads.FreePolygonLoad.LoadLocationTable(
rows=[
rfem.loads.FreePolygonLoad.LoadLocationRow(
first_coordinate=5.0,
second_coordinate=3.5
),
rfem.loads.FreePolygonLoad.LoadLocationRow(
first_coordinate=2.0,
second_coordinate=5.0
),
rfem.loads.FreePolygonLoad.LoadLocationRow(
first_coordinate=1.866392129,
second_coordinate=2.291674693
),
rfem.loads.FreePolygonLoad.LoadLocationRow(
first_coordinate=3.79408619,
second_coordinate=2.188892957
)
]
)
This variable can then simply be assigned to the load_location variable when creating the free polygon load.
Best regards,
Rebecca Göbel