porepy.fracs.line_fracture module
Contains classes representing fractures of 1D, i.e. manifolds of dimension 1 embedded in 2D.
- class LineFracture(points, index=None, sort_points=True)[source]
Bases:
Fracture
A class representing linear fracture in 2D.
- compute_centroid()[source]
Method for computing the centroid of the fracture.
- Returns:
Array containing the 2D coordinates of the centroid.
- Return type:
- compute_normal()[source]
Method computing normal vectors of the fracture
Returns
- numpy.ndarray(2 x 1)
Normal vector of the fracture.
- Return type: