new DEC()
Methods
-
<static> buildHodgeStar0Form(geometry, vertexIndex)
-
Builds a sparse diagonal matrix encoding the Hodge operator on 0-forms.
By convention, the area of a vertex is 1.Parameters:
Name Type Description geometry
module:Core.Geometry The geometry of a mesh.
vertexIndex
Object A dictionary mapping each vertex of a mesh to a unique index.
Returns:
-
<static> buildHodgeStar1Form(geometry, edgeIndex)
-
Builds a sparse diagonal matrix encoding the Hodge operator on 1-forms.
Parameters:
Name Type Description geometry
module:Core.Geometry The geometry of a mesh.
edgeIndex
Object A dictionary mapping each edge of a mesh to a unique index.
Returns:
-
<static> buildHodgeStar2Form(geometry, faceIndex)
-
Builds a sparse diagonal matrix encoding the Hodge operator on 2-forms.
By convention, the area of a vertex is 1.Parameters:
Name Type Description geometry
module:Core.Geometry The geometry of a mesh.
faceIndex
Object A dictionary mapping each face of a mesh to a unique index.
Returns:
-
<static> buildExteriorDerivative0Form(geometry, edgeIndex, vertexIndex)
-
Builds a sparse matrix encoding the exterior derivative on 0-forms.
Parameters:
Name Type Description geometry
module:Core.Geometry The geometry of a mesh.
edgeIndex
Object A dictionary mapping each edge of a mesh to a unique index.
vertexIndex
Object A dictionary mapping each vertex of a mesh to a unique index.
Returns:
-
<static> buildExteriorDerivative1Form(geometry, faceIndex, edgeIndex)
-
Builds a sparse matrix encoding the exterior derivative on 1-forms.
Parameters:
Name Type Description geometry
module:Core.Geometry The geometry of a mesh.
faceIndex
Object A dictionary mapping each face of a mesh to a unique index.
edgeIndex
Object A dictionary mapping each edge of a mesh to a unique index.
Returns: