OOFEM 3.0
Loading...
Searching...
No Matches
tr1bubblestokes.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 tr1bubblestokes_h
36#define tr1bubblestokes_h
37
38#include "fmelement.h"
40#include "spatiallocalizer.h"
41#include "matresponsemode.h"
42
43#define _IFT_Tr1BubbleStokes_Name "tr1bubblestokes"
44
45namespace oofem {
46class FEI2dTrLin;
47class ElementDofManager;
48
60{
61protected:
67 static IntArray edge_ordering [ 3 ];
68
70 std :: unique_ptr< ElementDofManager > bubble;
71 // Coordinates associated with the bubble dofs.
72 //FloatArray bubbleCoord; // Assumed fixed at 0 for now (i.e. only linear geometry)
73
74public:
75 Tr1BubbleStokes(int n, Domain * d);
76
77 double computeVolumeAround(GaussPoint *gp) override;
78
79 void computeGaussPoints() override;
80
81 void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override;
82 void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override;
83
85 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep);
86
88 void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override;
89 void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override;
90
91 const char *giveClassName() const override { return "Tr1BubbleStokes"; }
92 const char *giveInputRecordName() const override { return _IFT_Tr1BubbleStokes_Name; }
93 MaterialMode giveMaterialMode() override { return _2dFlow; }
94 Element_Geometry_Type giveGeometryType() const override {return EGT_triangle_1;}
95
96 int computeNumberOfDofs() override;
97
98 int giveNumberOfInternalDofManagers() const override;
99 DofManager *giveInternalDofManager(int i) const override;
100 void giveInternalDofManDofIDMask(int i, IntArray &answer) const override;
101
102 FEInterpolation *giveInterpolation() const override;
103 FEInterpolation *giveInterpolation(DofIDItem id) const override;
104
105 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
106
107 void updateYourself(TimeStep *tStep) override;
108
110
111 void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override;
112};
113} // end namespace oofem
114#endif // tr1bubblestokes_h
FMElement(int n, Domain *aDomain)
Definition fmelement.C:38
SpatialLocalizerInterface(Element *element)
DofManager * giveInternalDofManager(int i) const override
void computeField(ValueModeType u, TimeStep *tStep, const FloatArray &coords, FloatArray &answer) override
Interface * giveInterface(InterfaceType it) override
void computeInternalForcesVector(FloatArray &answer, TimeStep *tStep)
Element_Geometry_Type giveGeometryType() const override
void computeLoadVector(FloatArray &answer, BodyLoad *load, CharType type, ValueModeType mode, TimeStep *tStep) override
double computeVolumeAround(GaussPoint *gp) override
int giveNumberOfInternalDofManagers() const override
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, TimeStep *tStep)
static IntArray momentum_ordering
Ordering of dofs in element. Used to assemble the element stiffness.
void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) override
void giveInternalDofManDofIDMask(int i, IntArray &answer) const override
void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) override
FEInterpolation * giveInterpolation() const override
static IntArray edge_ordering[3]
Ordering of dofs on edges. Used to assemble edge loads.
const char * giveInputRecordName() const override
void updateYourself(TimeStep *tStep) override
void computeExternalForcesVector(FloatArray &answer, TimeStep *tStep)
void computeBoundarySurfaceLoadVector(FloatArray &answer, BoundaryLoad *load, int boundary, CharType type, ValueModeType mode, TimeStep *tStep, bool global=true) override
Tr1BubbleStokes(int n, Domain *d)
int computeNumberOfDofs() override
MaterialMode giveMaterialMode() override
const char * giveClassName() const override
static IntArray conservation_ordering
std ::unique_ptr< ElementDofManager > bubble
The extra dofs from the bubble.
static FEI2dTrLin interp
Interpolation for pressure.
void computeGaussPoints() override
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define _IFT_Tr1BubbleStokes_Name

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