Skip to main content

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


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)

Uploaded Source

File details

Details for the file dnv_bladed_models-0.3.32a686.tar.gz.

File metadata

File hashes

Hashes for dnv_bladed_models-0.3.32a686.tar.gz
Algorithm Hash digest
SHA256 fa1e43bcb49e4e1b2fa715dd71ec8c48f1a0e029eed8b08e15fcc5e84fa0592f
MD5 94a74971503b10d0121b217fb72e44ff
BLAKE2b-256 18fbe7deecdd604bb9211d3c3f7a6a0ba32accf62315bc392cd767fe941b0d2c

See more details on using hashes here.

Supported by

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