Skip to content

Imprint surface #4884

@CesarAero

Description

@CesarAero

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 ro 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'
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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions