An API for working with Bladed Next Gen models.
Project description
Bladed Next Gen Python Models API
dnv_bladed_models=0.3.32
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.TipSpeedRatioRange.Minimum = 4.
analysis.SteadyCalculation.TipSpeedRatioRange.Maximum = 10.
analysis.SteadyCalculation.TipSpeedRatioRange.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.32.tar.gz
(161.5 kB
view details)
File details
Details for the file dnv_bladed_models-0.3.32.tar.gz
.
File metadata
- Download URL: dnv_bladed_models-0.3.32.tar.gz
- Upload date:
- Size: 161.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5247954f0f7446e94f5d3f2b20e2046541cbf6e0664be864713ce7f665b496a |
|
MD5 | 42c2febf82c453ee7e5279f31bdaf412 |
|
BLAKE2b-256 | 55e9972f17522bdff51376b7b8e4acbab2a32326f17c19f9f06657559dd1ea46 |