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 hashes)

Uploaded Source

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