Main Content

Force Noise Source

模型零均值通常(高斯)分布力

  • 库:
  • Simscape / Driveline /源

  • Force Noise Source block

Description

Force Noise Sourceblock generates zero-mean normally (Gaussian) distributed force using theRandom Numbersource in the Simscape™ Foundation library. The force produced by the block depends on two factors:

  • 这noise power spectral density input to the block

  • A random number seed that you control using theRepeatability适用的,Seedparameters

这defining equation for the force that the block generates is

F = P S D / 2 N ( 0 , 1 ) h ,

where:

  • Fis the output force.

  • PSDis the single-sided noise power spectral density.

  • Nis a Gaussian random number with zero mean and standard deviation of one.

  • his the sampling interval.

Ports

Input

expand all

这power spectral density (PSD) of noise is the average noise power per unit of bandwidth, in N2/Hz.

Conserving

expand all

Mechanical translational conserving port associated with the base interface.

Mechanical translational conserving port associated with the follower interface.

Parameters

expand all

这values of the timestepperiod and the initial timeoffset. If you specify a scalar value forstep, the block assumes anoffsetvalue of0.To specify a nonzero value for the initial time offset, specify the parameter values using the vector[step,offset]. Theoffsetvalue must be less than thestepvalue and greater than or equal to zero.

这random number seed is the number that initializes the random number generator. The seed is0或正整数。To control the random number seed, set this parameter to:

  • Not repeatable- 每次模拟模型时,种子会发生变化。块使用matlab重置随机种子®random number generator command:

    seed = randi(2^32-1);
  • Repeatable— The seed is the same random number at the start of every simulation. The block sets the value using the same MATLAB random number generator command used by theNot repeatable范围。

    When you add aForce Noise Sourceblock to your model from the Sources library, the block generates and stores a random value for the repeated seed. When you make a copy of theForce Noise Sourceblock from an existing block in a model, the copy generates a new random value for the repeated seed.

  • Specify seed— The seed is a number that you specify using theSeed范围。这Seedparameter is only available when you chooseSpecify seed为了Repeatability范围。

这seed must be0或正整数。此参数仅在您选择时可用Specify seed为了Repeatability范围。

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2016b