CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Problem in reading journal file (https://www.cfd-online.com/Forums/fluent/214222-problem-reading-journal-file.html)

srf020 January 24, 2019 01:35

Problem in reading journal file
 
Hello
I am using ANSYS 19.1 workbench.
I have written an script in ansys 19.1 that is related to Fluent. It opens Fluent and reads Fluent Journal file. The problem is during reading mesh file, it does not wait for the mesh file to be fully loaded so it reads the next line that is related to the energy model, so since the mesh is not yet fully loaded, we encounter an error.
anyone can help?

Thanks

script:

system61 = GetSystem(Name="FLU 61")
setupComponent61 = system61.GetComponent(Name="Setup")
setupComponent61.Reset()
setup61 = system61.GetContainer(ComponentName="Setup")
fluentLauncherSettings61 = setup61.GetFluentLauncherSettings()
fluentLauncherSettings61.SetEntityProperties(Prope rties=Set(DisplayText="Fluent Launcher Settings", Dimension="ThreeD", Precision="Double",
EnvPath={}, RunParallel=True, NumberOfProcessors=2))
setup61.Edit()
setup61.SendCommand(Command="(cx-gui-do cx-activate-item "MenuBar*ReadSubMenu*Journal...")(cx-gui-do cx-set-file-dialog-entries
"Select File" '( "FinalJournal")' "All Files (*)")")
setup61.SendCommand(Command='(cx-gui-do cx-activate-item "MenuBar*FileMenu*Close Fluent")')

srf020 January 24, 2019 05:24

I found that journal code can not import mesh . when i type:

> (cx-gui-do cx-activate-item "MenuBar*ImportSubMenu*Mesh...")
> (cx-gui-do cx-set-file-dialog-entries "Select File" '( "mesh dir\mesh.msh") "Mesh Files (*.msh* *.MSH* )")

TUI return :
Resetting session...Resetting session...Done

and does no action.


All times are GMT -4. The time now is 16:58.