OOFEM 3.0
Loading...
Searching...
No Matches
mixedgradientpressureneumann.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 mixedgradientpressurecneumann_h
36#define mixedgradientpressurecneumann_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_MixedGradientPressureNeumann_Name "mixedgradientpressureneumann"
49
50namespace oofem {
51class MasterDof;
52class Node;
53class IntegrationRule;
54class SparseMtrx;
55class SparseLinearSystemNM;
56class Element;
57
92{
93protected:
101
103 double pressure;
104
106 std :: unique_ptr< Node > sigmaDev;
109
110public:
117
120
126 int giveNumberOfInternalDofManagers() override;
130 DofManager *giveInternalDofManager(int i) override;
131
133 bcType giveType() const override { return UnknownBT; }
134
142 void initializeFrom(InputRecord &ir) override;
143 void giveInputRecord(DynamicInputRecord &input) override;
144
145 void scale(double s) override;
146
147 void computeFields(FloatArray &sigmaDev, double &vol, TimeStep *tStep) override;
148 void computeTangents(FloatMatrix &Ed, FloatArray &Ep, FloatArray &Cd, double &Cp, TimeStep *tStep) override;
149
150 void setPrescribedPressure(double p) override { pressure = p; }
151 void setPrescribedDeviatoricGradientFromVoigt(const FloatArray &ddev) override;
152
153 void assembleVector(FloatArray &answer, TimeStep *tStep,
154 CharType type, ValueModeType mode,
155 const UnknownNumberingScheme &s, FloatArray *eNorm=nullptr,
156 void*lock=nullptr) override;
157
158 void assemble(SparseMtrx &answer, TimeStep *tStep,
159 CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s,
160 double scale = 1.0, void*lock=nullptr) override;
161
162 void giveLocationArrays(std :: vector< IntArray > &rows, std :: vector< IntArray > &cols, CharType type,
163 const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) override;
164
165 const char *giveClassName() const override { return "MixedGradientPressureNeumann"; }
166 const char *giveInputRecordName() const override { return _IFT_MixedGradientPressureNeumann_Name; }
167
168protected:
170 void integrateDevTangent(FloatMatrix &answer, Element *e, int boundary);
172 void integrateVolTangent(FloatArray &answer, Element *e, int boundary);
173
175 void fromDeviatoricBase2D(FloatArray &cartesian, FloatArray &deviatoric);
177 void fromDeviatoricBase3D(FloatArray &cartesian, FloatArray &deviatoric);
179 void fromDeviatoricBase2D(FloatMatrix &cartesian, FloatMatrix &deviatoric);
181 void fromDeviatoricBase3D(FloatMatrix &cartesian, FloatMatrix &deviatoric);
182};
183} // end namespace oofem
184
185#endif // mixedgradientpressurecneumann_h
DofManager * giveInternalDofManager(int i) override
std ::unique_ptr< Node > sigmaDev
DOF-manager containing the unknown deviatoric stress.
const char * giveInputRecordName() const override
FloatArray devGradient
Prescribed gradient in Voigt form.
IntArray dev_id
Dof IDs for the lagrange multipliers in sigmaDev.
bcType giveType() const override
Not relevant for this boundary condition.
#define _IFT_MixedGradientPressureNeumann_Name
FloatArrayF< N > assemble(const FloatArrayF< M > &x, int const (&c)[M])
Assemble components into zero matrix.
bcType
Type representing the type of bc.
Definition bctype.h:40
@ UnknownBT
Unknown.
Definition bctype.h:41
#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