SeaLab CreateSimulation

From LabRPS Documentation
Jump to navigation Jump to search

New Simulation

Menu location
SeaLab → New Simulation
Phenomena
SeaLab
Default shortcut
None
Introduced in version
-
See also
SeaLab tutorial

Description

The SeaLab Simulation could be seen as a container that holds all objects of random sea surface simulation. It is mandatory to have a simulation container that holds all the needed objects.

Usage

  1. There are several ways to invoke the command:
    • Press the SeaLab CreateSimulation.svg New Simulation button.
    • Select the SeaLab → SeaLab CreateSimulation.svg New Simulation option from the menu.
  2. A new Simulation is created and set to active.
  3. Any SeaLab Features (objects) could be added or removed from the simulation from SeaLab CreateFeature.svg Create Feature....
  4. To add new SeaLab Features (objects) to the document the simulation has to be active. Double-clicking on the simulation container activates the simulation.

Properties

  • DataNumberOfSample: This is the number of sea wave field sample in a simulation.
  • DataNumberOfTimeLags: Number of time lags need for temporal correlation.
  • DataStationarity: This specifies whether the simulated sea wave is stationary or non-stationary.
  • DataGaussianity: This specifies whether the simulated sea wave is gaussian or non-gaussian.
  • DataComparisonMode: This specifies whether we are in comparison mode or not.
  • DataLargeScaleSimulationMode: This specifies whether we are in large scale simulation mode or not.
  • DataIsSimulationSuccessful: This specifies whether the simulation was successful or not.
  • DataIsInterruptionRequested: This specifies whether the simulation needs to be interrupted or not.
  • DataUniformModulation: This specifies whether a non stataionary sea wave is uniformly modulated or not.
  • DataNumberOfProcess: The number of simulation point which is the number of wave processes in a sample.
  • DataLocationIndexJ: The index of the a given sea wave process in a wave field at a location J.
  • DataLocationIndexK: The index of the a given sea wave process in a wave field at a location K.
  • DataNumberOfFrequency: The number of discrete frequency increments.
  • DataFrequencyIncrement: This is the frequency increment value.
  • DataMinFrequency: This is the minimum frequency value.
  • DataMaxFrequency: This is the maximum frequency value or the cutoff frequency.
  • DataFrequencyIndex: Index correponding to Kth discrete frequency increment.
  • DataNumberOfTimeIncrements: This is the number of time increments.
  • DataTimeIncrement: This is the time increment value.
  • DataMinTime: This is the minimum time value.
  • DataMaxTime: This is the maximum time value.
  • DataTimeIndex: Index correponding to Kth time increment.
  • DataNumberOfDirectionIncrements: The number of direction increments.
  • DataDirectionIncrement: This is the direction increment value.
  • DataMinDirection: This is the minimum direction value.
  • DataMaxDirection: This is the maximum direction value.
  • DataDirectionIndex: Index correponding to Kth direction increment.
  • DataNumberOfWaveLengthIncrements: The number of discrete wave length increment.
  • DataWaveLengthIncrement: This is the wave length value.
  • DataMinWaveLength: This is the minimum wave length.
  • DataMaxWaveLength: This is the maximum wave length.
  • DataWaveLengthIndex: Index correponding to Kth wave length increment.
  • DataSpatialDistribution: Active location distribution (simulation points distribution) name.
  • DataMeanFunction: Active mean wave height name.
  • DataSpectrumModel: Active spectrum model name.
  • DataCoherenceFunction: Active coherence function name.
  • DataSimulationMethod: Active simulation method name.
  • DataFrequencyDistribution: Active frequency distribution name.
  • DataSpectrumDecompositionMethod: Active PSD decomposition method name.
  • DataRandomnessProvider: Active randomness provider name.
  • DataModulationFunction: Active modulation function name.
  • DataCorrelationFunction: Active correlation function name.
  • DataTableTool: The active table tool name.
  • DataMatrixTool: The active matrix name.
  • DataUserDefinedRPSObject: user defined RPS object name.
  • DataCumulativeProbabilityDistribution: Active CPD name.
  • DataGustFactor: Active gust factor name.
  • DataKurtosis: Active kurtosis name.
  • DataPeakFactor: Active peak factor name.
  • DataProbabilityDensityFunction: Active PDF name.
  • DataRoughness: Active roughness name.
  • DataShearVelocityOfFlow: Active shear velocity name.
  • DataSkewness: Active skewness name.
  • DataStandardDeviation: Active standard deviation name.
  • DataTurbulenceIntensity: Active turbulence intensity name.
  • DataTurbulenceScale: Active turbulence scale name.
  • DataVariance: Active variance name.
  • DataWavePassageEffect: Active wave passage name.
  • DataNumberOfIncrementOfVariableX: The number of increments for the variable x.
  • DataIndexOfVariableX: This current index of the variable x.
  • DataIncrementOfVariableX: This is the variable x increment value.
  • DataMinVariableX: This is the minimum x variable value
  • DataPhenomenon: The random phenonenon name. It is going to be Random Sea Surface here.
  • DataWorkingDirectoryPath: The working directory path.

Scripting

  • Create new document and add new simulation to it.
import SeaLabObjects
import LabRPS
doc = LabRPS.newDocument()
sim = SeaLabObjects.makeSimulation(doc, "MySimulation")
if not sim:
    LabRPS.Console.PrintError("The simulation does not exist.\n")