adamspy
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/#
Metadata
Release files for adamspy 0.32.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adamspy-0.32.0.tar.gz | 93.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adamspy-0.32.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 181.0 kB
Release files / adamspy-0.32.0.tar.gz
| Download URL | adamspy-0.32.0.tar.gz |
|---|---|
| Size | 93.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf40e3c21508d8f8198cbc999c4a2912218e17ee746b4873d41a94d42e00fcf7
|
|
BLAKE2b-256 checksum How to use checksums |
f3104fab70e9b249be35bd513447f0c848649092b372e0a5d3d9f8731b6c2e10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / adamspy-0.32.0-py3-none-any.whl
| Download URL | adamspy-0.32.0-py3-none-any.whl |
|---|---|
| Size | 87.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3447600987d9fd277d9893bc35f2070bb30f5143be88bcd6acee556802a9e83
|
|
BLAKE2b-256 checksum How to use checksums |
fa38032182e21107eeb390665b1c32823332b95e9a7cbca877e4e30c90cd74b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|