OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
prescribedgradientbcperiodic.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 prescribedgradientperiodic_h_
37 #define prescribedgradientperiodic_h_
38 
40 #include "activebc.h"
41 #include "floatmatrix.h"
42 #include "floatarray.h"
43 
44 #include <memory>
45 #include <map>
46 
47 #define _IFT_PrescribedGradientBCPeriodic_Name "prescribedgradientperiodic"
48 #define _IFT_PrescribedGradientBCPeriodic_masterSet "masterset"
49 #define _IFT_PrescribedGradientBCPeriodic_jump "jump"
50 
51 namespace oofem {
52 class Node;
53 
61 {
62 protected:
63  std :: unique_ptr< Node > strain;
65 
66  std :: map< int, int > slavemap;
68 
69  int masterSet;
70 
74  void findSlaveToMasterMap();
75 
76 public:
79 
80  virtual IRResultType initializeFrom(InputRecord *ir);
81  virtual void giveInputRecord(DynamicInputRecord &input);
82  virtual void postInitialize();
83 
84  virtual int giveNumberOfInternalDofManagers();
85  virtual DofManager *giveInternalDofManager(int i);
86 
87  virtual int giveNumberOfMasterDofs(ActiveDof *dof);
88  virtual Dof *giveMasterDof(ActiveDof *dof, int mdof);
89 
90  virtual void computeDofTransformation(ActiveDof *dof, FloatArray &masterContribs);
91  virtual void computeField(FloatArray &sigma, TimeStep *tStep);
92  virtual void computeTangent(FloatMatrix &E, TimeStep *tStep);
93  double giveUnknown(double val, ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
94  virtual double giveUnknown(PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
95  virtual double giveUnknown(ValueModeType mode, TimeStep *tStep, ActiveDof *dof);
96  virtual bool isPrimaryDof(ActiveDof *dof);
97  virtual double giveBcValue(Dof *dof, ValueModeType mode, TimeStep *tStep);
98  virtual bool hasBc(Dof *dof, TimeStep *tStep);
99  bool isStrainDof(Dof *dof);
100 
101  virtual bool requiresActiveDofs() { return true; }
102 
103  virtual const char *giveClassName() const { return "PrescribedGradientBCPeriodic"; }
104  virtual const char *giveInputRecordName() const { return _IFT_PrescribedGradientBCPeriodic_Name; }
105 
106 };
107 } // end namespace oofem
108 
109 #endif // prescribedgradientperiodic_h_
Class and object Domain.
Definition: domain.h:115
Class for homogenization of applied gradients.
Abstract class representing field of primary variables (those, which are unknown and are typically as...
Definition: primaryfield.h:104
virtual const char * giveInputRecordName() const
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
virtual bool requiresActiveDofs()
Checks to see if active boundary condition requires special DOFs.
Class implementing an array of integers.
Definition: intarray.h:61
#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
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
Class representing the a dynamic Input Record.
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
Prescribes an average displacement gradient based on microperiodicity.
#define _IFT_PrescribedGradientBCPeriodic_Name
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:30 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011