OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
skylineu.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 skylineu_h
36 #define skylineu_h
37 
38 #include "sparsemtrx.h"
39 #include "rowcol.h"
40 
41 #define _IFT_SkylineUnsym_Name "skylineu"
42 
43 
44 namespace oofem {
46 #define SkylineUnsym_TINY_PIVOT 1.e-30
47 
54 class OOFEM_EXPORT SkylineUnsym : public SparseMtrx
55 {
56 protected:
60  int size;
63 
64 public:
70  SkylineUnsym(int n);
75  SkylineUnsym();
77  virtual ~SkylineUnsym();
78 
79  // Overloaded methods:
80  virtual SparseMtrx *GiveCopy() const;
81  virtual void times(const FloatArray &x, FloatArray &answer) const;
82  virtual void timesT(const FloatArray &x, FloatArray &answer) const;
83  virtual void times(double x);
84  virtual int buildInternalStructure(EngngModel *, int, const UnknownNumberingScheme &s);
85  int setInternalStructure(IntArray &a);
86  virtual int assemble(const IntArray &loc, const FloatMatrix &mat);
87  virtual int assemble(const IntArray &rloc, const IntArray &cloc, const FloatMatrix &mat);
88  virtual bool canBeFactorized() const { return true; }
89  virtual SparseMtrx *factorized();
90  virtual FloatArray *backSubstitutionWith(FloatArray &) const;
91  virtual void zero();
92  virtual double &at(int i, int j);
93  virtual double at(int i, int j) const;
94  virtual void toFloatMatrix(FloatMatrix &answer) const;
95  virtual void printYourself() const;
96  virtual void printStatistics() const;
97  virtual void writeToFile(const char *fname) const;
98  virtual SparseMtrxType giveType() const { return SMT_SkylineU; }
99  virtual bool isAsymmetric() const { return true; }
100  virtual const char *giveClassName() const { return "SkylineU"; }
101 
102 protected:
103  void checkSizeTowards(const IntArray &);
104  void checkSizeTowards(const IntArray &rloc, const IntArray &cloc);
105  RowColumn *giveRowColumn(int j) const;
106  void growTo(int);
107 
108  SkylineUnsym(RowColumn * *, int, int);
109 };
110 } // end namespace oofem
111 #endif // skylineu_h
This class implements a segment of a unsymmetric matrix stored in segmented form (skyline).
Definition: rowcol.h:65
Base class for all matrices stored in sparse format.
Definition: sparsemtrx.h:60
Class implementing an array of integers.
Definition: intarray.h:61
This class implements a nonsymmetric matrix stored in a compacted (skyline) form. ...
Definition: skylineu.h:54
RowColumn ** rowColumns
Row column segments.
Definition: skylineu.h:58
SparseMtrxType
Enumerative type used to identify the sparse matrix type.
virtual bool canBeFactorized() const
Determines, whether receiver can be factorized.
Definition: skylineu.h:88
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
virtual SparseMtrxType giveType() const
Sparse matrix type identification.
Definition: skylineu.h:98
Class representing vector of real numbers.
Definition: floatarray.h:82
int size
Size of receiver.
Definition: skylineu.h:60
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual const char * giveClassName() const
Definition: skylineu.h:100
virtual bool isAsymmetric() const
Returns true if asymmetric.
Definition: skylineu.h:99
int isFactorized
Factorization flag.
Definition: skylineu.h:62
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
the oofem namespace is to define a context or scope in which all oofem names are defined.
Unsymmetric skyline.

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