00001 #ifndef CRSEC2DBEAM_H 00002 #define CRSEC2DBEAM_H 00003 00004 #include "iotools.h" 00005 struct vector; 00006 struct atsel; 00007 00008 /** 00009 Class crsec2dbeam defines cross section for 2D beam elements. 00010 00011 Created by JK, 00012 */ 00013 00014 class crsec2dbeam 00015 { 00016 public: 00017 crsec2dbeam (void); 00018 ~crsec2dbeam (void); 00019 void read (XFILE *in); 00020 void print (FILE *out); 00021 00022 double give_area (); 00023 void give_moments (double *i); 00024 void give_shearcoeff (double *sc); 00025 double give_density (); 00026 00027 void changeparam (atsel &atcs,vector &val); 00028 00029 // necessary components for every problem type 00030 /// area of cross section of the beam 00031 double a; 00032 /// moment of inertia of the cross section of the beam 00033 double iy; 00034 /// shear coefficient 00035 double shearcoeff; 00036 /// height of the cross section 00037 /// it is used in analysis of layered beams 00038 double t; 00039 00040 // optional components 00041 /// density of material (necessary for dynamics) 00042 double rho; 00043 00044 }; 00045 00046 #endif