OOFEM 3.0
Loading...
Searching...
No Matches
lattice3d_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 program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2 of the License, or
23 * (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
28 * GNU General Public License for more details.
29 *
30 * You should have received a copy of the GNU General Public License
31 * along with this program; if not, write to the Free Software
32 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33 */
34
35#ifndef lattice3d_mt_h
36#define lattice3d_mt_h
37
39#include "spatiallocalizer.h"
40
42
43#define _IFT_Lattice3d_mt_Name "latticemt3d"
44#define _IFT_Lattice3DMT_polycoords "polycoords"
45#define _IFT_Lattice3DMT_crackwidths "crackwidths"
46#define _IFT_Lattice3DMT_couplingflag "couplingflag"
47#define _IFT_Lattice3DMT_couplingnumber "couplingnumber"
48#define _IFT_Lattice3DMT_dim "dim"
49#define _IFT_Lattice3DMT_area "area"
50#define _IFT_Lattice3DMT_ranarea "ranarea"
51#define _IFT_Lattice3DMT_mlength "mlength"
53
54
55namespace oofem {
56class ParamKey;
60
62{
63protected:
64
65 double minLength = 0.;
66 double length = 0.;
67 double I1 = 0., I2 = 0., Ip = 0.;
71 double eccS = 0., eccT = 0., area = 0.;
73 int geometryFlag = 0;
75
76 int couplingFlag = 0;
80
81 double dimension = 0.;
82
91
92public:
94
95 void computeInternalSourceRhsVectorAt(FloatArray &answer, TimeStep *, ValueModeType mode) override;
96 double computeVolumeAround(GaussPoint *) override;
97
98 int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override;
99
100 bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override;
101
102 void computeConductivityMatrix(FloatMatrix &answer, MatResponseMode rmode, TimeStep *tStep) override;
103
105
107
109
110 void computeCapacityMatrix(FloatMatrix &answer, TimeStep *tStep) override;
111
112 const char *giveInputRecordName() const override { return _IFT_Lattice3d_mt_Name; }
113 const char *giveClassName() const override { return "Lattice3d_mt"; }
114
115 Element_Geometry_Type giveGeometryType() const override { return EGT_line_1; }
116
117 int computeNumberOfDofs() override { return 2; }
118 void giveDofManDofIDMask(int inode, IntArray &) const override;
119 void initializeFrom(InputRecord &ir, int priority) override;
120 void postInitialize() override;
121 void updateInternalState(TimeStep *tStep) override;
122
123 double giveLength() override;
124 double giveArea() override;
125 int giveCouplingFlag() override { return this->couplingFlag; }
126 void giveCouplingNumbers(IntArray &numbers) override { numbers = this->couplingNumbers; }
127 void giveCrackWidths(FloatArray &widths) override { widths = crackWidths; }
128 void giveCrackLengths(FloatArray &lengths) override;
129
130 void giveCrossSectionCoordinates(FloatArray &coords) override { coords = polygonCoords; }
132
133 void computeFlow(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override;
134
135#ifdef __OOFEG
136
137 void drawYourself(oofegGraphicContext &gc, TimeStep *tStep) override;
138
139 void drawRawGeometry(oofegGraphicContext &, TimeStep *tStep) override;
140
142
143#endif
144
145protected:
146 void computeGaussPoints() override;
147
148 void computeGradientMatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override;
149
150 void computeBmatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override { this->computeGradientMatrixAt(answer, lcoords); }
151
152 void computeNmatrixAt(FloatMatrix &n, const FloatArray &) override;
153
154 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override { return 0; }
155
157
158 int giveApproxOrder(int unknownIndx) override { return 1; }
159};
160} // end namespace oofem
161#endif
double computeVolumeAround(GaussPoint *) override
static ParamKey IPK_Lattice3d_mt_polycoords
double giveArea() override
void giveCrackLengths(FloatArray &lengths) override
void computeSpecialCrossSectionProperties()
Lattice3d_mt(int, Domain *, ElementMode em=HeatTransferEM)
void computeCrossSectionProperties()
void giveCrossSectionCoordinates(FloatArray &coords) override
void computeBmatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override
bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords) override
const char * giveInputRecordName() const override
FloatArray polygonCoords
void giveCrackWidths(FloatArray &widths) override
static ParamKey IPK_Lattice3d_mt_couplingflag
void computeConductivityMatrix(FloatMatrix &answer, MatResponseMode rmode, TimeStep *tStep) override
double giveLength() override
FloatMatrix localCoordinateSystem
static ParamKey IPK_Lattice3d_mt_area
void drawYourself(oofegGraphicContext &gc, TimeStep *tStep) override
void computeInternalSourceRhsVectorAt(FloatArray &answer, TimeStep *, ValueModeType mode) override
static ParamKey IPK_Lattice3d_mt_dim
void updateInternalState(TimeStep *tStep) override
void giveDofManDofIDMask(int inode, IntArray &) const override
const char * giveClassName() const override
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
FloatArray globalCentroid
void giveCouplingNumbers(IntArray &numbers) override
int giveApproxOrder(int unknownIndx) override
void drawRawCrossSections(oofegGraphicContext &gc, TimeStep *tStep)
void computeFlow(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override
int computeNumberOfDofs() override
int giveCouplingFlag() override
static ParamKey IPK_Lattice3d_mt_mlength
FloatArray crackWidths
void drawRawGeometry(oofegGraphicContext &, TimeStep *tStep) override
int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords) override
int giveNumberOfCrossSectionNodes() override
void postInitialize() override
Performs post initialization steps.
Element_Geometry_Type giveGeometryType() const override
void computeNmatrixAt(FloatMatrix &n, const FloatArray &) override
void initializeFrom(InputRecord &ir, int priority) override
FloatArray crackLengths
void computeGeometryProperties()
void computeGradientMatrixAt(FloatMatrix &answer, const FloatArray &lcoords) override
void computeNSubMatrixAt(FloatMatrix &n, const FloatArray &)
static ParamKey IPK_Lattice3d_mt_crackwidths
void computeCapacityMatrix(FloatMatrix &answer, TimeStep *tStep) override
static ParamKey IPK_Lattice3d_mt_ranarea
void computeGaussPoints() override
static ParamKey IPK_Lattice3d_mt_couplingnumber
LatticeTransportElement(int, Domain *, ElementMode)
#define _IFT_Lattice3d_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