pihnn.graphics.plot_dem#
- pihnn.graphics.plot_dem(model, crack, tip, max_distance, n_points=100, figsize=None, format='png', dir='results/', markersize=2)#
Calculate and plot stress intensity factors (SIFs) from displacement extrapolation method (DEM).
- Parameters:
model (
pihnn.nn.PIHNN
/pihnn.nn.DD_PIHNN
) – Neural network model, the function is meaningful only if model.PDE is either ‘km’ or ‘km-so’.crack (class:pihnn.geometries.crack_line) – Curve corresponding to the crack to analyse.
tip (class:pihnn.geometries.crack_tip) – Crack tip associated to the SIF.
max_distance (float) – Maximum distance from the crack tip to consider in the DEM regression.
n_points (int) – Number of points to consider in the DEM regression.
figsize (tuple of float) – Size of the
matplotlib.pyplot.figure
.format (str) – Format of the saved figure.
dir (str) – Directory where to save the figure.
markersize (float) – Size of the marker that is used to plot a point.
- Returns:
sif_I_ext (float) - Evaluation of the extrapolated \(K_I\) stress intensity factor.
sif_II_ext (float) - Evaluation of the extrapolated \(K_{II}\) stress intensity factor.