00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef FiberSection_h
00034 #define FiberSection_h
00035
00036 #include <SectionForceDeformation.h>
00037 #include <Vector.h>
00038 #include <Matrix.h>
00039
00040 class Fiber;
00041 class Response;
00042
00043 class FiberSection : public SectionForceDeformation
00044 {
00045 public:
00046 FiberSection();
00047 FiberSection(int tag, int estNumFibers = 8);
00048 FiberSection(int tag, int numFibers, Fiber **fibers);
00049 ~FiberSection();
00050
00051 int setTrialSectionDeformation(const Vector &deforms);
00052 const Vector &getSectionDeformation(void);
00053
00054 const Vector &getStressResultant(void);
00055 const Matrix &getSectionTangent(void);
00056
00057 int commitState(void);
00058 int revertToLastCommit(void);
00059 int revertToStart(void);
00060
00061 SectionForceDeformation *getCopy(void);
00062 const ID &getType (void);
00063 int getOrder (void) const;
00064
00065 int sendSelf(int cTag, Channel &theChannel);
00066 int recvSelf(int cTag, Channel &theChannel,
00067 FEM_ObjectBroker &theBroker);
00068 void Print(OPS_Stream &s, int flag = 0);
00069
00070 Response *setResponse(const char **argv, int argc, Information &info);
00071 int getResponse(int responseID, Information &info);
00072
00073 int addFiber(Fiber &theFiber);
00074
00075 protected:
00076
00077 private:
00078 int numFibers;
00079 Fiber **theFibers;
00080
00081 int sizeFibers;
00082
00083 int order;
00084 ID *code;
00085
00086 Vector *e;
00087 Vector *eCommit;
00088 Vector *s;
00089 Matrix *ks;
00090
00091 int otherDbTag;
00092 };
00093
00094 #endif