00001 #ifndef CRSEC2DBAR_H 00002 #define CRSEC2DBAR_H 00003 00004 #include "iotools.h" 00005 struct vector; 00006 struct atsel; 00007 00008 /** 00009 Class crsec2dbar defines cross section for bar elements in 2D. 00010 00011 Created by JK 00012 */ 00013 00014 class crsec2dbar 00015 { 00016 public: 00017 crsec2dbar (void); 00018 ~crsec2dbar (void); 00019 void read (XFILE *in); 00020 void print (FILE *out); 00021 void changeparam (atsel &atcs,vector &val); 00022 00023 // necessary components for every problem type 00024 /// area of cross section of the bar 00025 double a; 00026 00027 // optional components 00028 /// density of material (necessary for dynamics) 00029 double rho; 00030 00031 }; 00032 00033 #endif