Open
Description
Before submitting the issue
- I have checked for Compatibility issues
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
The source operator nodal_moment
is exposed (operator M
), but its counterpart for mapdl::rst::M
appears not to exist.
We need to either expose it properly or document for which namespaces (file types) this result is indeed available (PS: I have not found any implementation of M
for any namespace).
Steps To Reproduce
With all the latest dev versions
Input
import ansys.dpf.core as dpf
print(dpf.start_local_server())
from ansys.dpf.core import examples
ds = dpf.DataSources(examples.find_static_rst())
op = dpf.operators.result.nodal_moment(data_sources=ds)
print(op)
print(op.eval())
Output
Traceback (most recent call last):
File "D:\ANSYSDev\Sandbox\pydpf-core\Issues\MAPDL\nodal_moment.py", line 12, in <module>
print(op.eval())
^^^^^^^^^
File "D:\ANSYSDev\Sandbox\pydpf-core\src\ansys\dpf\core\dpf_operator.py", line 810, in eval
return self.outputs._outputs[0]()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ANSYSDev\Sandbox\pydpf-core\src\ansys\dpf\core\outputs.py", line 102, in __call__
return self.get_data()
^^^^^^^^^^^^^^^
File "D:\ANSYSDev\Sandbox\pydpf-core\src\ansys\dpf\core\outputs.py", line 81, in get_data
output = self._operator.get_output(self._pin, type_output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ANSYSDev\Sandbox\pydpf-core\src\ansys\dpf\core\dpf_operator.py", line 592, in get_output
internal_obj = type_tuple[1](self, pin)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ANSYSDev\Sandbox\pydpf-core\src\ansys\dpf\gate\generated\operator_capi.py", line 422, in operator_getoutput_fields_container
raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: M:0<-Source operator "mapdl::rst::M" not found
Which Operating System causes the issue?
Windows, Linux, MacOS
Which DPF/Ansys version are you using?
DPF Server 2025.2.pre0
Which Python version causes the issue?
3.12
Installed packages
NA