Read Domain Values

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

Moderators: silvia, selimgunay, Moderators

Post Reply
ingLuca
Posts: 25
Joined: Wed Mar 14, 2007 7:54 am
Location: -
Contact:

Read Domain Values

Post by ingLuca »

I post here abaut a question I previously discussed in the User section, beacuse probably is a matter more concerning the software than the engineering.

After creating DOMAIN element (e.g. a Node) there is a Node object of the class "Node" that has the following structure:

Node
- idTag
-x
-y
-z
-<mass>

Now, how can I read from the DOMAIN the value of a parameter of a specified object?

Searching in the "Code" section I found the method "getCrds()" but I think It's internal to the OpenSEES program, to be invoked by other parts of the software, like the Analyzer and so on... but there is no method to get these informations from the OpenSEES consolle? There isn't a TCL command to get the y-coord of the node J?

Please, tell me something... :)

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

Post by fmk »

the question probably belongs in the user section .. you can get the disp, vel, accel and coords of a node using the commands provided
in the interpreter.

nodeDisp nodeTag dim
nodeVel nodeTag dim
nodeAccel nodeTag dim
nodeCoord nodeTag dim
ingLuca
Posts: 25
Joined: Wed Mar 14, 2007 7:54 am
Location: -
Contact:

Post by ingLuca »

GREAT :lol:
nodeCoord is not referenced in User Manual, so I didn't know how to get rid of the problem.

And for other parameters of other objects? Nodes of a Shell? Section tag of a beam? J of an Elastic Section? There is not a common syntax rule? After some experience in programming VisualBasic I were expecting something like:

ElasticSection(3).J

Thank you very very much!!!
Post Reply