You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there are energies listed in avaiable results of thermal example. How ever if we try to obtain them, an error occures, see below.
Code:
file_path = Path(r"03_thermal_steady_state.rth")
model = dpf.Model(file_path)
print(model.metadata.result_info)
Output:
Static analysis
Unit system: SI: m, kg, s, V, A, K
Physics Type: Thermal
Available results:
- temperature: Nodal Temperature
- heat_flux: ElementalNodal Heat flux
- element_nodal_forces: ElementalNodal Element nodal Forces
- elemental_volume: Elemental Volume
- stiffness_matrix_energy: Elemental Energy-stiffness matrix
- artificial_hourglass_energy: Elemental Hourglass Energy
- thermal_dissipation_energy: Elemental thermal dissipation energy
- kinetic_energy: Elemental Kinetic Energy
- co_energy: Elemental co-energy
- incremental_energy: Elemental incremental energy
- structural_temperature: ElementalNodal Temperature
- heat_flux: ElementalNodal Heat flux
Code:
from pathlib import Path
from ansys.dpf import core as dpf
file_path = Path(r"03_thermal_steady_state.rth")
model = dpf.Model(file_path)
result = dpf.operators.result.stiffness_matrix_energy()
my_data_sources = model.metadata.data_sources
result.inputs.data_sources.connect(my_data_sources)
print(result.outputs.fields_container())
Error:
Traceback (most recent call last):
File "tmp2.py", line 8, in <module>
print(result.outputs.fields_container())
File "****\venv\lib\site-packages\ansys\dpf\core\outputs.py", line 55, in __call__
return self.get_data()
File "****\venv\lib\site-packages\ansys\dpf\core\outputs.py", line 52, in get_data
return self._operator.get_output(self._pin, type_output)
File "****\venv\lib\site-packages\ansys\dpf\core\dpf_operator.py", line 359, in get_output
parameters = {type_tuple[2]: type_tuple[1](self, pin)}
File "****\venv\lib\site-packages\ansys\dpf\gate\generated\operator_capi.py", line 350, in operator_getoutput_fields_container
raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: ENG_SE:0<-Source operator "mapdl::rth::ENG_SE" not found
Similar errors we obtain also for other energies.
Could you please help us with the error? Or if the energies are not valid for thermal analysis, could you remove the energies from available results?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
there are energies listed in avaiable results of thermal example. How ever if we try to obtain them, an error occures, see below.
Code:
Output:
Code:
Error:
Similar errors we obtain also for other energies.
Could you please help us with the error? Or if the energies are not valid for thermal analysis, could you remove the energies from available results?
Thank you and best regards,
Petr
Beta Was this translation helpful? Give feedback.
All reactions