Skip to main content

Type hints for Abaqus/Python scripting

Project description

pyabaqus

Type hints for Abaqus/Python scripting

pyabaqus is a Python package providing type hints for Python scripting of Abaqus, you can use it to write your Python script of Abaqus fluently, even without doing anything in Abaqus. It also provides some simple APIs to execute the Abaqus commands so that you can run your Python script to build the model, submit the job and extract the output data in just one Python script, even without opening the Abaqus/CAE.

Other links for this project

Related project

Abaqus Executor is an application to run your Abaqus model more fluently, check it in github.com/Haiiliin/pyabaqus-executor or check the documentation.

Quick start

Installation

pyabaqus is using type hints features that require Python 3.9 or a later version, please upgrade it to Python 3.9 or a later version if you are using an earlier version.

pyabaqus is uploaded to PyPI, you can simply install it using pip:

pip install pyabaqus

pyabaqus is also uploaded to anaconda, you can use conda to install it:

conda install -c haiiliin pyabaqus

You may install the latest development version by cloning the GitHub repository and use python to install from the local directory:

git clone https://github.com/Haiiliin/pyabaqus.git
python setup.py install

Write your Abaqus/Python script

After installing the pyabaqus package, you can start writing your own Abaqus/Python script to build your model. You can refer pyabaqus/tests at main · Haiiliin/pyabaqus for some tests of the script, for more detailed documentation, please check pyabaqus documentation.

Setup your Abaqus Environment

In order to use Abaqus command to execute the Python script and submit the job, you need to tell pyabaqus where the Abaqus command located. Usually, Abaqus command locates in a directory like this:

C:/SIMULIA/Commands/abaqus.bat

You can add the directory C:/SIMULIA/Commands to the system environment variable Path, or you can create a new system variable named ABAQUS_BAT_PATH, and set the value to the file path of the Abaqus command, i.e., C:/SIMULIA/Commands/abaqus.bat.

Run your Abaqus/Python script

Now you can just run your Abaqus/Python script using your own Python interpreter that pyabaqus is installed.

  • Create an Abaqus Model

    Model

  • Extract Output Data

    Output

What next?

You may wonder how does this package work, you can go pyabaqus documentation: Getting Started for more detailed introduction and go pyabaqus documentation: Tutorials for a simple tutorial. For more documentation about Abaqus/Python scripting, please check pyabaqus documentation: User Manual for a list of descriptions of objects and methods of Abaqus models, check pyabaqus documentation: API References for more detailed API references.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyabaqus-1.0.15-py2.py3-none-any.whl (1.6 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyabaqus-1.0.15-py2.py3-none-any.whl.

File metadata

  • Download URL: pyabaqus-1.0.15-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pyabaqus-1.0.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9e7f60dd19048db2eea2e00cc7178f105030c003bfceacc396d48885529db96e
MD5 4a4d9a700e187aa857134bfd39fefe91
BLAKE2b-256 9c50d0a952eaa3e08d394aa8d148f4ef9ffbb7d378f673a0c47a932772e06428

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page