OOFEM 3.0
Loading...
Searching...
No Matches
transportgradientdirichlet.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#pragma once
36
37#include "boundarycondition.h"
38#include "dof.h"
39#include "bctype.h"
40#include "valuemodetype.h"
41#include "floatarray.h"
42#include "floatmatrix.h"
43
44#include <map>
45
47
48#define _IFT_TransportGradientDirichlet_Name "tmgraddirichlet"
49#define _IFT_TransportGradientDirichlet_gradient "gradient"
50#define _IFT_TransportGradientDirichlet_centerCoords "centercoords"
51#define _IFT_TransportGradientDirichlet_surfSets "surfsets"
52#define _IFT_TransportGradientDirichlet_edgeSets "edgesets"
53#define _IFT_TransportGradientDirichlet_tractionControl "usexi"
55
56namespace oofem {
57
74{
75protected:
78
79 bool tractionControl = false;
81 std :: map< int, FloatArray > xis;
83
84public:
86
87 void initializeFrom(InputRecord &ir) override;
88 void giveInputRecord(DynamicInputRecord &input) override;
89 void postInitialize() override;
90
91 double give(Dof *dof, ValueModeType mode, double time) override;
92
93 bcType giveType() const override { return DirichletBT; }
94
95 double domainSize();
102 void computeCoefficientMatrix(FloatMatrix &C);
103
109 virtual void computeField(FloatArray &sigma, TimeStep *tStep);
110
116 virtual void computeTangent(FloatMatrix &tangent, TimeStep *tStep);
117
119 void computeXi();
120
121 void scale(double s) override { mGradient.times(s); }
122
123 const char *giveClassName() const override { return "TransportGradientDirichlet"; }
124 const char *giveInputRecordName() const override { return _IFT_TransportGradientDirichlet_Name; }
125};
126} // end namespace oofem
BoundaryCondition(int i, Domain *d)
const char * giveClassName() const override
std ::map< int, FloatArray > xis
Stores one "psi" value for each node.
const char * giveInputRecordName() const override
bcType
Type representing the type of bc.
Definition bctype.h:40
@ DirichletBT
Prescribed value.
Definition bctype.h:42
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_TransportGradientDirichlet_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