May 4, 2021 at 9:16 pmmxplotlibSubscriber
Is possible to run Ensight commands in Python outside of the GUI Toolbox and GUI Python interpreter? E.g., sourcing Toolbox macros *.py files (or Ensight functions in general) via command prompt.
I have been reviewing the ANSYS Ensight Interface Manual but more information on this would be helpful.
Of note: While my workstation is Windows 10 and not Linux OS (unfortunately, as that would be more seamless), I do have Windows Subsystem for Linux - which allows for some work-arounds when it comes to certain processes.May 10, 2021 at 2:15 pmDrAmineAnsys EmployeeSure you can do that using the "-p" start flag and then apply the script you want which might read the data and do a couple of operations.
May 11, 2021 at 4:51 pmmxplotlibSubscriberCan you provide an example command? E.g., would it look something like the following:
~/ANSYS Inc/v211/CEI/bin/ensighticon211.bat -p macro.py
May 12, 2021 at 9:05 amDrAmineAnsys Employeedefinitely not with ensighticon211. Just ensight -batch -p file.py
May 12, 2021 at 4:39 pmmxplotlibSubscriberOof that's what I meant. On Windows 10, ./ensight211 -batch -p macros.py worked.
Viewing 4 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.Trending discussions
- Suppress Fluent to open with GUI while performing in journal file
- Heat transfer coefficient
- What are the differences between CFX and Fluent?
- Floating point exception in Fluent
- The solver failed with a non-zero exit code of : 2
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Rated Tags
© 2022 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.