Dear support,
I am sent here after posting my problem in github and the support there couldn't give me a solution. The issue that was closed was the following: https://github.com/ansys/pyfluent/issues/4884#issuecomment-3851877585
I am trying to create an imprint surface by using a similar method with TUI commands : https://innovationspace.ansys.com/courses/courses/topics-in-general-post-processing-using-ansys-fluent-ii/lessons/loading-and-imprinting-surfaces-using-tui-commands/
I've managed to read the geometry that I wand to load using
session.settings.mesh.surface_mesh.read(file_name=stl2load, unit='m')
I can manually select the surface and create the imprint surface but it is imported with a Fluent default name which i don't know how to query using pyfluent. Once I know the name of the surface I can easily create the imprint using:
session_imprint_surf = session.settings.results.surfaces.imprint_surface
session_imprint_surf.create('surf_imprint')
surf_imprint_state = session_imprint_surf['surf_imprint'].get_state()
surf_imprint_state['name'] = 'surf_imprint'
surf_imprint_state['surface'] = 'surface_name' # <--- unkown when loading with surface_mesh.read()
surf_imprint_state['zones'] = ['fluid']
session_plane_surf['surf_imprint'].set_state(surf_imprint_state)
My question here is: How can I import a geometry and rename it to use it in postprocessing?