VMTK
Loading...
Searching...
No Matches
vtkvmtkFEAssembler.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
36
37#ifndef __vtkvmtkFEAssembler_h
38#define __vtkvmtkFEAssembler_h
39
40#include "vtkObject.h"
41#include "vtkPolyData.h"
42#include "vtkvmtkSparseMatrix.h"
43#include "vtkvmtkDoubleVector.h"
44#include "vtkvmtkWin32Header.h"
45
46class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkFEAssembler : public vtkObject
47{
48public:
49
50 vtkTypeMacro(vtkvmtkFEAssembler,vtkObject);
51
53
56 vtkSetObjectMacro(DataSet,vtkDataSet);
57 vtkGetObjectMacro(DataSet,vtkDataSet);
59
61
64 vtkSetObjectMacro(Matrix,vtkvmtkSparseMatrix);
65 vtkGetObjectMacro(Matrix,vtkvmtkSparseMatrix);
67
69
72 vtkSetObjectMacro(RHSVector,vtkvmtkDoubleVector);
73 vtkGetObjectMacro(RHSVector,vtkvmtkDoubleVector);
75
77
83
87 vtkGetMacro(NumberOfVariables,int);
88
90
94 vtkSetMacro(QuadratureOrder,int);
95 vtkGetMacro(QuadratureOrder,int);
97
102 virtual void Build() = 0;
103
108 void DeepCopy(vtkvmtkFEAssembler *src);
109
115
116protected:
119
120 void Initialize(int numberOfVariables);
121
122 vtkDataSet* DataSet;
126
129
130private:
131 vtkvmtkFEAssembler(const vtkvmtkFEAssembler&); // Not implemented.
132 void operator=(const vtkvmtkFEAssembler&); // Not implemented.
133};
134
135#endif
Serves as the base class for vectors utilized in finite-element and other PDE evaluations.
vtkvmtkSparseMatrix * Matrix
void ShallowCopy(vtkvmtkFEAssembler *src)
void DeepCopy(vtkvmtkFEAssembler *src)
vtkvmtkDoubleVector * RHSVector
vtkvmtkDoubleVector * SolutionVector
void Initialize(int numberOfVariables)
virtual void Build()=0
Implements a row-based sparse matrix built from mesh neighborhoods or stencils, supporting basic line...