Search found 1 match

by jpmunoz
Thu May 02, 2019 1:59 pm
Forum: Framework
Topic: Define a new element as a DLL
Replies: 0
Views: 8889

Define a new element as a DLL

Hi, I want to make some minor modifications to the ElasticTimoshenkoBeam2d element (multiply some elements of the stiffness matrix by some constants). Some days ago I successfully modified the BWBN material and exported it as a DLL file that I am using with no problems, so I thought I could do the same with the Timoshenko beam. So far the DLL (ElasticTimoshenkoBeam2dCS) compiles, but when I call the new element in OpenSees it gives me an error about the geometric transformation. For example, for the element number 2001:

CrdTransf *getCrdTransf(int tag) - none found with tag: 1
WARNING transformation object not found for ElasticTimoshenkoBeam2dCS 2001

If I use the elasticBeamColumn command instead, it works. The transformation is defined as:

set TransLinear 1;
geomTransf Linear $TransLinear;

And I use the $TransLinear variable when creating the beam element.

Any idea what might be causing the problem?

Thanks in advance