Skip to content

feat: deprecate legacy plotter#3184

Draft
moe-ad wants to merge 5 commits into
mainfrom
feat/deprecate-legacy-plotter
Draft

feat: deprecate legacy plotter#3184
moe-ad wants to merge 5 commits into
mainfrom
feat/deprecate-legacy-plotter

Conversation

@moe-ad
Copy link
Copy Markdown
Collaborator

@moe-ad moe-ad commented May 11, 2026

Closes #2918. WIP.

@moe-ad moe-ad self-assigned this May 11, 2026
@moe-ad moe-ad added the deploy-pr-doc For deploying a PR's documentation label May 11, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

❌ 10 Tests Failed:

Tests completed Failed Passed Skipped
2470 10 2460 43
View the top 3 failed test(s) by shortest run time
tests\test_plotter.py::test_plotter::test_plot_meshes_container_1
Stack Traces | 0.059s run time
multishells = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\model_with_ns.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_plot_meshes_container_1(multishells):
        model = core.Model(multishells)
        mesh = model.metadata.meshed_region
        split_mesh_op = core.Operator("split_mesh")
        split_mesh_op.connect(7, mesh)
        split_mesh_op.connect(13, "mat")
>       meshes_cont = split_mesh_op.get_output(0, core.types.meshes_container)

tests\test_plotter.py:544: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.dpf_operator.Operator object at 0x000002691729E290>
iOutput = 0

    @staticmethod
    def operator_getoutput_meshes_container(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_MeshesContainer(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: split_mesh:9158

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:476: DPFServerException
tests\test_plotter.py::test_plotter::test_plot_meshes_container_only
Stack Traces | 0.059s run time
multishells = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\model_with_ns.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_plot_meshes_container_only(multishells):
        model = core.Model(multishells)
        mesh = model.metadata.meshed_region
        split_mesh_op = core.Operator("split_mesh")
        split_mesh_op.connect(7, mesh)
        split_mesh_op.connect(13, "mat")
>       meshes_cont = split_mesh_op.get_output(0, core.types.meshes_container)

tests\test_plotter.py:591: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.dpf_operator.Operator object at 0x000002691BE5B7C0>
iOutput = 0

    @staticmethod
    def operator_getoutput_meshes_container(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_MeshesContainer(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: split_mesh:9212

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:476: DPFServerException
tests\test_plotter.py::test_plotter::test_plotter_add_mesh
Stack Traces | 0.059s run time
multishells = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\model_with_ns.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_plotter_add_mesh(multishells):
        model = core.Model(multishells)
        mesh = model.metadata.meshed_region
        split_mesh_op = core.Operator("split_mesh")
        split_mesh_op.connect(7, mesh)
        split_mesh_op.connect(13, "mat")
>       meshes_cont = split_mesh_op.get_output(0, core.types.meshes_container)

tests\test_plotter.py:602: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.dpf_operator.Operator object at 0x000002691BE9C490>
iOutput = 0

    @staticmethod
    def operator_getoutput_meshes_container(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_MeshesContainer(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: split_mesh:9239

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:476: DPFServerException
tests\test_plotter.py::test_plotter::test_plot_meshes_container_2
Stack Traces | 0.06s run time
multishells = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\model_with_ns.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_plot_meshes_container_2(multishells):
        from ansys.dpf import core
    
        model = core.Model(multishells)
        mesh = model.metadata.meshed_region
        split_mesh_op = core.Operator("split_mesh")
        split_mesh_op.connect(7, mesh)
        split_mesh_op.connect(13, "mat")
>       meshes_cont = split_mesh_op.get_output(0, core.types.meshes_container)

tests\test_plotter.py:567: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.dpf_operator.Operator object at 0x0000026913E11900>
iOutput = 0

    @staticmethod
    def operator_getoutput_meshes_container(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_MeshesContainer(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: split_mesh:9185

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:476: DPFServerException
tests\test_plotter.py::test_plotter::test_dpf_plotter_add_field_elemental_nodal_plot_simple
Stack Traces | 0.606s run time
simple_bar = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\ASimpleBar.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_dpf_plotter_add_field_elemental_nodal_plot_simple(simple_bar):
        field: core.Field = core.operators.result.element_nodal_forces(
            data_sources=core.DataSources(simple_bar),
        ).eval()[0]
        plt = DpfPlotter()
>       plt.add_field(field=field)

tests\test_plotter.py:411: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1761: in add_field
    self._internal_plotter.add_field(
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1015: in add_field
    field = dpf.core.operators.averaging.extend_to_mid_nodes(field=field).eval()
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:848: in eval
    return self.outputs._outputs[0]()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:108: in __call__
    return self.get_data()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:85: in get_data
    output = self._operator.get_output(self._pin, type_output)
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.operators.averaging.extend_to_mid_nodes.extend_to_mid_nodes object at 0x000002691BE7F250>
iOutput = 0

    @staticmethod
    def operator_getoutput_field(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_Field(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: extend_to_mid_nodes:8213

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:440: DPFServerException
tests\test_plotter.py::test_plotter::test_dpf_plotter_add_field_elemental_nodal_multiple_solids
Stack Traces | 0.609s run time
@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_dpf_plotter_add_field_elemental_nodal_multiple_solids():
        from ansys.dpf.core import examples
    
        field: core.Field = core.operators.result.stress(
            data_sources=core.DataSources(examples.download_hemisphere()),
        ).eval()[0]
        plt = DpfPlotter()
>       plt.add_field(field=field)

tests\test_plotter.py:437: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1761: in add_field
    self._internal_plotter.add_field(
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1015: in add_field
    field = dpf.core.operators.averaging.extend_to_mid_nodes(field=field).eval()
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:848: in eval
    return self.outputs._outputs[0]()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:108: in __call__
    return self.get_data()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:85: in get_data
    output = self._operator.get_output(self._pin, type_output)
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.operators.averaging.extend_to_mid_nodes.extend_to_mid_nodes object at 0x00000269104D2950>
iOutput = 0

    @staticmethod
    def operator_getoutput_field(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_Field(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: extend_to_mid_nodes:8441

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:440: DPFServerException
tests\test_plotter.py::test_plotter::test_dpf_plotter_add_field_elemental_nodal_plot_scoped
Stack Traces | 0.637s run time
simple_bar = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\ASimpleBar.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_dpf_plotter_add_field_elemental_nodal_plot_scoped(simple_bar):
        mesh_scoping = dpf.core.mesh_scoping_factory.elemental_scoping(
            element_ids=list(range(1501, 3001))
        )
        field: core.Field = core.operators.result.element_nodal_forces(
            data_sources=core.DataSources(simple_bar),
            mesh_scoping=mesh_scoping,
        ).eval()[0]
        plt = DpfPlotter()
>       plt.add_field(field=field)

tests\test_plotter.py:425: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1761: in add_field
    self._internal_plotter.add_field(
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1015: in add_field
    field = dpf.core.operators.averaging.extend_to_mid_nodes(field=field).eval()
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:848: in eval
    return self.outputs._outputs[0]()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:108: in __call__
    return self.get_data()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:85: in get_data
    output = self._operator.get_output(self._pin, type_output)
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.operators.averaging.extend_to_mid_nodes.extend_to_mid_nodes object at 0x0000026920E8F940>
iOutput = 0

    @staticmethod
    def operator_getoutput_field(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_Field(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: extend_to_mid_nodes:8303

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:440: DPFServerException
tests\test_plotter.py::test_plotter::test_dpf_plotter_add_field_elemental_nodal_multi_shells
Stack Traces | 0.68s run time
multishells = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\model_with_ns.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    @pytest.mark.skipif(not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0, reason="Old bug before 25R2")
    def test_dpf_plotter_add_field_elemental_nodal_multi_shells(multishells):
        fc: core.FieldsContainer = core.operators.result.stress(
            data_sources=core.DataSources(multishells),
        ).eval()
>       fc.plot()

tests\test_plotter.py:296: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\fields_container.py:558: in plot
    plt.add_field(field=merged_field, **kwargs)
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1761: in add_field
    self._internal_plotter.add_field(
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1015: in add_field
    field = dpf.core.operators.averaging.extend_to_mid_nodes(field=field).eval()
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:848: in eval
    return self.outputs._outputs[0]()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:108: in __call__
    return self.get_data()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:85: in get_data
    output = self._operator.get_output(self._pin, type_output)
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.operators.averaging.extend_to_mid_nodes.extend_to_mid_nodes object at 0x00000269212D8E80>
iOutput = 0

    @staticmethod
    def operator_getoutput_field(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_Field(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: extend_to_mid_nodes:7421

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:440: DPFServerException
tests\test_plotter.py::test_plotter::test_dpf_plotter_add_field_elemental_nodal_shells
Stack Traces | 0.718s run time
@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
    def test_dpf_plotter_add_field_elemental_nodal_shells():
        from ansys.dpf.core import examples
    
        field: core.Field = core.operators.result.stress(
            data_sources=core.DataSources(examples.download_pontoon()),
        ).eval()[0]
        plt = DpfPlotter()
>       plt.add_field(field=field)

tests\test_plotter.py:449: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1761: in add_field
    self._internal_plotter.add_field(
.tox\test-api\lib\site-packages\ansys\dpf\core\plotter.py:1015: in add_field
    field = dpf.core.operators.averaging.extend_to_mid_nodes(field=field).eval()
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:848: in eval
    return self.outputs._outputs[0]()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:108: in __call__
    return self.get_data()
.tox\test-api\lib\site-packages\ansys\dpf\core\outputs.py:85: in get_data
    output = self._operator.get_output(self._pin, type_output)
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.operators.averaging.extend_to_mid_nodes.extend_to_mid_nodes object at 0x000002691729CA00>
iOutput = 0

    @staticmethod
    def operator_getoutput_field(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_Field(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: extend_to_mid_nodes:8579

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:440: DPFServerException
tests\test_plotter.py::test_plotter::test_plot_warped_mesh
Stack Traces | 25.7s run time
multishells = 'D:\\a\\pydpf-core\\pydpf-core\\.tox\\test-api\\lib\\site-packages\\ansys\\dpf\\core\\examples\\result_files\\model_with_ns.rst'

    @pytest.mark.skipif(not HAS_PYVISTA, reason="This test requires pyvista")
    def test_plot_warped_mesh(multishells):
        model = core.Model(multishells)
        mesh = model.metadata.meshed_region
        disp_result = model.results.displacement.on_time_scoping([1])
        scale_factor = 0.001
        mesh.plot(deform_by=disp_result, scale_factor=scale_factor)
        disp_op = disp_result()
        mesh.plot(deform_by=disp_op, scale_factor=scale_factor)
        disp_fc = disp_result.eval()
        mesh.plot(deform_by=disp_fc, scale_factor=scale_factor)
        disp_field = disp_fc[0]
        mesh.plot(deform_by=disp_field, scale_factor=scale_factor)
        disp_field.plot(deform_by=disp_result, scale_factor=scale_factor)
        mesh.plot(disp_field, deform_by=disp_result, scale_factor=scale_factor)
        split_op = dpf.core.operators.mesh.split_mesh(mesh=mesh, property="mat")
>       meshes_cont = split_op.get_output(output_type=dpf.core.types.meshes_container)

tests\test_plotter.py:858: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\dpf_operator.py:630: in get_output
    internal_obj = type_tuple[1](self, pin)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

op = <ansys.dpf.core.operators.mesh.split_mesh.split_mesh object at 0x000002691729F940>
iOutput = 0

    @staticmethod
    def operator_getoutput_meshes_container(op, iOutput):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_getoutput_MeshesContainer(op._internal_obj if op is not None else None, utils.to_int32(iOutput), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: Not connected to a server for Licensing Client Proxy actions.
E     Any supported license check out failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure that you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys..../stable/getting_started/licensing.html .
E     a 'data processing core error' error occurred: split_mesh:10419

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:476: DPFServerException

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@github-actions
Copy link
Copy Markdown
Contributor

The documentation for this pull request will be available at https://dpf.docs.pyansys.com/pull/3184. Please allow some time for the documentation to be deployed.

@moe-ad moe-ad marked this pull request as draft May 11, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-pr-doc For deploying a PR's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate the legacy ansys.dpf.core.plotter.Plotter class.

1 participant