Skip to content

Commit efa4405

Browse files
committed
test: remove outdated test - anisotropic plane forcing moved to contact
1 parent cc2ec7e commit efa4405

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

tests/test_modules/test_forcing.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -166,42 +166,6 @@ def mock_init(self, *args, **kwargs):
166166

167167
return scwf, MockForcing
168168

169-
def test_friction_plane_forcing_class(self, load_system_with_forcings):
170-
171-
scwf = load_system_with_forcings
172-
173-
mock_rod = self.MockRod(2, 3, 4, 5)
174-
scwf.append(mock_rod)
175-
176-
from elastica.interaction import AnisotropicFrictionalPlane
177-
178-
# Add friction plane
179-
scwf.add_forcing_to(1).using(
180-
AnisotropicFrictionalPlane,
181-
k=0,
182-
nu=0,
183-
plane_origin=np.zeros((3,)),
184-
plane_normal=np.zeros((3,)),
185-
slip_velocity_tol=0,
186-
static_mu_array=[0, 0, 0],
187-
kinetic_mu_array=[0, 0, 0],
188-
)
189-
# Add another forcing class
190-
191-
def mock_init(self, *args, **kwargs):
192-
pass
193-
194-
MockForcing = type(
195-
"MockForcing", (self.NoForces, object), {"__init__": mock_init}
196-
)
197-
scwf.add_forcing_to(1).using(MockForcing, 2, 42) # index based forcing
198-
199-
# Now check if the Anisotropic friction and the MockForcing are in the list
200-
assert scwf._ext_forces_torques[-1]._forcing_cls == MockForcing
201-
assert scwf._ext_forces_torques[-2]._forcing_cls == AnisotropicFrictionalPlane
202-
scwf._finalize_forcing()
203-
assert not hasattr(scwf, "_ext_forces_torques")
204-
205169
def test_constrain_finalize_correctness(self, load_rod_with_forcings):
206170
scwf, forcing_cls = load_rod_with_forcings
207171
forcing_features = [f for f in scwf._ext_forces_torques]

0 commit comments

Comments
 (0)