For developers writing C++, Fortran, Java, code who have questions or comments to make.
Moderators: silvia, selimgunay, Moderators
-
Nero
- Posts: 51
- Joined: Wed Jun 22, 2005 2:19 am
Post
by Nero » Mon Feb 27, 2006 9:24 am
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: 5883
- Joined: Fri Jun 11, 2004 2:33 pm
- Location: UC Berkeley
-
Contact:
Post
by fmk » Mon Feb 27, 2006 10:33 am
suggest get it straight from the element.
element1->getTangentStiff()
-
Nero
- Posts: 51
- Joined: Wed Jun 22, 2005 2:19 am
Post
by Nero » Mon Feb 27, 2006 11:04 am
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)