bocon Class Reference

#include <bocon.h>

List of all members.

Public Member Functions

 bocon ()
boconcopy (void)
 return pointer to new allocated object with copy of the actual instance
boconmerge (bocon *tbc)
 merges boundary conditions of the instance with the one defined in object tbc
long read (XFILE *in, long ndof)
 reads data from the opened text file
 ~bocon ()

Public Attributes

double * con
 array with prescribed values
long * dir
 array flags for each direction
char ** expr
 array with prescribed functions
long ndir
 number of directions
long * ndpd
 array with the numbers of nonzero prescribed displacements for particular directions in time dependent load cases
long nn
 node number
long * nspd
 array with the numbers of nonzero prescribed displacements for particular directions in time independent load cases

Detailed Description

Definition at line 7 of file bocon.h.


Constructor & Destructor Documentation

bocon (  ) 

Constructor initializes data members Parameters : none Returns : nothing

Definition at line 15 of file bocon.cpp.

References con, dir, expr, ndir, ndpd, nn, and nspd.

~bocon (  ) 

Definition at line 334 of file bocon.cpp.

References con, dir, expr, ndir, ndpd, Nlc, nspd, and Tnslc.


Member Function Documentation

bocon * copy ( void   ) 

return pointer to new allocated object with copy of the actual instance

Method creates copy of given object

Returns: Method returns pointer to newly alocated object of boundary condition.

Definition at line 296 of file bocon.cpp.

References con, dir, expr, memset(), ndir, ndpd, Nlc, nn, nspd, and Tnslc.

Referenced by input_nod_bocon().

bocon * merge ( bocon tbc  ) 

merges boundary conditions of the instance with the one defined in object tbc

Method tries to merge two boundary conditions

Parameters:
tbc - object of boundary condition which will be copied
Return values:
Method returns pointer to new object of boundary condition

Definition at line 170 of file bocon.cpp.

References con, dir, expr, memset(), ndir, ndpd, Nlc, nn, nspd, and Tnslc.

Referenced by input_nod_bocon().

long read ( XFILE in,
long  ndofn 
)

reads data from the opened text file

Method reads data from the text file specified by parameter in, data are in preprocessor format Parameters :

Parameters:
in - pointer to the opened text file, where the data will be read
ndofn - number of dofs in given node with prescribed condition Returns :
Return values:
0 - on success
1 - number of boundary conditions is not in range <1, ndofn>
2 - direction of a boundary condition is not in range <1, ndofn>
3 - load case of a boundary condition is not in range <1, Nlc>
4 - subload case of a boundary condition is not in range <1, Nslc>
5 - error in parsing string for dynamic boundary condition

Definition at line 42 of file bocon.cpp.

References con, dir, expr, memset(), ndir, ndpd, Nlc, Nslc, Nslc_cum, nspd, Parser::TextToTree(), Tnslc, and xfscanf().

Referenced by input_nod_bocon().


Member Data Documentation

double* con

array with prescribed values

Definition at line 27 of file bocon.h.

Referenced by bocon(), copy(), merge(), read(), and ~bocon().

long* dir

array flags for each direction

Definition at line 24 of file bocon.h.

Referenced by bocon(), copy(), merge(), read(), and ~bocon().

char** expr

array with prescribed functions

Definition at line 28 of file bocon.h.

Referenced by bocon(), copy(), merge(), read(), and ~bocon().

long ndir

number of directions

Definition at line 23 of file bocon.h.

Referenced by bocon(), copy(), merge(), read(), and ~bocon().

long* ndpd

array with the numbers of nonzero prescribed displacements for particular directions in time dependent load cases

Definition at line 26 of file bocon.h.

Referenced by bocon(), copy(), merge(), read(), and ~bocon().

long nn

node number

Definition at line 22 of file bocon.h.

Referenced by bocon(), copy(), and merge().

long* nspd

array with the numbers of nonzero prescribed displacements for particular directions in time independent load cases

Definition at line 25 of file bocon.h.

Referenced by bocon(), copy(), merge(), read(), and ~bocon().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2