A Python client library for Osis APDL
Project description
pyosis
Python client library for OSIS Bridge Analysis Platform
Installation
Due to naming conflicts on PyPI, please install using:
pip install osis-python
If your mirror hasn't synced yet, use:
pip install osis-python -i https://pypi.org/simple
Usage
First, install the latest version of OSIS (>=5.0), which includes the required Python environment.
Switch AI assistant to command mode and send:
import json
from pyosis.core.all_func import *
osis_clear()
osis_acel(9.8066)
osis_calc_tendon(1)
osis_calc_con_force(1)
osis_calc_shrink(1)
osis_calc_creep(1)
osis_calc_shear(1)
osis_calc_rlx(1)
osis_mod_loc_coor(0)
osis_inc_tendon(1)
osis_nl(0, 0)
osis_ln_srch(0)
osis_auto_ts(0)
osis_mod_opt(0)
osis_section_circle(1, "Circle Section 1", "CIRCLE", "Hollow", 0.219, 0.012)
osis_section_circle(2, "Circle Section 2", "CIRCLE", "Hollow", 0.180, 0.008)
osis_section_circle(3, "Circle Section 3", "CIRCLE", "Hollow", 0.114, 0.005)
osis_section_circle(4, "Circle Section 4", "CIRCLE", "Hollow", 0.089, 0.004)
osis_section_circle(5, "Circle Section 5", "CIRCLE", "Hollow", 0.045, 0.003)
osis_material_steel(1, "Steel 1", "STEEL", "JTGD64_2015", "Q345", 0.05)
# Fixed nodes (x, y units: m)
osis_node(1, 0, 5, 0)
osis_node(2, 15, 5, 0)
# Load application nodes
osis_node(3, 7.5, 0, 0)
osis_node(4, 20, 0, 0)
osis_element_beam3d(1, "BEAM3D", 1, 3, 1, 4, 4, 1, 1, 0.00, 0, 0.00, 0)
osis_element_beam3d(2, "BEAM3D", 2, 3, 1, 5, 5, 1, 1, 0.00, 0, 0.00, 0)
osis_element_beam3d(3, "BEAM3D", 2, 4, 1, 5, 5, 1, 1, 0.00, 0, 0.00, 0)
osis_element_beam3d(4, "BEAM3D", 3, 4, 1, 5, 5, 1, 1, 0.00, 0, 0.00, 0)
osis_boundary_general(1, "GENERAL", "", 1, 1, 1, 1, 1, 1, 1)
osis_assign_boundary(1, "a", [1, 2])
osis_loadcase("Custom Load Case 1", "USER", 1, "Two forces applied at nodes 3 and 4")
osis_load_nforce("NFORCE", "Custom Load Case 1", 3, 0, -1000000, 0, 0, 0, 0)
osis_load_nforce("NFORCE", "Custom Load Case 1", 4, 200000, 0, 0, 0, 0, 0)
osis_solve()
If everything is normal, you will see OSIS finish the processing.
You can also directly execute the code using the code editor (vscode, pycharm, cursor, etc.). You may need to log in to the OSIS software first.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osis_python-0.2.1.tar.gz.
File metadata
- Download URL: osis_python-0.2.1.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7117e485c273394b63b5f17837233af11e046540a190f22989c4c81fae911121
|
|
| MD5 |
5555a6e23ee63e0ff7cf464072752cec
|
|
| BLAKE2b-256 |
24101f34153f10cf45a45ec2e8f8bce54374557605c1d3d5dfcedabe949e64f1
|
File details
Details for the file osis_python-0.2.1-py3-none-any.whl.
File metadata
- Download URL: osis_python-0.2.1-py3-none-any.whl
- Upload date:
- Size: 63.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d18e481588beed6070b7b71a7080688933506c5f9c21f872db151062704efc72
|
|
| MD5 |
fa057965fdd8fbc77135d56bd72e6774
|
|
| BLAKE2b-256 |
bbf13b4d7b188e77f49ff45d00be791f3b6357d8a612f01f90c39c48c4324ec9
|