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.44

A Python package to easily work with JSON input models for Bladed Next Generation.

Visit https://bladednextgen.dnv.com/ for more information.

Prerequisites

  • Requires Python 3.7 or above

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


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.44.tar.gz (164.6 kB view details)

Uploaded Source

File details

Details for the file dnv_bladed_models-0.3.44.tar.gz.

File metadata

  • Download URL: dnv_bladed_models-0.3.44.tar.gz
  • Upload date:
  • Size: 164.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for dnv_bladed_models-0.3.44.tar.gz
Algorithm Hash digest
SHA256 3f9572ed90f0f1aeaaff8c61d213c7de80d68bd165fb7b144356a479eab0fa3a
MD5 43b527137491650053f2344ef614fecb
BLAKE2b-256 7e6e4ccaf7da5e053916f279b500c72bb7e462f74843f0d172ac2d27723e1b24

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