-
🤓 Before submitting the issue
🔍 Description of the bugI have been trying to simulate basic thermal analysis to my imported model. I am getting insufficiently constrained model error, which is mentioned in detail. A few people said that there is a problem with boundary cond. in uz direction, but I thought that I constrained it in script. 🕵️ Steps To Reproduceimport tikzplotlib
import numpy as np
import pyansys
import matplotlib as plt
import markdown
import trame_vuetify
import rich
import meshio
from ansys.mapdl.core import launch_mapdl
from ansys.mapdl import core as pymapdl
license_type='mech_2'
mapdl=launch_mapdl(license_type=license_type)
mapdl.aux15()
mapdl.igesin(fname='cs_12_dev',ext='igs')
mapdl.vplot(show_lines=True)
mapdl.finish()
mapdl.prep7()
mapdl.mp("kxx",1,5)
mapdl.mp("kyy",1,30)
mapdl.mp("kzz",1,10)
mapdl.et(1,"SOLID187")
mapdl.vmesh(1)
mapdl.allsel()
mapdl.eplot()
mapdl.asel("S",vmin=3)
mapdl.nsla()
mapdl.d("ALL","UX","TEMP",5)
mapdl.asel("S",vmin=4)
mapdl.nsla()
mapdl.d("ALL","UZ","TEMP",5)
out=mapdl.allsel()
mapdl.vsweep(1)
mapdl.run("/SOLU")
mapdl.solve()
out=mapdl.finish()
mapdl.post1()
mapdl.set(1,1)
mapdl.post_processing.plot_nodal_temperature() 💻 Which Operating System are you using?Windows 🐍 Which Python version are you using?3.10 📝 PyMAPDL ReportPyMAPDL Software and Environment Report Packages Requirements Core packagesansys.mapdl.core : 0.65.2 Optional packagesmatplotlib : 3.7.2 Ansys Installation Version Location221 C:\Program Files\ANSYS Inc\v221 Ansys Environment Variables ANSYS221_DIR C:\Program Files\ANSYS Inc\v221\ANSYS 📝 Installed packagesalabaster @ file:///home/ktietz/src/ci/alabaster_1611921544520/work 📝 Logger output fileThe error I got: MapdlRuntimeError Traceback (most recent call last) File ~\anaconda_last\lib\site-packages\ansys\mapdl\core_commands\solution\analysis_options.py:3450, in AnalysisOptions.solve(self, action, **kwargs) File ~\anaconda_last\lib\site-packages\ansys\mapdl\core\mapdl.py:3004, in _MapdlCore.run(self, command, write_to_log, mute, **kwargs) File ~\anaconda_last\lib\site-packages\ansys\mapdl\core\mapdl.py:4019, in _MapdlCore._raise_errors(self, text) File ~\anaconda_last\lib\site-packages\ansys\mapdl\core\mapdl.py:4091, in _MapdlCore._raise_output_errors(self, response) MapdlRuntimeError: Error in instance GRPC_127.0.0.1:50052 *** ERROR *** CP = 12.344 TIME= 08:37:36 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @bahadir14 mapdl.d("ALL","UX","TEMP",5)
mapdl.asel("S",vmin=4)
mapdl.nsla()
mapdl.d("ALL","UZ","TEMP",5) TEMP is not defined in the script. Also a boundary condition for UY is missing. Lastly why is nodal temperature (as a degree of freedom) being post-processed on a structural element only model? MIke |
Beta Was this translation helpful? Give feedback.
Hi @bahadir14
This should be asked in the Discussion section as it is not an PyMAPDL Issue i.e. not a bug. Or a feature request. Onto the code, the "TEMP" in the two D commands does not make sense:
TEMP is not defined in the script. Also a boundary condition for UY is missing. Lastly why is nodal temperature (as a degree of freedom) being post-processed on a structural element only model?
MIke