Run pyfluent for 2D solver #1910
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am wondering if there is any chance that pyfluent works in 2D, which I guess it does, but how can I activate this mode? By default, my solver starts in 3D so I get the following error when trying to import my 2D mesh:
Multicore SMT processors detected. Processor affinity set!
Reading "D:\MESH.msh"...
Buffering for file scan...
Error: File has wrong dimensions (2).
Error Object: #f
Error: Error reading "D:\MESH.msh".
Error Object: #f
These are the commands I ran:
import ansys.fluent.core as pyfluent
solver = pyfluent.launch_fluent(precision="double", processor_count=4, mode="solver", )
solver.health_check_service.is_serving
--> True
solver.file.read_mesh(file_name = 'D:\MESH.msh')
I apologise as I am new to pyfluent.
Thanks,
Enrique
EDIT: Already solved
Beta Was this translation helpful? Give feedback.
All reactions