Where are the system variables?

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

Moderators: silvia, selimgunay, Moderators

Post Reply
zhan
Posts: 11
Joined: Fri Nov 21, 2008 4:25 pm
Location: UCLA

Where are the system variables?

Post by zhan »

Hello everyone,

Where are the system variables stored when we are using Opensees? :?:
System variables are variables like:
Material tag;
strain(n);
strain(n+1);
...
etc.

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

Post by fmk »

its an object oriented program .. each object stores whatever data they need .. strains for example are stored in each instance of a mateial object that has been created.
zhan
Posts: 11
Joined: Fri Nov 21, 2008 4:25 pm
Location: UCLA

thank you fmk

Post by zhan »

Thank you FMK,

Thank you for pointing it out to me.
I got my code working now.

Zhan
zhan
Posts: 11
Joined: Fri Nov 21, 2008 4:25 pm
Location: UCLA

ADD one more question:

Post by zhan »

Now when I define my parameters for my own object,
how do I output my defined parameter?

For example:
I have a variable fp (it's a vector length 2) defined for the object.
Then in my file MyObject.cpp, I have everything declared and the following:

const Vector&
MyObject::getfpvector(void)
{
x...........x // all the code to calculate vector fp

return fp;
}

My object in each loop gives a 1x2 vector;
After all the analysis, I expect to have a matrix of fp nx2.

Then, what I need to do if I want to out fp to a file in TCLeditor?
what do I need to record?

Hope my question make sense. :oops:
Thank you!
zhan
Posts: 11
Joined: Fri Nov 21, 2008 4:25 pm
Location: UCLA

Maybe should be a seperate topic

Post by zhan »

I will bring up another this issue as a new topic. :D
Post Reply