Compute strain energy for cyclic modal analysis

Samukham Member Posts: 37
First Anniversary First Comment Name Dropper

I have a cyclic model and performed a modal analysis. Now I need to check the strain energy for a particular mode. I am using pyDPF to compute the strain energy. I running the following script:

rst_file = 'file.rst'
model = dpf.Model(rst_file)
my_data_sources = dpf.DataSources(rst_file)

mesh = model.metadata.meshed_region
disp_s = model.results.displacement.on_all_time_freqs

op = dpf.operators.result.cyclic_strain_energy(
result_fields_container = op.outputs.fields_container()

It throws the following error:

Traceback (most recent call last):
File "d:\Projects\FCDS\multstage_cyclic_symmetry\python_scripts\select_correct_modes\", line 43, in
result_fields_container = op.outputs.fields_container()
File "D:\PythonVenvs\python_pydfp_venv\pydpf_venv\lib\site-packages\ansys\dpf\core\", line 75, in call
return self.get_data()
File "D:\PythonVenvs\python_pydfp_venv\pydpf_venv\lib\site-packages\ansys\dpf\core\", line 72, in get_data
return self._operator.get_output(self._pin, type_output)
File "D:\PythonVenvs\python_pydfp_venv\pydpf_venv\lib\site-packages\ansys\dpf\core\", line 541, in get_output
internal_obj = type_tuple[1](self, pin)
File "D:\PythonVenvs\python_pydfp_venv\pydpf_venv\lib\site-packages\ansys\dpf\gate\generated\", line 422, in operator_getoutput_fields_container
raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: mapdl::rst::ENG_SE_cyclic:34<-mapdl::rst::ENF_cyclic:55<-cyclic_expansion:63<-ENF:62<-mapdl::rst::ENF:69<-mapdl::rst::ENF<-memory allocation issue, failed to read element nodal forces from rst file.

In Ansys Mechanical while performing modal analysis I set "Yes" to all the output controls in analysis settings. SS attached

Please let me know if I am missing anything here.