Repository navigation
Replies: 1 comment
|
For Fluent 2024 R2, PyFluent uses the legacy meshing workflow. geometry_filename = r"C:\Users\c0274\PYFLUENT_MESHING_SOURCES\nozzle.scdoc"
import_geometry = watertight.import_geometry
import_geometry.file_name = geometry_filename
# If needed, specify the length unit used by the geometry:
# import_geometry.length_unit = "mm"
import_geometry()If your installed PyFluent version exposes the newer settings-leaf API, the filename line is instead: import_geometry.file_name.set_state(geometry_filename)The PyFluent 0.38 docs show that |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Just did
import os
import platform
import ansys.fluent.core as pf
from ansys.fluent.core import examples
from ansys.fluent.core.solver import (
BoundaryConditions,
CellRegisters,
Contour,
Controls,
General,
Graphics,
Initialization,
Mesh,
PressureInlet,
PressureOutlet,
ReportDefinitions,
ReportFiles,
ReportPlots,
RunCalculation,
Setup,
)
meshing = pf.launch_fluent(mode="meshing")
watertight = meshing.watertight()
watertight.import_geometry
How can I use that to point to the file :
geometry_filename = 'C:\Users\c0274\PYFLUENT_MESHING_SOURCES\nozzle.scdoc'
Unfortunatelly, I can no see any guidance using TAB or help(watertight.import_geometry)
Thanks.
All reactions