VMTK
Loading...
Searching...
No Matches
DifferentialGeometry
vtkvmtkUnstructuredGridFEGradientAssembler.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
=========================================================================*/
31
32
#ifndef __vtkvmtkUnstructuredGridFEGradientAssembler_h
33
#define __vtkvmtkUnstructuredGridFEGradientAssembler_h
34
35
#include "
vtkvmtkFEAssembler.h
"
36
#include "vtkvmtkWin32Header.h"
37
38
class
VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT
vtkvmtkUnstructuredGridFEGradientAssembler
:
public
vtkvmtkFEAssembler
39
{
40
public
:
41
42
static
vtkvmtkUnstructuredGridFEGradientAssembler
*
New
();
43
vtkTypeMacro(
vtkvmtkUnstructuredGridFEGradientAssembler
,
vtkvmtkFEAssembler
);
44
48
virtual
void
Build
()
override
;
49
51
54
vtkSetStringMacro(
ScalarsArrayName
);
55
vtkGetStringMacro(
ScalarsArrayName
);
57
59
62
vtkSetMacro(
ScalarsComponent
,
int
);
63
vtkGetMacro(
ScalarsComponent
,
int
);
65
67
71
vtkSetMacro(
Direction
,
int
);
72
vtkGetMacro(
Direction
,
int
);
74
76
81
vtkSetMacro(
AssemblyMode
,
int
);
82
vtkGetMacro(
AssemblyMode
,
int
);
84
87
void
SetAssemblyModeToGradient
()
88
{ this->
SetAssemblyMode
(
VTKVMTK_GRADIENTASSEMBLY
); }
89
92
void
SetAssemblyModeToPartialDerivative
()
93
{ this->
SetAssemblyMode
(
VTKVMTK_PARTIALDERIVATIVEASSEMBLY
); }
94
95
//BTX
99
enum
{
100
VTKVMTK_GRADIENTASSEMBLY
,
101
VTKVMTK_PARTIALDERIVATIVEASSEMBLY
102
};
103
//ETX
104
105
protected
:
106
vtkvmtkUnstructuredGridFEGradientAssembler
();
107
~vtkvmtkUnstructuredGridFEGradientAssembler
();
108
109
void
BuildGradient();
110
void
BuildPartialDerivative();
111
112
char
*
ScalarsArrayName
;
113
int
ScalarsComponent
;
114
int
AssemblyMode
;
115
int
Direction
;
116
117
private
:
118
vtkvmtkUnstructuredGridFEGradientAssembler
(
const
vtkvmtkUnstructuredGridFEGradientAssembler
&);
// Not implemented.
119
void
operator=(
const
vtkvmtkUnstructuredGridFEGradientAssembler
&);
// Not implemented.
120
};
121
122
#endif
vtkvmtkFEAssembler::vtkvmtkFEAssembler
vtkvmtkFEAssembler()
Definition
vtkvmtkFEAssembler.cxx:29
vtkvmtkFEAssembler::Build
virtual void Build()=0
vtkvmtkUnstructuredGridFEGradientAssembler
Construct a gradient based finite element calculation on a mesh.
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:39
vtkvmtkUnstructuredGridFEGradientAssembler::SetAssemblyMode
virtual void SetAssemblyMode(int)
vtkvmtkUnstructuredGridFEGradientAssembler::Direction
int Direction
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:115
vtkvmtkUnstructuredGridFEGradientAssembler::New
static vtkvmtkUnstructuredGridFEGradientAssembler * New()
vtkvmtkUnstructuredGridFEGradientAssembler::AssemblyMode
int AssemblyMode
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:114
vtkvmtkUnstructuredGridFEGradientAssembler::SetAssemblyModeToGradient
void SetAssemblyModeToGradient()
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:87
vtkvmtkUnstructuredGridFEGradientAssembler::vtkvmtkUnstructuredGridFEGradientAssembler
vtkvmtkUnstructuredGridFEGradientAssembler()
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.cxx:34
vtkvmtkUnstructuredGridFEGradientAssembler::SetAssemblyModeToPartialDerivative
void SetAssemblyModeToPartialDerivative()
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:92
vtkvmtkUnstructuredGridFEGradientAssembler::ScalarsComponent
int ScalarsComponent
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:113
vtkvmtkUnstructuredGridFEGradientAssembler::VTKVMTK_GRADIENTASSEMBLY
@ VTKVMTK_GRADIENTASSEMBLY
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:100
vtkvmtkUnstructuredGridFEGradientAssembler::VTKVMTK_PARTIALDERIVATIVEASSEMBLY
@ VTKVMTK_PARTIALDERIVATIVEASSEMBLY
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:101
vtkvmtkUnstructuredGridFEGradientAssembler::ScalarsArrayName
char * ScalarsArrayName
Definition
vtkvmtkUnstructuredGridFEGradientAssembler.h:112
vtkvmtkFEAssembler.h
Generated by
1.15.0