Hi,
I am trying to define new uniaxial material. The behavior of material will be defined with respect to drift of two nodes. That means I need to get displacemens of two nodes in my material. I am using the following codes.
///////////////////////////////////
Domain *theDomain = 0;
theDomain = OPS_GetDomain();
Node *theNodeT = 0;
theNodeT = theDomain->getNode(iNodeData[0]);
Node *theNodeB = 0;
theNodeB = theDomain->getNode(iNodeData[1]);
const Vector &dispI = theNodeT->getTrialDisp();
const Vector &dispJ = theNodeB->getTrialDisp();
////////////////////////////////////
However, it gives the following error due to OPS_GetDomain();
<< unresolved external symbol "class Domain * _cdecl OPS_GetDomain(void)" (?OPS_GetDomain@@YAPEAVDomain@@XZ) >>
I dont know how to solve. Can anyone help me?
Note: I am using Visual Studio 2015 to create .dll
Thank you.
OPS_GetDomian
Moderators: silvia, selimgunay, Moderators
Re: OPS_GetDomian
Actually,
The main problem is, how may I call displacements of any node in my code?
The main problem is, how may I call displacements of any node in my code?
Re: OPS_GetDomian
if you have the node pointer
const Vector &disp = nodePtr->getTrialDisp();
const Vector &disp = nodePtr->getTrialDisp();