An API for working with Bladed Next Gen models.
Project description
Bladed Next Gen Python Models API
dnv_bladed_models=0.3.32a686
A Python package to easily work with JSON input models for Bladed Next Generation.
Visit https://bladednextgen.dnv.com/ for more information.
Usage
Load a JSON model from file:
import dnv_bladed_models as models
analysis = models.BladedAnalysis.from_file('/path/to/analysis.json')
Modify a model object in code:
analysis.SteadyCalculation.PitchRange.Minimum = 0.
analysis.SteadyCalculation.PitchRange.Maximum = 0.
analysis.SteadyCalculation.PitchRange.Interval = 0.1
Work with a turbine assembly component in the Component Library, in code:
blade: models.Blade = analysis.ComponentDefinitions['Blade']
Save a model to a JSON file:
analysis.to_file('/path/to/file.json')
Create a new model object programmatically:
beam = models.LidarBeam(
MountingPosition=models.LidarMountingPosition(
X=1,
Y=2,
Z=3
)
)
Render a model as a JSON string:
json_str = blade.to_json()
Load a model from a JSON string:
blade = models.Blade.from_json(json_str)
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
dnv_bladed_models-0.3.32a686.tar.gz
(160.8 kB
view details)
File details
Details for the file dnv_bladed_models-0.3.32a686.tar.gz
.
File metadata
- Download URL: dnv_bladed_models-0.3.32a686.tar.gz
- Upload date:
- Size: 160.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1e43bcb49e4e1b2fa715dd71ec8c48f1a0e029eed8b08e15fcc5e84fa0592f |
|
MD5 | 94a74971503b10d0121b217fb72e44ff |
|
BLAKE2b-256 | 18fbe7deecdd604bb9211d3c3f7a6a0ba32accf62315bc392cd767fe941b0d2c |