ansys / pyfluent

Pythonic interface to Ansys Fluent
https://fluent.docs.pyansys.com
MIT License
256 stars 41 forks source link

CAD import failed in pyfluent (meshing) session #448

Open Rohits28 opened 2 years ago

Rohits28 commented 2 years ago

Hi,

I have performed CAD configuration for NX and I am able to import NX file (.prt) in fluentmeshing session (regular way), but if I launch FluentMeshing session with PyFluent it throws CAD import error

pyfluent_CAD_configuration_issue

seanpearsonuk commented 2 years ago

Hi @Rohits28, please could you share with me the NX file (.prt). Perhaps via onedrive.

seanpearsonuk commented 2 years ago

@Rohits28 This works for me from PyFluent as follows:

import ansys.fluent.core as f
session = f.launch_fluent(meshing_mode=True)
session.meshing.tui.file.import_.cad("yes", "P30_combustor_boi.prt", "yes", 40.0, "yes", "mm")

I also tried to use session.scheme_eval.exec with ti-menu-load-string, but I could not get it to work. Perhaps others can comment on that, although we should use the API itself as above. I can also provide the NX file for @mkundu1 @ajain-work.

mkundu1 commented 2 years ago

The issue appears only when Fluent is launched from PyFluent and CAD is configured to use plug-in mode for NX file import.

Rohits28 commented 2 years ago

Hi @seanpearsonuk ,

Yes it seems issue is with plug-in import. I have shared file with @mkundu1. Hope this will help to resolve the issue. Let me know if you need further information