84 double l, x1, x2, z1, z2;
96 answer.
at(1, 1) = x1 - x2;
97 answer.
at(1, 2) = z1 - z2;
98 answer.
at(1, 3) = x2 - x1;
99 answer.
at(1, 4) = z2 - z1;
102 answer.
times(1.0 / l / l);
140 answer.
at(1, 1) = halfMass;
141 answer.
at(2, 2) = halfMass;
142 answer.
at(3, 3) = halfMass;
143 answer.
at(4, 4) = halfMass;
154 ksi = iLocCoord.
at(1);
155 n1 = ( 1. - ksi ) * 0.5;
156 n2 = ( 1. + ksi ) * 0.5;
160 answer.
at(1, 1) = n1;
161 answer.
at(1, 3) = n2;
162 answer.
at(2, 2) = n1;
163 answer.
at(2, 4) = n2;
177 n1 = ( 1. - ksi ) * 0.5;
178 n2 = ( 1. + ksi ) * 0.5;
213 length = sqrt(dx * dx + dz * dz);
223 double xA, xB, zA, zB;
229 if (
pitch == 10. ) {
236 pitch = atan2(zB - zA, xB - xA);
258 answer.
at(1, 1) = cosine;
259 answer.
at(1, 2) = sine;
260 answer.
at(2, 1) = -sine;
261 answer.
at(2, 2) = cosine;
262 answer.
at(3, 3) = 1.0;
309 answer = { D_u, D_w };
311 answer = { D_u, D_v };
313 answer = { D_v, D_w };
389 answer.
at(1, 1) = cosine;
390 answer.
at(1, 2) = -sine;
391 answer.
at(2, 1) = sine;
392 answer.
at(2, 2) = cosine;
414 if ( !
gc.testElementGraphicActivity(
this) ) {
419 EASValsSetColor(
gc.getElementColor() );
444 go = CreateLine3D(p);
445 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | LAYER_MASK, go);
446 EGAttachObject(go, ( EObjectP )
this);
447 EMAddGraphicsToModel(ESIModel(), go);
457 double defScale =
gc.getDefScale();
460 if ( !
gc.testElementGraphicActivity(
this) ) {
465 EASValsSetColor(
gc.getDeformedElementColor() );
476 go = CreateLine3D(p);
477 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | LAYER_MASK, go);
478 EMAddGraphicsToModel(ESIModel(), go);
#define REGISTER_Element(class)
virtual double give(CrossSectionProperty a, GaussPoint *gp) const
virtual int setupIntegrationPoints(IntegrationRule &irule, int npoints, Element *element)
double giveCoordinate(int i) const
ParameterManager dofmanPPM
Node * giveNode(int i) const
virtual bool isActivated(TimeStep *tStep)
int numberOfDofMans
Number of dofmanagers.
void postInitialize() override
Performs post initialization steps.
std::vector< std ::unique_ptr< IntegrationRule > > integrationRulesArray
CrossSection * giveCrossSection()
Domain * giveDomain() const
int number
Component number.
void zero()
Zeroes all coefficients of receiver.
void resize(Index rows, Index cols)
void zero()
Zeroes all coefficient of receiver.
double at(std::size_t i, std::size_t j) const
double giveWeight()
Returns integration weight of receiver.
void initializeFrom(InputRecord &ir, int priority) override
NLStructuralElement(int n, Domain *d)
virtual double giveUpdatedCoordinate(int ic, TimeStep *tStep, double scale=1.)
virtual FloatMatrixF< 1, 1 > giveStiffnessMatrix_dPdF_1d(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const =0
virtual FloatArrayF< 1 > giveRealStress_1d(const FloatArrayF< 1 > &reducedStrain, GaussPoint *gp, TimeStep *tStep) const =0
virtual FloatMatrixF< 1, 1 > giveStiffnessMatrix_1d(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep) const =0
StructuralCrossSection * giveStructuralCrossSection()
Helper function which returns the structural cross-section for the element.
double computeVolumeAround(GaussPoint *gp) override
void computeGaussPoints() override
void computeConstitutiveMatrix_dPdF_At(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
FEInterpolation * giveInterpolation() const override
void giveEdgeDofMapping(IntArray &answer, int) const override
int computeLoadLEToLRotationMatrix(FloatMatrix &, int, GaussPoint *gp) override
int giveLocalCoordinateSystem(FloatMatrix &answer) override
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
double computeLength() override
void postInitialize() override
Performs post initialization steps.
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Truss2d(int n, Domain *d)
double computeEdgeVolumeAround(GaussPoint *gp, int) override
static FEI2dLineLin interp[3]
void initializeFrom(InputRecord &ir, int priority) override
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
void resolveCoordIndices(int &c1, int &c2)
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &) override
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &, int=1, int=ALL_STRAINS) override
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &) override
static ParamKey IPK_Truss2d_cs
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define OOFEG_DEFORMED_GEOMETRY_LAYER
#define OOFEG_DEFORMED_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_LAYER
#define PM_UPDATE_PARAMETER(_val, _pm, _ir, _componentnum, _paramkey, _prio)