Cancel
Showing results for 
Search instead for 
Did you mean: 

API-load mesh object . Forces and moments at the same time

Legend
Legend

hello,

 

I am trying to load at the same time forces and moments but something is wrong with the code. First the forces are loaded and then the moments changing the load mesh type. I have tried several ways but it does not work. any idea?

 

loadmesh.setID = 1 ' load ID
loadmesh.meshID = 1
loadmesh.CSys = 0
loadmesh.Type = 1
loadmesh.XOn = True
loadmesh.YOn = True
loadmesh.ZOn = True
loadmesh.X = 300000#
loadmesh.Y = 0
loadmesh.Z = -6000000#
loadmesh.Put (loadmesh.meshID)
loadmesh.Type = 2
loadmesh.X = 0
loadmesh.Y = 10000
loadmesh.Z = 0
loadmesh.Put (loadmesh.meshID)
LoadSet.Put (1)

2 REPLIES

Re: API-load mesh object . Forces and moments at the same time

Siemens Phenom Siemens Phenom
Siemens Phenom

As described in the LoadMesh object docs...

 

LoadMesh objects are always stored with their SetID equal to the setID of the load set; however,
their IDs simply go from 1 to N. To find a particular object, you must retrieve each object in the set
and check its type and meshID.

 

So this means that unlike most types, you don't use the Node/Element ID to store the load, you just create a new ID... this is so multiple loads can be stored on the same node like you are attempting.

 

In your case, I would actually create the Set first, and then store the loads. So change your code to look like the following and I believe it should work...

 

The HTML Clipboard

LoadMesh.setID = 1 ' load ID
LoadSet.Put (1)

LoadMesh.meshID = 1
LoadMesh.CSys = 0
LoadMesh.type = 1
LoadMesh.XOn = True
LoadMesh.YOn = True
LoadMesh.ZOn = True
LoadMesh.x = 300000#
LoadMesh.y = 0
LoadMesh.z = -6000000#
LoadMesh.Put (LoadMesh.NextEmptyID())
LoadMesh.type = 2
LoadMesh.x = 0
LoadMesh.y = 10000
LoadMesh.z = 0
LoadMesh.Put (LoadMesh.NextEmptyID())

Re: API-load mesh object . Forces and moments at the same time

Legend
Legend

Thanks a lot Grudy. It works fine