Define a new element as a DLL

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
Posts: 1
Joined: Tue Oct 18, 2016 6:52 pm
Location: Pontificia Universidad Católica de Chile

Define a new element as a DLL

Post by jpmunoz » Thu May 02, 2019 1:59 pm

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

Post Reply