26#include "vtkObjectFactory.h"
35 vtkIdType numberOfRowElements;
36 vtkIdType boundaryNode, numberOfBoundaryNodes;
46 systemSize = this->
LinearSystem->GetX()->GetNumberOfElements();
47 numberOfBoundaryNodes = this->
BoundaryNodes->GetNumberOfIds();
53 for (i=0; i<numberOfBoundaryNodes; i++)
58 for (j=0; j<systemSize; j++)
69 row = systemMatrix->
GetRow(j);
71 for (k=0; k<numberOfRowElements; k++)
78 vectorElement -= element * boundaryValue;
vtkvmtkLinearSystem * LinearSystem
vtkDoubleArray * BoundaryValues
vtkIdList * BoundaryNodes
Set up Dirichlet (or first-type) boundary conditions that a linear system needs to take along the bou...
Serves as the base class for vectors utilized in finite-element and other PDE evaluations.
double GetElement(vtkIdType i)
void SetElement(vtkIdType i, double value)
Represents a single row of a vtkvmtkSparseMatrix: a sparse list of (column id, value) pairs plus a se...
vtkIdType GetNumberOfElements()
void SetElement(vtkIdType i, double element)
virtual void SetDiagonalElement(double)
double GetElement(vtkIdType i)
vtkIdType GetElementId(vtkIdType i)
Implements a row-based sparse matrix built from mesh neighborhoods or stencils, supporting basic line...
vtkvmtkSparseMatrixRow * GetRow(vtkIdType i)
vtkStandardNewMacro(vtkvmtkDirichletBoundaryConditions)