OPS_GetDomian

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

Moderators: silvia, selimgunay, Moderators

Post Reply
faraklit
Posts: 21
Joined: Mon Feb 25, 2013 10:38 pm
Location: Ohio State University

OPS_GetDomian

Post by faraklit » Mon May 30, 2016 11:22 am

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.

faraklit
Posts: 21
Joined: Mon Feb 25, 2013 10:38 pm
Location: Ohio State University

Re: OPS_GetDomian

Post by faraklit » Tue May 31, 2016 7:01 am

Actually,
The main problem is, how may I call displacements of any node in my code?

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: OPS_GetDomian

Post by fmk » Wed Jun 01, 2016 9:56 am

if you have the node pointer
const Vector &disp = nodePtr->getTrialDisp();

Post Reply