OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
line2boundaryelement.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 line2boundaryelement_h
36 #define line2boundaryelement_h
37 
38 #include "fmelement.h"
39 #include "spatiallocalizer.h"
40 #include "floatarray.h"
41 
42 #define _IFT_Line2BoundaryElement_Name "line2boundary"
43 
44 namespace oofem {
45 class FEI2dLineQuad;
46 
53 public FMElement,
55 {
56 protected:
58 
59 public:
65  Line2BoundaryElement(int n, Domain * d);
67  virtual ~Line2BoundaryElement();
68 
69  virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep) { answer.clear(); }
70  virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep) { answer.clear(); }
71 
72  virtual void giveDofManDofIDMask(int i, IntArray &nodeDofIDMask) const;
73 
74  virtual FEInterpolation *giveInterpolation() const;
75  virtual int computeNumberOfDofs() { return 6; }
76 
77  virtual const char *giveClassName() const { return "Line2BoundaryElement"; }
78  virtual const char *giveInputRecordName() const { return _IFT_Line2BoundaryElement_Name; }
79 
80  // Interfaces
82 
83  virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer);
84 };
85 }
86 
87 #endif // line2boundaryelement_h
#define _IFT_Line2BoundaryElement_Name
Class and object Domain.
Definition: domain.h:115
virtual ~Line2BoundaryElement()
Destructor.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual const char * giveInputRecordName() const
void clear()
Clears receiver (zero size).
Definition: floatarray.h:206
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
Class implementing an array of integers.
Definition: intarray.h:61
Boundary element used for tracking solutions on arbitrary sections.
Class representing a 2d line quadratic interpolation.
Definition: fei2dlinequad.h:46
virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer)
Computes the unknown vector interpolated at the specified local coordinates.
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Line2BoundaryElement(int n, Domain *d)
Constructor.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
virtual const char * giveClassName() const
Class representing vector of real numbers.
Definition: floatarray.h:82
This abstract class represent a general base element class for fluid dynamic problems.
Definition: fmelement.h:54
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual FEInterpolation * giveInterpolation() const
virtual void giveCharacteristicMatrix(FloatMatrix &answer, CharType type, TimeStep *tStep)
Computes characteristic matrix of receiver of requested type in given time step.
CharType
Definition: chartype.h:87
Class Interface.
Definition: interface.h:82
The spatial localizer element interface associated to spatial localizer.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
the oofem namespace is to define a context or scope in which all oofem names are defined.
void clear()
Sets size of receiver to be an empty matrix. It will have zero rows and zero columns size...
Definition: floatmatrix.h:516
Class representing solution step.
Definition: timestep.h:80
virtual void giveDofManDofIDMask(int i, IntArray &nodeDofIDMask) const
Returns dofmanager dof mask for node.
virtual void giveCharacteristicVector(FloatArray &answer, CharType type, ValueModeType mode, TimeStep *tStep)
Computes characteristic vector of receiver of requested type in given time step.

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:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011