OOFEM 3.0
Loading...
Searching...
No Matches
transportgradientperiodic.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 transportgradientperiodic_h_
36#define transportgradientperiodic_h_
37
38//#include "prescribedgradienthomogenization.h"
39#include "activebc.h"
40#include "floatmatrix.h"
41#include "floatarray.h"
42
43#include <memory>
44#include <map>
45
46#define _IFT_TransportGradientPeriodic_Name "tmgradperiodic"
47#define _IFT_TransportGradientPeriodic_centerCoords "centercoords"
48#define _IFT_TransportGradientPeriodic_gradient "gradient"
49#define _IFT_TransportGradientPeriodic_masterSet "masterset"
50#define _IFT_TransportGradientPeriodic_jump "jump"
51
52namespace oofem {
53class Node;
54
61class OOFEM_EXPORT TransportGradientPeriodic : public ActiveBoundaryCondition //, public PrescribedGradientHomogenization
62{
63protected:
66
67 std :: unique_ptr< Node > grad;
69
70 std :: map< int, int > slavemap;
72
73 int masterSet = 0;
74
79
80 virtual double domainSize(Domain *d, int setNum);
81
82public:
84
85 void initializeFrom(InputRecord &ir) override;
86 void giveInputRecord(DynamicInputRecord &input) override;
87 void postInitialize() override;
88
90 DofManager *giveInternalDofManager(int i) override;
91
92 int giveNumberOfMasterDofs(ActiveDof *dof) override;
93 Dof *giveMasterDof(ActiveDof *dof, int mdof) override;
94
95 void computeDofTransformation(ActiveDof *dof, FloatArray &masterContribs) override;
96 virtual void computeField(FloatArray &sigma, TimeStep *tStep);
97 virtual void computeTangent(FloatMatrix &E, TimeStep *tStep);
98 double giveUnknown(double val, ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
99 double giveUnknown(PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof) override;
100 double giveUnknown(ValueModeType mode, TimeStep *tStep, ActiveDof *dof) override;
101 bool isPrimaryDof(ActiveDof *dof) override;
102 double giveBcValue(Dof *dof, ValueModeType mode, TimeStep *tStep) override;
103 bool hasBc(Dof *dof, TimeStep *tStep) override;
104 bool isGradDof(Dof *dof);
105
106 bool requiresActiveDofs() override { return true; }
107
108 const char *giveClassName() const override { return "TransportGradientPeriodic"; }
109 const char *giveInputRecordName() const override { return _IFT_TransportGradientPeriodic_Name; }
110
111};
112} // end namespace oofem
113
114#endif // transportgradientperiodic_h_
#define E(a, b)
ActiveBoundaryCondition(int n, Domain *d)
Definition activebc.h:71
int giveNumberOfMasterDofs(ActiveDof *dof) override
const char * giveClassName() const override
void postInitialize() override
Performs post initialization steps. Called after all components are created and initialized.
double giveBcValue(Dof *dof, ValueModeType mode, TimeStep *tStep) override
Dof * giveMasterDof(ActiveDof *dof, int mdof) override
void initializeFrom(InputRecord &ir) override
void computeDofTransformation(ActiveDof *dof, FloatArray &masterContribs) override
virtual void computeTangent(FloatMatrix &E, TimeStep *tStep)
bool hasBc(Dof *dof, TimeStep *tStep) override
virtual void computeField(FloatArray &sigma, TimeStep *tStep)
int giveNumberOfInternalDofManagers() override
Gives the number of internal dof managers.
const char * giveInputRecordName() const override
DofManager * giveInternalDofManager(int i) override
Gives an internal dof manager from receiver.
void giveInputRecord(DynamicInputRecord &input) override
virtual double domainSize(Domain *d, int setNum)
bool isPrimaryDof(ActiveDof *dof) override
double giveUnknown(double val, ValueModeType mode, TimeStep *tStep, ActiveDof *dof)
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_TransportGradientPeriodic_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