OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2013 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 
36 #ifndef transportgradientperiodic_h_
37 #define transportgradientperiodic_h_
38 
39 //#include "prescribedgradienthomogenization.h"
40 #include "activebc.h"
41 #include "floatmatrix.h"
42 #include "floatarray.h"
43 
44 #include <memory>
45 #include <map>
46 
47 #define _IFT_TransportGradientPeriodic_Name "tmgradperiodic"
48 #define _IFT_TransportGradientPeriodic_centerCoords "centercoords"
49 #define _IFT_TransportGradientPeriodic_gradient "gradient"
50 #define _IFT_TransportGradientPeriodic_masterSet "masterset"
51 #define _IFT_TransportGradientPeriodic_jump "jump"
52 
53 namespace oofem {
54 class Node;
55 
62 class OOFEM_EXPORT TransportGradientPeriodic : public ActiveBoundaryCondition //, public PrescribedGradientHomogenization
63 {
64 protected:
67 
68  std :: unique_ptr< Node > grad;
70 
71  std :: map< int, int > slavemap;
73 
74  int masterSet;
75 
79  void findSlaveToMasterMap();
80 
81  virtual double domainSize(Domain *d, int setNum);
82 
83 public:
85  virtual ~TransportGradientPeriodic();
86 
87  virtual IRResultType initializeFrom(InputRecord *ir);
88  virtual void giveInputRecord(DynamicInputRecord &input);
89  virtual void postInitialize();
90 
91  virtual int giveNumberOfInternalDofManagers();
92  virtual DofManager *giveInternalDofManager(int i);
93 
94  virtual int giveNumberOfMasterDofs(ActiveDof *dof);
95  virtual Dof *giveMasterDof(ActiveDof *dof, int mdof);
96 
97  virtual void computeDofTransformation(ActiveDof *dof, FloatArray &masterContribs);
98  virtual void computeField(FloatArray &sigma, TimeStep *tStep);
99  virtual void computeTangent(FloatMatrix &E, TimeStep *tStep);
100  double giveUnknown(double val, ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
101  virtual double giveUnknown(PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
102  virtual double giveUnknown(ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
103  virtual bool isPrimaryDof(ActiveDof *dof);
104  virtual double giveBcValue(Dof *dof, ValueModeType mode, TimeStep *tStep);
105  virtual bool hasBc(Dof *dof, TimeStep *tStep);
106  bool isGradDof(Dof *dof);
107 
108  virtual bool requiresActiveDofs() { return true; }
109 
110  virtual const char *giveClassName() const { return "TransportGradientPeriodic"; }
111  virtual const char *giveInputRecordName() const { return _IFT_TransportGradientPeriodic_Name; }
112 
113 };
114 } // end namespace oofem
115 
116 #endif // transportgradientperiodic_h_
Class and object Domain.
Definition: domain.h:115
Prescribes an average displacement gradient based on microperiodicity.
Abstract class representing field of primary variables (those, which are unknown and are typically as...
Definition: primaryfield.h:104
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Base class for dof managers.
Definition: dofmanager.h:113
Class implementing an array of integers.
Definition: intarray.h:61
virtual bool requiresActiveDofs()
Checks to see if active boundary condition requires special DOFs.
#define E(p)
Definition: mdm.C:368
Abstract base class for all active boundary conditions.
Definition: activebc.h:63
Class representing "slave" degree of freedom with an active boundary condition.
Definition: activedof.h:48
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
#define _IFT_TransportGradientPeriodic_Name
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual const char * giveClassName() const
Class representing the general Input Record.
Definition: inputrecord.h:101
Class representing the a dynamic Input Record.
virtual const char * giveInputRecordName() const
the oofem namespace is to define a context or scope in which all oofem names are defined.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
Class representing solution step.
Definition: timestep.h:80

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:32 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011