The ansys.mechanical.core library#
Summary#
PyMechanical-specific errors. |
|
Mechanical beta feature flags. |
|
Convenience CLI to run mechanical. |
|
Launch Mechanical in batch or UI mode. |
|
Logging module. |
|
Connect to Mechanical gRPC server and issues commands. |
|
Contain miscellaneous functions and methods at the module level. |
|
Module for threaded implementations of the Mechanical interface. |
|
Convenience CLI to run mechanical. |
|
Create a pool of Mechanical instances. |
|
User data directory. |
|
Examples path. |
|
Create logger for package level use. |
|
Whether or not Mechanical embedding is being used. |
|
Manage the package level ports. |
|
Control documentation gallery behavior and embedded-app instance sharing. |
Description#
Initialize the package level imports.
Module detail#
- core.USER_DATA_PATH#
User data directory.
- core.EXAMPLES_PATH#
Examples path.
- core.LOG#
Create logger for package level use.
- core.HAS_EMBEDDING = True#
Whether or not Mechanical embedding is being used.
- core.BUILDING_GALLERY = False#
Control documentation gallery behavior and embedded-app instance sharing.
When
True:Sphinx enables the example gallery during documentation builds (see
doc/source/conf.py).For the embedded
App, multipleApp()constructions reuse one underlying Mechanical instance so examples can run without exhausting resources.
To opt out of embedded instance sharing for a single
Appwhile leaving this flag unchanged (for example whenBUILDING_GALLERYis set globally), passreuse_instance=Trueto the constructor.