Question about material: how to get the domain information?

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

Moderators: silvia, selimgunay, Moderators

Post Reply
arpegio
Posts: 1
Joined: Mon Nov 02, 2009 11:10 am
Location: Lehigh University, PA

Question about material: how to get the domain information?

Post by arpegio »

Hello,

I am now making a new material for my structural analysis and I want use a zero length (or truss) element to utilize this material.

How can I get the nodal displacements and velocities of all the dofs in the material level? It seems like I need to access to the domain, but I don't know how to do... I'm not sure whether this kind of access is possible or not in the 'material class'.

Thank you in advance.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

look in SRC/OPS_Globals.h, there is a pointer to a global Domain object that the element is supposed to be set before elements enter their computations.
Post Reply