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
For example, midpoint attritube for edge.midpoint, position attribute for vertice.position, center attritube for box.top_face_x.center.
ipk.materials['Copper'].specific_heat.value, myMaterial.thermal_conductivity, myMaterial.specific_heat, and myMaterial.density need syntax completion, too.
Code sample expected
from ansys.aedt.core import Icepak
ipk = Icepak()
box = ipk.modeler.create_box([0,0,0],[1,2,3])
for edge in box.edges:
print('Edge Midpoint = ', edge.midpoint)
for vertice in box.top_face_x.vertices:
print('Vertics =', vertice.position)
Hi @Samuelopez-ansys Some properties can not be syntax completed by editor, such as midpoint attritube for edge.midpoint, position attribute for vertice.position, center attritube for box.top_face_x.center. Could you please solve the problem? If you can, it would be very convenient for programming.
Description of the current limitations
For example, midpoint attritube for edge.midpoint, position attribute for vertice.position, center attritube for box.top_face_x.center.
ipk.materials['Copper'].specific_heat.value, myMaterial.thermal_conductivity, myMaterial.specific_heat, and myMaterial.density need syntax completion, too.
Code sample expected
from ansys.aedt.core import Icepak
ipk = Icepak()
box = ipk.modeler.create_box([0,0,0],[1,2,3])
for edge in box.edges:
print('Edge Midpoint = ', edge.midpoint)
for vertice in box.top_face_x.vertices:
print('Vertics =', vertice.position)
print('Face center = ', box.top_face_x.center)
print(ipk.materials['Copper'].specific_heat.value)
print(ipk.materials['Copper'].thermal_conductivity.value)
print(ipk.materials['Copper'].mass_density.value)
myMaterial = ipk.materials.add_material(name='chs_test1')
myMaterial.thermal_conductivity = 0.5
myMaterial.specific_heat = 200
myMaterial.mass_density = 300
print('thermal conductivity = ', ipk.materials[myMaterial.name].thermal_conductivity.value)
Useful links and references
No response
The text was updated successfully, but these errors were encountered: