00001 #ifndef NODE_H
00002 #define NODE_H
00003
00004 #include <stdio.h>
00005 #include "alias.h"
00006 #include "iotools.h"
00007 struct vector;
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 class node
00018 {
00019 public:
00020 node (void);
00021 ~node (void);
00022 void read (XFILE *in,long ndofn);
00023 void print (FILE *out);
00024 void alloc (long ncomp,long ncompo,long nlc);
00025 void alloc_strain (long ncomp,long nlc);
00026 void alloc_stress (long ncomp,long nlc);
00027 void alloc_other (long ncompo);
00028 void realloc (long ncompo,long nlc);
00029
00030 void storestrain (long lcid,long fi,vector &eps);
00031 void storestrain (long lcid,long fi,double vol,vector &eps);
00032 void storestrain (long lcid,long fi,long ncomp,vector &eps);
00033 void storestress (long lcid,long fi,vector &sig);
00034 void storestress (long lcid,long fi,double vol,vector &sig);
00035 void storestress (long lcid,long fi,long ncomp,vector &sig);
00036 void storeother (long fi,long ncomp,vector &otherv);
00037 void storeother (long fi,long ncomp,double vol,vector &otherv);
00038 void strain_averageval (long lcid);
00039 void stress_averageval (long lcid);
00040 void other_averageval ();
00041 void nullstrain (long lcid);
00042 void nullstress (long lcid);
00043 void nullother ();
00044 void clean (long nlc);
00045 void alloc_meaning (long nid);
00046 void alloc_growstr (long nid);
00047
00048
00049 crsectype crst;
00050
00051 long idcs;
00052
00053 long transf;
00054
00055 double *e1,*e2,*e3;
00056
00057 double *pstra;
00058
00059 double *pstre;
00060
00061 long react;
00062
00063 double *r;
00064
00065 long ncompstr;
00066
00067 long ncompother;
00068
00069 long *ncontr_strain,*ncontr_stress, ncontr_other;
00070
00071 double *vol_strain, *vol_stress, vol_other;
00072
00073 double *strain;
00074
00075 double *stress;
00076
00077
00078
00079 double *other;
00080
00081
00082 double *nodval;
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092 long *meaning;
00093
00094 };
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110 #endif