Skip to main content

Python tools for working with Adams data

Project description

adamspy

PyPI - Downloads PyPI - Downloads

adamspy is a python package designed for CAE analysts who use Adams to automate manipulation of files and data outside of the Adams environment.

[!TIP] See aviewpy for a library that workis inside the Adams View environment.

Installation

pip install adamspy

Setting Environment variables

Before importing adamspy into your python script you need to set some environment variables to allow adamspy to communicate with your adams installation. Here are the the environment variables you need to set.

Variable Value
ADRILL_USER_CFG Full path to the user adrill cfg file (e.g. C:\users\user_name.adrill.cfg) Optional
ADRILL_SHARED_CFG Full path to the shared adrill cfg file (e.g. C:\MSC.Software\Adams\2018\adrill\adrill.cfg) Optional
ADAMS_LAUNCH_COMMAND Full path to the adams launch command (e.g. C:\MSC.Software\Adams\2018\common\mdi.bat)

Usage

The adamspy.postprocess package and its submodules likely contain the most useful tools in this library.

Here is an example of getting results from an Adams results .res file

from adamspy.postprocess.ppt import get_results
result_file = 'example.res'
t_min = 70
t_max = 80
reqs_to_get = {}
reqs_to_get['MSE'] = ['Instantaneous_Bottom_MSE', 'Filtered_Surface_MSE']
reqs_to_get['ROP_controls'] = ['Command_ROP', 'True_WOB']
requests, units = get_results(result_file, reqs_to_get, t_min, t_max)

Adams Drill

The adamspy.adripy package contains tools for automating Adams drill.

[!NOTE] Adams Drill was discontinued in 2023

Please see the documentation here: https://bthornton191.github.io/adamspy/#

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

adamspy-0.32.0.tar.gz (93.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adamspy-0.32.0-py3-none-any.whl (87.4 kB view details)

Uploaded Python 3

File details

Details for the file adamspy-0.32.0.tar.gz.

File metadata

  • Download URL: adamspy-0.32.0.tar.gz
  • Upload date:
  • Size: 93.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/63.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.9

File hashes

Hashes for adamspy-0.32.0.tar.gz
Algorithm Hash digest
SHA256 bf40e3c21508d8f8198cbc999c4a2912218e17ee746b4873d41a94d42e00fcf7
MD5 6114e97adb5b7ca40ea2c4a3c9a15e52
BLAKE2b-256 f3104fab70e9b249be35bd513447f0c848649092b372e0a5d3d9f8731b6c2e10

See more details on using hashes here.

File details

Details for the file adamspy-0.32.0-py3-none-any.whl.

File metadata

  • Download URL: adamspy-0.32.0-py3-none-any.whl
  • Upload date:
  • Size: 87.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/63.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.9

File hashes

Hashes for adamspy-0.32.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3447600987d9fd277d9893bc35f2070bb30f5143be88bcd6acee556802a9e83
MD5 51ccdfa1056c5c9c719588f8de3ff11e
BLAKE2b-256 fa38032182e21107eeb390665b1c32823332b95e9a7cbca877e4e30c90cd74b8

See more details on using hashes here.

Supported by

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