OOFEM 3.0
Loading...
Searching...
No Matches
mixedgradientpressuredirichlet.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 mixedgradientpressuredirichlet_h
36#define mixedgradientpressuredirichlet_h
37
39#include "boundarycondition.h"
40#include "dof.h"
41#include "bctype.h"
42#include "valuemodetype.h"
43#include "floatarray.h"
44#include "floatmatrix.h"
45
46#include <memory>
47
48#define _IFT_MixedGradientPressureDirichlet_Name "mixedgradientpressuredirichlet"
49
50namespace oofem {
51class MasterDof;
52class Node;
53class SparseMtrx;
54class SparseLinearSystemNM;
55
73{
74protected:
77
80
82 double pressure;
83
85 std :: unique_ptr< Node > voldman;
86 int vol_id;
87
89 std :: unique_ptr< Node > devdman;
91
92 Dof *giveVolDof();
93
94public:
101
104
110 int giveNumberOfInternalDofManagers() override;
114 DofManager *giveInternalDofManager(int i) override;
115
126 void initializeFrom(InputRecord &ir) override;
127 void giveInputRecord(DynamicInputRecord &input) override;
128
129 void scale(double s) override {
130 devGradient.times(s);
131 pressure *= s;
132 }
133
134 void computeFields(FloatArray &stressDev, double &vol, TimeStep *tStep) override;
135 void computeTangents(FloatMatrix &Ed, FloatArray &Ep, FloatArray &Cd, double &Cp, TimeStep *tStep) override;
136
137 void setPrescribedPressure(double p) override { pressure = p; }
138 void setPrescribedDeviatoricGradientFromVoigt(const FloatArray &ddev) override;
139
144 virtual void setCenterCoordinate(const FloatArray &x) { centerCoord = x; }
147
148 void assembleVector(FloatArray &answer, TimeStep *tStep,
149 CharType type, ValueModeType mode,
150 const UnknownNumberingScheme &s, FloatArray *eNorms=nullptr,
151 void* lock=nullptr) override;
152
153 bool requiresActiveDofs() override { return true; }
154 bool isPrimaryDof(ActiveDof *dof) override;
155
156 double giveBcValue(Dof *dof, ValueModeType mode, TimeStep *tStep) override;
157 bool hasBc(Dof *dof, TimeStep *tStep) override;
158
160 bool isDevDof(Dof *dof);
161
162 int giveNumberOfMasterDofs(ActiveDof *dof) override;
163 Dof *giveMasterDof(ActiveDof *dof, int mdof) override;
164 void computeDofTransformation(ActiveDof *dof, FloatArray &masterContribs) override;
165
166 double giveUnknown(double vol, const FloatArray &dev, ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
167 double giveUnknown(PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof) override;
168 double giveUnknown(ValueModeType mode, TimeStep *tStep, ActiveDof *dof) override;
169
170 const char *giveClassName() const override { return "MixedGradientPressureDirichlet"; }
171 const char *giveInputRecordName() const override { return _IFT_MixedGradientPressureDirichlet_Name; }
172};
173} // end namespace oofem
174
175#endif // mixedgradientpressuredirichlet_h
virtual void setCenterCoordinate(const FloatArray &x)
void giveInputRecord(DynamicInputRecord &input) override
std ::unique_ptr< Node > voldman
DOF-manager containing the unknown volumetric strain(rate).
std ::unique_ptr< Node > devdman
DOF-manager containing the known deviatoric strain(rate).
FloatArray devGradient
Prescribed gradient in Voigt form.
FloatArray & giveCenterCoordinate()
Returns the center coordinate.
#define _IFT_MixedGradientPressureDirichlet_Name
#define OOFEM_EXPORT
Definition oofemcfg.h:7

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