Skip to content

Commit

Permalink
Update to predefined meshes (Capytaine v2) (#285)
Browse files Browse the repository at this point in the history
* Update to predefined meshes

* Update syntax
  • Loading branch information
jtgrasb authored Oct 30, 2023
1 parent d375ce6 commit e4d17b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,9 +1263,11 @@ def test_it_runs(self,):
"""Test that the function at least runs and returns correct
data type.
"""
rect = cpy.RectangularParallelepiped(
size=(5.0, 5.0, 2.0), resolution=(10, 10, 10), center=(0.0, 0.0, 0.0,)
rect_mesh = cpy.mesh_parallelepiped(
size=(5.0, 5.0, 2.0), resolution=(10, 10, 10),
center=(0.0, 0.0, 0.0)
)
rect = cpy.FloatingBody(rect_mesh, name="rect")
rect.add_translation_dof(name="Heave")
bem_data = wot.run_bem(fb=rect, freq=[0.1, 0.2], wave_dirs=[0,])
assert type(bem_data) == xr.Dataset
Expand Down

0 comments on commit e4d17b9

Please sign in to comment.