Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify views in Pyfluent Meshing #3462

Open
jwkim23-kr opened this issue Nov 8, 2024 · 2 comments
Open

Modify views in Pyfluent Meshing #3462

jwkim23-kr opened this issue Nov 8, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@jwkim23-kr
Copy link

Description of the modifications

code : 1. solver.tui.display.views.auto_scale()
2. solver.tui.display.views.restore_view("front")
tui : display/views/auto_scale()
display/views/restore_view/

I'm trying to set views in Mesh mode using TUI commands in PyFluent, but the commands that work directly in TUI don’t seem to function correctly in PyFluent.

I followed the User Guide instructions to enable TUI access from Python with similar code, but I'm encountering an AttributeError.

Does anyone know how to resolve this?

For reference, TUI commands like solver.tui.file.write_mesh() work fine.

Useful links and references

No response

@jwkim23-kr jwkim23-kr added the documentation Improvements or additions to documentation label Nov 8, 2024
@mkundu1
Copy link
Contributor

mkundu1 commented Nov 14, 2024

Try these as workaround:

meshing.tui.display.views("auto-scale")
meshing.tui.display.views("restore-view", "front")

@jwkim23-kr
Copy link
Author

@mkundu1 Thank you

Thank you very much for answering my previous question. If it’s not too much trouble, I would like to ask for one more piece of help. The code below is a transcript for activating the clipping plane and changing coordinates in Fluent meshing. I am curious about how to create the code to execute this.

Alternatively, I would like to know how to perform this process using the TUI method.

Code
(cx-gui-do cx-set-toggle-button2 "RibbonFrame1Frame2(Task Page)Table1Table3(Clipping Planes)Table5CheckButton2(Insert Clipping Planes)" #t)
(cx-gui-do cx-activate-item "RibbonFrame1Frame2(Task Page)Table1Table3(Clipping Planes)Table5CheckButton2(Insert Clipping Planes)")
(cx-gui-do cx-set-toggle-button2 "RibbonFrame1Frame2(Task Page)Table1Table3(Clipping Planes)ButtonBox1Limit in Y" #t)
(cx-gui-do cx-activate-item "RibbonFrame1Frame2(Task Page)Table1Table3(Clipping Planes)ButtonBox1Limit in Y")
(cx-gui-do cx-set-toggle-button2 "RibbonFrame1Frame2(Task Page)Table1Table3(Clipping Planes)ButtonBox1Limit in Z" #t)
(cx-gui-do cx-activate-item "RibbonFrame1Frame2(Task Page)Table1Table3(Clipping Planes)ButtonBox1Limit in Z")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants