Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/DPFClientAPI.dll
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/libDPFClientAPI.so
Binary file not shown.
9 changes: 6 additions & 3 deletions tests/test_vtk_translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,13 @@ def test_dpf_field_to_vtk(simple_rst, fluent_mixing_elbow_steady_state, server_t


@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
def test_dpf_field_to_vtk_errors(simple_rst, server_type):
model = dpf.Model(simple_rst, server=server_type)
def test_dpf_field_to_vtk_errors(server_type):
# Elemental Field to VTK
field = model.results.elemental_volume.on_last_time_freq().eval()[0]
field = dpf.fields_factory.create_scalar_field(
num_entities=3, location=dpf.locations.elemental, server=server_type
)
field.scoping.ids = [4, 67, 8]
field.data = [0.0, 4.0, 5.0]
with pytest.raises(ValueError, match="The field does not have a meshed_region."):
_ = dpf_field_to_vtk(field=field)

Expand Down
Loading