OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
prescribedgradientbcneumann.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 #ifndef PRESCRIBEDGRADIENTBCNEUMANN_H_
36 #define PRESCRIBEDGRADIENTBCNEUMANN_H_
37 
39 #include "activebc.h"
40 
41 #include <memory>
42 
43 #define _IFT_PrescribedGradientBCNeumann_Name "prescribedgradientbcneumann"
44 
45 namespace oofem {
46 class Node;
47 class Element;
56 {
57 public:
59  virtual ~PrescribedGradientBCNeumann();
60 
61  virtual int giveNumberOfInternalDofManagers() { return 1; }
62  virtual DofManager *giveInternalDofManager(int i);
63 
64  virtual IRResultType initializeFrom(InputRecord *ir);
65  virtual void giveInputRecord(DynamicInputRecord &input);
66 
67  virtual bcType giveType() const { return UnknownBT; }
68 
69  virtual void scale(double s);
70 
71  virtual void assembleVector(FloatArray &answer, TimeStep *tStep,
72  CharType type, ValueModeType mode,
73  const UnknownNumberingScheme &s, FloatArray *eNorm = NULL);
74 
75  virtual void assemble(SparseMtrx &answer, TimeStep *tStep,
76  CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale = 1.0);
77 
78  virtual void giveLocationArrays(std :: vector< IntArray > &rows, std :: vector< IntArray > &cols, CharType type,
79  const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s);
80 
81  virtual const char *giveClassName() const { return "PrescribedGradientBCNeumann"; }
82  virtual const char *giveInputRecordName() const { return _IFT_PrescribedGradientBCNeumann_Name; }
83 
84  virtual void computeField(FloatArray &sigma, TimeStep *tStep);
85  virtual void computeTangent(FloatMatrix &tangent, TimeStep *tStep);
86 
87  void giveStressLocationArray(IntArray &oCols, const UnknownNumberingScheme &r_s);
88 
89 protected:
91  std :: unique_ptr< Node > mpSigmaHom;
93 
95  void integrateTangent(FloatMatrix &oTangent, Element *e, int iBndIndex);
96 };
97 } /* namespace oofem */
98 
99 #endif /* PRESCRIBEDGRADIENTBCNEUMANN_H_ */
Class and object Domain.
Definition: domain.h:115
Base class for all matrices stored in sparse format.
Definition: sparsemtrx.h:60
Class for homogenization of applied gradients.
Imposes a prescribed gradient weakly on the boundary with a Neumann boundary condition.
Unknown.
Definition: bctype.h:41
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Abstract base class for all finite elements.
Definition: element.h:145
Base class for dof managers.
Definition: dofmanager.h:113
Class implementing an array of integers.
Definition: intarray.h:61
bcType
Type representing the type of bc.
Definition: bctype.h:40
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
virtual int giveNumberOfInternalDofManagers()
Gives the number of internal dof managers.
Abstract base class for all active boundary conditions.
Definition: activebc.h:63
#define _IFT_PrescribedGradientBCNeumann_Name
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
virtual const char * giveClassName() const
CharType
Definition: chartype.h:87
Class representing the general Input Record.
Definition: inputrecord.h:101
Class representing the a dynamic Input Record.
std::unique_ptr< Node > mpSigmaHom
DOF-manager containing the unknown homogenized stress.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing solution step.
Definition: timestep.h:80
virtual const char * giveInputRecordName() const

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