Skip to content

Commit

Permalink
fix: experimental interaction tool with deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Jun 14, 2024
1 parent 306c063 commit a6f92ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions elastica/experimental/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import numpy as np
from elastica.external_forces import NoForces
from elastica.interaction import (
find_slipping_elements,
apply_normal_force_numba_rigid_body,
InteractionPlaneRigidBody,
from elastica.contact_utils import (
_find_slipping_elements,
)
from elastica.contact_functions import _calculate_contact_forces_cylinder_plane
from elastica.interaction import InteractionPlaneRigidBody

from numba import njit
from elastica._linalg import (
Expand Down Expand Up @@ -66,7 +66,7 @@ def apply_forces(self, system, time=0.0):
)


@njit(cache=True)
@njit(cache=True) # type: ignore
def anisotropic_friction_numba_rigid_body(
plane_origin,
plane_normal,
Expand All @@ -93,7 +93,7 @@ def anisotropic_friction_numba_rigid_body(
(
plane_response_force_mag,
no_contact_point_idx,
) = apply_normal_force_numba_rigid_body(
) = _calculate_contact_forces_cylinder_plane(
plane_origin,
plane_normal,
surface_tol,
Expand Down Expand Up @@ -122,7 +122,7 @@ def anisotropic_friction_numba_rigid_body(
+ kinetic_mu_backward * (1 - velocity_sign_along_axial_direction)
)
# Call slip function to check if elements slipping or not
slip_function_along_axial_direction = find_slipping_elements(
slip_function_along_axial_direction = _find_slipping_elements(
velocity_along_axial_direction, slip_velocity_tol
)
kinetic_friction_force_along_axial_direction = -(
Expand Down Expand Up @@ -151,7 +151,7 @@ def anisotropic_friction_numba_rigid_body(
+ kinetic_mu_backward * (1 - velocity_sign_along_binormal_direction)
)
# Call slip function to check if elements slipping or not
slip_function_along_binormal_direction = find_slipping_elements(
slip_function_along_binormal_direction = _find_slipping_elements(
velocity_along_binormal_direction, slip_velocity_tol
)
kinetic_friction_force_along_binormal_direction = -(
Expand Down

0 comments on commit a6f92ce

Please sign in to comment.