Cancel
Showing results for 
Search instead for 
Did you mean: 

FEMAP API pressure on surface using data surface (arbitrary 3D option)

Legend
Legend

Hello,

 

I am tryring to load a model with a pressure using data surface(3D arbitrary option) through API as we have to do it several times.

I got to create the 3D data surface and the load case but then I can not load hte pressure with the data surafce.

In the help I found "property for Loadgeom under specific properties" variation.Options of setting;

- 0: constant

-1: equation

-2: function

-3. Interpolation

I tried with 4 and it also works. The pressure "appear" to be loaded with the data surface option but then I can not assign the data surface with one of those that I have created.

The attached :

- excel sheet where the macro is included. 

-macro in txt file *.bas

 It creates two data surfaces and a load set with a pressure. It also loads the option pressure with data surface but then I can not aassign the data surfaces created

 

Any help it would be appreciated  

 

Thanks

4 REPLIES

Re: FEMAP API pressure on surface using data surface (arbitrary 3D option)

Siemens Phenom Siemens Phenom
Siemens Phenom

You need to connect the Data Surface to the Geometric Load

 

loadgeom.DataSurface(0)=data_surface.ID

 

I don't know what your code is trying to do with 

 

loadgoem = loaddefintionID = 1

 

I would delete that line.

 

Mark.

Re: FEMAP API pressure on surface using data surface (arbitrary 3D option)

Legend
Legend
Hi Mark,



Thank you very much for the quick solution. It works!!! You were right the
line "loadgoem = loaddefintionID = 1" should have been deleted(maybe I
forgot it when I was doing the macro)

Is there any way also instead of loading one surface thorugh loadgeom.geomID
to use a group of surfaces. Or should I do a new loop or maybe change to
load elements instead or surfaces

I find the help sometimes not enough clear

Jon

Re: FEMAP API pressure on surface using data surface (arbitrary 3D option)

Siemens Phenom Siemens Phenom
Siemens Phenom

There's no way to send in a set of surface, you would have to loop and for each surface, just change the geomID and do another loadgeom.Put( loadgeom.NextEmptyID ).

Re: FEMAP API pressure on surface using data surface (arbitrary 3D option)

Legend
Legend
Thanks



It is what I did. I was thinking in a shortcut. Thanks for your support. I
have already closed the topic