Skip to content

Commit

Permalink
MIN: Renaming init arg of Sneddon exact solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlipovac committed Feb 13, 2025
1 parent 19a3a27 commit e3085a4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/functional/setups/manu_sneddon_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ def assign_bem(
class ManuSneddonExactSolution2d:
"""Class representing the analytical solution for the pressurized fracture problem."""

def __init__(self, setup: dict):
self.p0 = setup.get("p0")
self.theta = setup.get("theta")

self.a = setup.get("a")
self.shear_modulus = setup.get("material_constants").get("solid").shear_modulus
self.poi = setup.get("poi")
self.length = setup.get("length")
self.height = setup.get("height")
def __init__(self, params: dict):
self.p0 = params.get("p0")
self.theta = params.get("theta")

self.a = params.get("a")
self.shear_modulus = params.get("material_constants").get("solid").shear_modulus
self.poi = params.get("poi")
self.length = params.get("length")
self.height = params.get("height")

def exact_sol_global(self, sd: pp.Grid) -> np.ndarray:
"""Compute the analytical solution for the pressurized fracture problem in
Expand Down

0 comments on commit e3085a4

Please sign in to comment.