OOFEM 3.0
Loading...
Searching...
No Matches
mixedgradientpressureweakperiodic.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_MixedGradientPressureWeakPeriodic_Name "mixedgradientpressureweakperiodic"
49#define _IFT_MixedGradientPressureWeakPeriodic_order "order"
50
51namespace oofem {
52class MasterDof;
53class Node;
54class IntegrationRule;
55class SparseMtrx;
56class SparseLinearSystemNM;
57class Element;
58
65{
66protected:
74
76 double pressure;
77
79 int order;
80
82 std :: unique_ptr< Node > voldman;
84
86 std :: unique_ptr< Node > tractionsdman;
88
89public:
96
99
104 int giveNumberOfInternalDofManagers() override;
108 DofManager *giveInternalDofManager(int i) override;
109
111 bcType giveType() const override { return UnknownBT; }
112
120 void initializeFrom(InputRecord &ir) override;
121 void giveInputRecord(DynamicInputRecord &input) override;
122
123 void scale(double s) override;
124
125 void computeFields(FloatArray &sigmaDev, double &vol, TimeStep *tStep) override;
126 void computeStress(FloatArray &sigmaDev, FloatArray &tractions, double rve_size);
127 void computeTangents(FloatMatrix &Ed, FloatArray &Ep, FloatArray &Cd, double &Cp, TimeStep *tStep) override;
128
129 void setPrescribedPressure(double p) override { pressure = p; }
130 void setPrescribedDeviatoricGradientFromVoigt(const FloatArray &ddev) override;
131
132 void assembleVector(FloatArray &answer, TimeStep *tStep,
133 CharType type, ValueModeType mode,
134 const UnknownNumberingScheme &s, FloatArray *eNorm=nullptr,
135 void*lock=nullptr) override;
136
137 void assemble(SparseMtrx &answer, TimeStep *tStep,
138 CharType type, const UnknownNumberingScheme &r_s,
139 const UnknownNumberingScheme &c_s, double scale = 1.0,
140 void* lock=nullptr) override;
141
142 void giveLocationArrays(std :: vector< IntArray > &rows, std :: vector< IntArray > &cols, CharType type,
143 const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) override;
144
145 const char *giveClassName() const override { return "MixedGradientPressureWeakPeriodic"; }
147
148protected:
149 void integrateTractionVelocityTangent(FloatMatrix &answer, Element *el, int boundary);
150 void integrateTractionXTangent(FloatMatrix &answer, Element *el, int boundary);
151 void integrateTractionDev(FloatArray &answer, Element *el, int boundary, const FloatMatrix &ddev);
152 void constructMMatrix(FloatMatrix &mMatrix, FloatArray &coords, FloatArray &normal);
153 void evaluateTractionBasisFunctions(FloatArray &answer, const FloatArray &coords);
154 void constructFullMatrixForm(FloatMatrix &d, const FloatArray &d_voigt) const;
155};
156} // end namespace oofem
157
158#endif // mixedgradientpressurecneumann_h
std ::unique_ptr< Node > tractionsdman
DOF-manager containing the unknown tractions (Lagrange mult. for micro-periodic velocity).
std ::unique_ptr< Node > voldman
DOF-manager containing the unknown volumetric gradient (always exactly one dof).
bcType giveType() const override
Not relevant for this boundary condition.
#define _IFT_MixedGradientPressureWeakPeriodic_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