|
VMTK
|
Set up Dirichlet (or first-type) boundary conditions that a linear system needs to take along the boundary of the domain. More...
#include <vtkvmtkDirichletBoundaryConditions.h>
Public Types | |
| typedef vtkvmtkBoundaryConditions | Superclass |
| Public Types inherited from vtkvmtkBoundaryConditions | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkDirichletBoundaryConditions * | NewInstance () const |
| void | Apply () override |
| Public Member Functions inherited from vtkvmtkBoundaryConditions | |
| vtkvmtkBoundaryConditions * | NewInstance () const |
| virtual void | SetLinearSystem (vtkvmtkLinearSystem *) |
| virtual vtkvmtkLinearSystem * | GetLinearSystem () |
| virtual void | SetBoundaryNodes (vtkIdList *) |
| virtual vtkIdList * | GetBoundaryNodes () |
| virtual void | SetBoundaryValues (vtkDoubleArray *) |
| virtual vtkDoubleArray * | GetBoundaryValues () |
Static Public Member Functions | |
| static vtkvmtkDirichletBoundaryConditions * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkDirichletBoundaryConditions * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkBoundaryConditions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkBoundaryConditions * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkDirichletBoundaryConditions () | |
| ~vtkvmtkDirichletBoundaryConditions () | |
| Protected Member Functions inherited from vtkvmtkBoundaryConditions | |
| vtkvmtkBoundaryConditions () | |
| ~vtkvmtkBoundaryConditions () | |
Additional Inherited Members | |
| Protected Attributes inherited from vtkvmtkBoundaryConditions | |
| vtkvmtkLinearSystem * | LinearSystem |
| vtkIdList * | BoundaryNodes |
| vtkDoubleArray * | BoundaryValues |
Set up Dirichlet (or first-type) boundary conditions that a linear system needs to take along the boundary of the domain.
vtkvmtkDirichletBoundaryConditions imposes a Dirichlet (essential) boundary condition on LinearSystem's sparse matrix A and right-hand side vector B: for every node listed in BoundaryNodes, the corresponding row of A is zeroed out except for a unit diagonal entry, and B is set to the prescribed BoundaryValues entry, so that the solution x is forced to take that value at the node. To preserve symmetry of the reduced system, the boundary node's column is also eliminated from every other row, moving its known contribution to the right-hand side. This is the standard way vmtk's finite-element solvers (e.g. distance-to-boundary / Laplacian-type problems) impose fixed values on a subset of nodes, typically the mesh boundary.
Definition at line 45 of file vtkvmtkDirichletBoundaryConditions.h.
Definition at line 49 of file vtkvmtkDirichletBoundaryConditions.h.
|
inlineprotected |
Definition at line 54 of file vtkvmtkDirichletBoundaryConditions.h.
|
inlineprotected |
Definition at line 55 of file vtkvmtkDirichletBoundaryConditions.h.
|
static |
|
static |
|
virtual |
Reimplemented from vtkvmtkBoundaryConditions.
|
static |
|
protectedvirtual |
Reimplemented from vtkvmtkBoundaryConditions.
| vtkvmtkDirichletBoundaryConditions * vtkvmtkDirichletBoundaryConditions::NewInstance | ( | ) | const |
|
overridevirtual |
Impose the boundary condition on LinearSystem. This base class implementation only validates that LinearSystem, BoundaryNodes, and BoundaryValues are set and mutually consistent (same number of nodes and values); subclasses override this method to actually modify the system matrix and right-hand side.
FIXME: when boundary conditions apply is called, linear system hasn't checked if matrix and vectors exist
Reimplemented from vtkvmtkBoundaryConditions.
Definition at line 31 of file vtkvmtkDirichletBoundaryConditions.cxx.