OOFEM 3.0
Loading...
Searching...
No Matches
lattice2d_mt.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef lattice2d_mt_h
36#define lattice2d_mt_h
37
39#include "spatiallocalizer.h"
40
42
43#define _IFT_Lattice2d_mt_Name "latticemt2d"
44#define _IFT_Lattice2DMT_dim "dim"
45#define _IFT_Lattice2DMT_thick "thick"
46#define _IFT_Lattice2DMT_width "width"
47#define _IFT_Lattice2DMT_gpcoords "gpcoords"
48#define _IFT_Lattice2DMT_crackwidth "crackwidth"
49#define _IFT_Lattice2DMT_couplingflag "couplingflag"
50#define _IFT_Lattice2DMT_couplingnumber "couplingnumber"
52
53
54namespace oofem {
55class ParamKey;
59
61{
62protected:
63 double area = -1.;
64 double length = 0.;
65
66 int couplingFlag = 0;
70
71 double dimension = 0., width = 0., thickness = 0.;
73
74 double crackWidth = 0.;
75
83
84public:
86
88 void computeInternalSourceRhsVectorAt(FloatArray &answer, TimeStep *, ValueModeType mode) override;
89 double computeVolumeAround(GaussPoint *) override;
90
91 int giveCouplingFlag() override { return this->couplingFlag; }
92
93 void giveCouplingNumbers(IntArray &numbers) override { numbers = this->couplingNumbers; }
94
95 void giveCrackLengths(FloatArray &lengths) override { lengths = this->crackLengths; }
96
97 void giveCrackWidths(FloatArray &widths) override { widths = crackWidths; }
98
99
100 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
101
102 bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override;
103
104 void computeConductivityMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override;
105
106 void computeCapacityMatrix(FloatMatrix &answer, TimeStep *tStep) override;
107
108 const char *giveInputRecordName() const override { return _IFT_Lattice2d_mt_Name; }
109 const char *giveClassName() const override { return "Lattice2d_mtElement"; }
110
111 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
112
113 double giveWidth() { return width; }
114 int computeNumberOfDofs() override { return 2; }
115 void giveDofManDofIDMask(int inode, IntArray &) const override;
116 void initializeFrom(InputRecord &ir, int priority) override;
117 void postInitialize() override;
118
119 void updateInternalState(TimeStep *tStep) override;
120
121#ifdef __OOFEG
122 // Graphics output
123 void drawYourself(oofegGraphicContext &gc, TimeStep *tStep) override;
124 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
126 void giveCrossSectionCoordinates(FloatArray &coords) override;
127#endif
128
129protected:
130 void computeGaussPoints() override;
131
132 void computeBmatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override { this->computeGradientMatrixAt(answer, lcoords); }
133 void computeGradientMatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override;
134 void computeNmatrixAt(FloatMatrix &n, const FloatArray &) override;
135
136 double givePressure() override;
137
138 double giveOldPressure() override;
139
140 double giveMass() override;
141
142 /* computes the submatrix of interpolation matrix cooresponding to single unknown.
143 */
145
146 double giveLength() override;
147
148 double giveArea() override { return width * thickness; }
149
150 void giveGpCoordinates(FloatArray &coords) override;
151
152 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override { return 0; }
153
154 int giveApproxOrder(int unknownIndx) override { return 1; }
155};
156} // end namespace oofem
157#endif
void giveCrackWidths(FloatArray &widths) override
void drawRawCrossSections(oofegGraphicContext &gc, TimeStep *tStep)
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
void initializeFrom(InputRecord &ir, int priority) override
int giveApproxOrder(int unknownIndx) override
static ParamKey IPK_Lattice2d_mt_thickness
static ParamKey IPK_Lattice2d_mt_width
void giveDofManDofIDMask(int inode, IntArray &) const override
void computeConductivityMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
double giveOldPressure() override
void computeInternalSourceRhsVectorAt(FloatArray &answer, TimeStep *, ValueModeType mode) override
void postInitialize() override
Performs post initialization steps.
void computeNmatrixAt(FloatMatrix &n, const FloatArray &) override
void computeGaussPoints() override
FloatArray crackLengths
static ParamKey IPK_Lattice2d_mt_crackwidth
double givePressure() override
static ParamKey IPK_Lattice2d_mt_couplingnumber
Element_Geometry_Type giveGeometryType() const override
void updateInternalState(TimeStep *tStep) override
void computeBmatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override
bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override
int computeNumberOfDofs() override
const char * giveClassName() const override
void giveCrossSectionCoordinates(FloatArray &coords) override
double computeVolumeAround(GaussPoint *) override
static ParamKey IPK_Lattice2d_mt_dim
static ParamKey IPK_Lattice2d_mt_gpcoords
void giveCrackLengths(FloatArray &lengths) override
void computeNSubMatrixAt(FloatMatrix &n, const FloatArray &)
void giveCouplingNumbers(IntArray &numbers) override
static ParamKey IPK_Lattice2d_mt_couplingflag
Lattice2d_mt(int, Domain *, ElementMode em=HeatTransferEM)
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
int giveCouplingFlag() override
double giveArea() override
FloatArray crackWidths
double giveLength() override
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
double giveMass() override
void computeCapacityMatrix(FloatMatrix &answer, TimeStep *tStep) override
void drawYourself(oofegGraphicContext &gc, TimeStep *tStep) override
void giveGpCoordinates(FloatArray &coords) override
const char * giveInputRecordName() const override
void computeGradientMatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override
LatticeTransportElement(int, Domain *, ElementMode)
#define _IFT_Lattice2d_mt_Name
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011