WindLab CreateFeature

From LabRPS Documentation
Jump to navigation Jump to search

WindLab Features

Menu location
WindLab → WindLab Features..
Phenomena
WindLab
Default shortcut
None
Introduced in version
-
See also
WindLab tutorial

Description

The WindLab Features command allows to create new WindLab Feature and add it to a simulatiion.

Usage

  1. There are several ways to invoke the command:
    • Press the WindLab CreateFeature.svg Create Feature button.
    • Select the WindLab → WindLab CreateFeature.svg Create Feature option from the menu.
  2. A new feature is created and added to its parent simulation.

Properties

Every WindLab Feature has the following properties:

  • DataIsActive: Whether this feature is active or not.
  • DataAuthor: The name of the person that implements the feature.
  • DataVersion: The version of this feature.
  • DataAPIVersion: The version of the API used to implement this feature.
  • DataReleaseDate: The date when this feature has been release for the first time.
  • DataFeatureType: The feature type this feature belongs to.
  • DataFeatureGroup: The feature group this feature belongs to.
  • DataPublicationAuthor: The name of the author that publishes this feature.
  • DataPublicationTopic: The publication topic of the article in which this feature was published.
  • DataPublicationDate: The publication date of the article in which this feature was published.
  • DataLinkToPublication: The internet link to the article in which this feature was published.
  • DataPluginVersion: The version of the plugin in which the feature is implemented.
  • DataPluginName: The name of the plugin in which the feature is implemented.
  • DataSimulation: The name of the simulation where the feature is created.
  • DataIsStationary: Whether this feature is stationary or not (time dependent).
  • DataIsUniformlyModulated: Whether this feature should be uniformly modulated or not. This is useful in case of non-stationarity.

Scripting

  • Create new feature and add it to an existing simulation.
import WindLabObjects
import LabRPS
doc = LabRPS.newDocument()
sim = WindLabObjects.makeSimulation(doc, "MySimulation")
newFeature = WindLabObjects.makeFeature("MyNewFeatureName", "MySimulation",  "FeatureType", "FeatureGroup")