C code with opensees

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

Moderators: silvia, selimgunay, Moderators

Post Reply
sandhya
Posts: 7
Joined: Fri Feb 08, 2013 12:58 pm
Location: penn state

C code with opensees

Post by sandhya »

I need to use an evolutionary algorithm coded in C on my model on opensees. The code returns the values of some dimensions after every run which are to be read and incorporated into the model automatically.
Similarly the results from opensees are to read by the C code. Its an iterative process.
Can I use a text file to act as intermediary? Any better suggestions?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: C code with opensees

Post by fmk »

you can use a text file or go into the source code itself and make the changes .. if the interaction between simulation and your code is needed, instead of a file you can also use tcp sockets.
sandhya
Posts: 7
Joined: Fri Feb 08, 2013 12:58 pm
Location: penn state

Re: C code with opensees

Post by sandhya »

Thanks for that. But in the case of using a text file, how do i take care that the simulation initiates itself automatically?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: C code with opensees

Post by fmk »

don't understand the question.
Post Reply