Accessing a specific element's material stiffness.

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Nero
Posts: 51
Joined: Wed Jun 22, 2005 2:19 am

Accessing a specific element's material stiffness.

Post by Nero »

Given an element number of a zeroLength element, and a direction how would I access that element's stiffness in the given direction? I dont mean from the interperater, but in a programmed object?

Example: I create a zero-length element, id 1, and it has material 1 in direction 1 and material 2 in direction 2. Is it possible, to grab the trialStiffness element 1's direction 2? Something like:
element1->materialInDir2->tTangent ???
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

suggest get it straight from the element.

element1->getTangentStiff()
Nero
Posts: 51
Joined: Wed Jun 22, 2005 2:19 am

Post by Nero »

fmk wrote:suggest get it straight from the element.

element1->getTangentStiff()
Thanks Frank.

Can you tell me the proper code to access an element from a given id? (Ex- the element1 portion of the code above)
Post Reply