|
VMTK
|
Serves as the base class on which specific finite element routines are built. More...
#include <vtkvmtkFEAssembler.h>
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkFEAssembler * | NewInstance () const |
| virtual int | GetNumberOfVariables () |
| virtual void | Build ()=0 |
| void | DeepCopy (vtkvmtkFEAssembler *src) |
| void | ShallowCopy (vtkvmtkFEAssembler *src) |
| virtual void | SetDataSet (vtkDataSet *) |
| virtual vtkDataSet * | GetDataSet () |
| virtual void | SetMatrix (vtkvmtkSparseMatrix *) |
| virtual vtkvmtkSparseMatrix * | GetMatrix () |
| virtual void | SetRHSVector (vtkvmtkDoubleVector *) |
| virtual vtkvmtkDoubleVector * | GetRHSVector () |
| virtual void | SetSolutionVector (vtkvmtkDoubleVector *) |
| virtual vtkvmtkDoubleVector * | GetSolutionVector () |
| virtual void | SetQuadratureOrder (int) |
| virtual int | GetQuadratureOrder () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkFEAssembler * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkFEAssembler () | |
| ~vtkvmtkFEAssembler () | |
| void | Initialize (int numberOfVariables) |
Protected Attributes | |
| vtkDataSet * | DataSet |
| vtkvmtkSparseMatrix * | Matrix |
| vtkvmtkDoubleVector * | RHSVector |
| vtkvmtkDoubleVector * | SolutionVector |
| int | NumberOfVariables |
| int | QuadratureOrder |
Serves as the base class on which specific finite element routines are built.
Supports common operations needed during setup of a finite element solver run.
vtkvmtkFEAssembler holds the mesh (DataSet) and the finite-element linear-system pieces built from it: the sparse system Matrix and the RHSVector / SolutionVector double vectors, all sized for NumberOfVariables unknowns per mesh point. Concrete subclasses override Build() to loop over the cells of DataSet, evaluate element-level contributions (typically with the help of vtkvmtkGaussQuadrature and vtkvmtkFEShapeFunctions, at the quadrature order given by QuadratureOrder), and assemble them into Matrix and RHSVector. Initialize() is a protected helper that subclasses call from their constructor/Build() to allocate Matrix and the vectors for a given number of variables.
Definition at line 46 of file vtkvmtkFEAssembler.h.
| typedef vtkObject vtkvmtkFEAssembler::Superclass |
Definition at line 50 of file vtkvmtkFEAssembler.h.
|
protected |
Definition at line 29 of file vtkvmtkFEAssembler.cxx.
|
protected |
Definition at line 39 of file vtkvmtkFEAssembler.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkFEAssembler * vtkvmtkFEAssembler::NewInstance | ( | ) | const |
|
virtual |
Set/get the mesh (data set) that the finite element system is assembled over.
|
virtual |
Set/get the mesh (data set) that the finite element system is assembled over.
|
virtual |
Set/get the sparse matrix that Build() assembles the finite-element system matrix into.
|
virtual |
Set/get the sparse matrix that Build() assembles the finite-element system matrix into.
|
virtual |
Set/get the vector that Build() assembles the finite-element system's right-hand side into.
|
virtual |
Set/get the vector that Build() assembles the finite-element system's right-hand side into.
|
virtual |
Set/get the vector holding the (unknown, to be solved for) solution of the assembled system.
|
virtual |
Set/get the vector holding the (unknown, to be solved for) solution of the assembled system.
|
virtual |
Get the number of unknowns per mesh point, as set by the last call to Initialize().
|
virtual |
Set/get the order of the Gauss quadrature rule used to numerically integrate element contributions during assembly (see vtkvmtkGaussQuadrature). Default: 1.
|
virtual |
Set/get the order of the Gauss quadrature rule used to numerically integrate element contributions during assembly (see vtkvmtkGaussQuadrature). Default: 1.
|
pure virtual |
Assemble the finite-element system (Matrix and RHSVector) from DataSet. Implemented by subclasses for a specific PDE/discretization.
Implemented in vtkvmtkPolyDataFEGradientAssembler, vtkvmtkPolyDataFELaplaceAssembler, vtkvmtkUnstructuredGridFEGradientAssembler, vtkvmtkUnstructuredGridFELaplaceAssembler, and vtkvmtkUnstructuredGridFEVorticityAssembler.
| void vtkvmtkFEAssembler::DeepCopy | ( | vtkvmtkFEAssembler * | src | ) |
Deep-copy DataSet, Matrix, RHSVector, SolutionVector, NumberOfVariables and QuadratureOrder from src into this assembler.
Definition at line 76 of file vtkvmtkFEAssembler.cxx.
| void vtkvmtkFEAssembler::ShallowCopy | ( | vtkvmtkFEAssembler * | src | ) |
Share (reference-count, without copying) DataSet, Matrix, RHSVector and SolutionVector with src, and copy NumberOfVariables and QuadratureOrder.
Definition at line 86 of file vtkvmtkFEAssembler.cxx.
|
protected |
Definition at line 63 of file vtkvmtkFEAssembler.cxx.
|
protected |
Definition at line 122 of file vtkvmtkFEAssembler.h.
|
protected |
Definition at line 123 of file vtkvmtkFEAssembler.h.
|
protected |
Definition at line 124 of file vtkvmtkFEAssembler.h.
|
protected |
Definition at line 125 of file vtkvmtkFEAssembler.h.
|
protected |
Definition at line 127 of file vtkvmtkFEAssembler.h.
|
protected |
Definition at line 128 of file vtkvmtkFEAssembler.h.