00001 #ifndef BOCON_H 00002 #define BOCON_H 00003 00004 #include <stdio.h> 00005 #include "iotools.h" 00006 00007 class bocon 00008 { 00009 public: 00010 bocon(); 00011 ~bocon(); 00012 00013 /// reads data from the opened text file 00014 long read(XFILE *in, long ndof); 00015 00016 /// return pointer to new allocated object with copy of the actual instance 00017 bocon *copy(void); 00018 00019 /// merges boundary conditions of the instance with the one defined in object tbc 00020 bocon *merge(bocon *tbc); 00021 00022 long nn; ///< node number 00023 long ndir; ///< number of directions 00024 long *dir; ///< array flags for each direction 00025 long *nspd; ///< array with the numbers of nonzero prescribed displacements for particular directions in time independent load cases 00026 long *ndpd; ///< array with the numbers of nonzero prescribed displacements for particular directions in time dependent load cases 00027 double *con; ///< array with prescribed values 00028 char **expr; ///< array with prescribed functions 00029 }; 00030 00031 #endif