OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
coupledfieldselement.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  *
14  * Copyright (C) 1993 - 2013 Borek Patzak
15  *
16  *
17  *
18  * Czech Technical University, Faculty of Civil Engineering,
19  * Department of Structural Mechanics, 166 29 Prague, Czech Republic
20  *
21  * This library is free software; you can redistribute it and/or
22  * modify it under the terms of the GNU Lesser General Public
23  * License as published by the Free Software Foundation; either
24  * version 2.1 of the License, or (at your option) any later version.
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29  * Lesser General Public License for more details.
30  *
31  * You should have received a copy of the GNU Lesser General Public
32  * License along with this library; if not, write to the Free Software
33  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
34  */
35 #if 1
36 #ifndef coupledfieldselement_h
37 #define coupledfieldselement_h
38 
39 #include "../sm/Elements/nlstructuralelement.h"
40 
41 namespace oofem {
48 {
49 protected:
50  int nlGeo;
51 
52 public:
53  CoupledFieldsElement(int i, Domain *aDomain);
54  virtual ~CoupledFieldsElement() {}
55 
57  virtual void giveDofManDofIDMask (int inode, EquationID ut, IntArray& answer) const = 0;
58 
59 protected:
60 
61  virtual void computeNStressAt(GaussPoint *, FloatArray &) = 0;
62  virtual void computeBStressAt(GaussPoint *, FloatArray &) = 0;
63 
64  virtual double computeVolumeAround(GaussPoint *) = 0;
66  void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) = 0;
67 
68 
69 
70  void computeVectorOfDofIDs(const IntArray &dofIdArray, ValueModeType valueMode, TimeStep *stepN, FloatArray &answer);
71  void computeLocationArrayOfDofIDs(const IntArray &dofIdArray, IntArray &answer);
72 
74  void (*Nfunc)(GaussPoint*, FloatMatrix),
75  void (*Bfunc)(GaussPoint*, FloatMatrix),
76  void (*NStiffness)(FloatMatrix, MatResponseMode, GaussPoint*, TimeStep*),
77  void (*BStiffness)(FloatMatrix, MatResponseMode, GaussPoint*, TimeStep*),
78  double (*volumeAround)(GaussPoint*) );
79 
80 
81  void giveInternalForcesVectorGen(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord,
82  void (*Nfunc)(GaussPoint*, FloatMatrix), void (*Bfunc)(GaussPoint*, FloatMatrix, int, int), //(GaussPoint*, FloatMatrix)
83  void (*NStress)(GaussPoint*, FloatArray), void (*BStress)(GaussPoint*, FloatArray),
84  double (*volumeAround)(GaussPoint*)
85  );
86 
87 };
88 } // end namespace oofem
89 
90 #endif
91 #endif
void computeStiffnessMatrix(FloatMatrix &, MatResponseMode, TimeStep *)=0
Computes the stiffness matrix of receiver.
virtual void giveDofManDofIDMask(int inode, EquationID ut, IntArray &answer) const =0
virtual void computeBStressAt(GaussPoint *, FloatArray &)=0
Class and object Domain.
Definition: domain.h:115
Abstract base class for "structural" finite elements with geometrical nonlinearities.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
CoupledFieldsElement(int i, Domain *aDomain)
void computeVectorOfDofIDs(const IntArray &dofIdArray, ValueModeType valueMode, TimeStep *stepN, FloatArray &answer)
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
Abstract class for gradient formulation of coupled damage-plasticity model(GradDp).
virtual double computeVolumeAround(GaussPoint *)=0
Returns volume related to given integration point.
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
void giveInternalForcesVectorGen(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord, void(*Nfunc)(GaussPoint *, FloatMatrix), void(*Bfunc)(GaussPoint *, FloatMatrix, int, int), void(*NStress)(GaussPoint *, FloatArray), void(*BStress)(GaussPoint *, FloatArray), double(*volumeAround)(GaussPoint *))
void computeLocationArrayOfDofIDs(const IntArray &dofIdArray, IntArray &answer)
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord)=0
Evaluates nodal representation of real internal forces.
Class representing the general Input Record.
Definition: inputrecord.h:101
void computeStiffnessMatrixGen(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep, void(*Nfunc)(GaussPoint *, FloatMatrix), void(*Bfunc)(GaussPoint *, FloatMatrix), void(*NStiffness)(FloatMatrix, MatResponseMode, GaussPoint *, TimeStep *), void(*BStiffness)(FloatMatrix, MatResponseMode, GaussPoint *, TimeStep *), double(*volumeAround)(GaussPoint *))
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void computeNStressAt(GaussPoint *, FloatArray &)=0
Class representing integration point in finite element program.
Definition: gausspoint.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:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011