MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / FiberSection

Method FiberSection

SRC/material/section/FiberSection.cpp:49–80  ·  view source on GitHub ↗

constructors:

Source from the content-addressed store, hash-verified

47
48// constructors:
49FiberSection::FiberSection(int tag, int num, Fiber **fibers):
50 SectionForceDeformation(tag, SEC_TAG_Fiber),
51 numFibers(num), theFibers(0), sizeFibers(num),
52 e(0), eCommit(0), s(0), ks(0), order(0), code(0), otherDbTag(0)
53{
54 theFibers = new Fiber *[numFibers];
55
56 if (theFibers == 0) {
57 opserr << "FiberSection::FiberSection -- failed to allocate Fiber pointers";
58 exit(-1);
59 }
60
61 for (int i = 0; i < numFibers; i++) {
62 theFibers[i] = fibers[i]->getCopy();
63
64 if (theFibers[i] == 0) {
65 opserr << "FiberSection::FiberSection -- failed to get copy of Fiber";
66 exit(-1);
67 }
68
69 }
70
71 order = theFibers[0]->getOrder();
72
73 e = new Vector(order);
74 eCommit = new Vector(order);
75 s = new Vector(order);
76 ks = new Matrix(order,order);
77
78 code = new ID(order);
79 *code = theFibers[0]->getType();
80}
81
82// constructor for blank object that recvSelf needs to be invoked upon
83FiberSection::FiberSection():

Callers

nothing calls this directly

Calls 4

exitFunction · 0.85
getCopyMethod · 0.45
getOrderMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected