class FileNodeDispRecorder : public Recorder


Inheritance:


Public Methods

FileNodeDispRecorder(const ID &theDof, const ID &theNodes, Domain &theDomain, char *fileName, int startFlag = 0)
~FileNodeDispRecorder()
int record(int commitTag)
int playback(int commitTag)
void restart(void)

Inherited from Recorder:


Documentation

The FileNodeDispRecorder class is used to store information in an ascii file about the nodal displacement at a number of specified Nodes for a number of specified degree of freedom during an analysis

FileNodeDispRecorder(const ID &theDof, const ID &theNodes, Domain &theDomain, char *fileName, int startFlag = 0)

Opens a file fileName to which the data will be written. Note that existing data in the file is lost. Creates a 0 Vector object of size equal to the size of nodeTags times the size of theDof to store the nodal displacements, and creates ID object equal to nodeTags and theDofs to store the Node tags and degree of freedoms to be saved. If the file cannot be opened an error message is printed.

~FileNodeDispRecorder()

Closes the file that was opened in the constructor

int record(int commitTag)

For each node in nodeTags and for each degrees of freedom in theDof the committed displacement is obtained and placed in the displacement Vector. A new line is now written at the end of the file. If flag is 1, the current time is the first entry on this line. If flag is 2, the current domain load factor is the first entry on this line. The contents of the displacement Vector are then placed on the line. Opens file again for writing: note opened at end -- HAVE TO CHANGE THIS - PUT COMMIT TAG ON THE LINE AS WELL. Returns 0.

int playback(int commitTag)

Closes the file (needed in case of buffering). Opens the file again and reads the contents of the commitTag -1 line. NOTE this means commitTag must be sequential starting at 0 - which they SHOULD be. Send the contents of this line to cerr. COMMIT TAG GONNA GO ON LINE. Returns 0.

void restart(void)

Zeros the Vector of maximum nodal displacements


This class has no child classes.

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us