Sine

Generate sine signal

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

The Real output y is a sine signal:

Sine.png

Parameters (5)

offset

Value: 0

Type: Real

Description: Offset of output signal y

startTime

Value: 0

Type: Time (s)

Description: Output y = offset for time < startTime

amplitude

Value: 1

Type: Real

Description: Amplitude of sine wave

f

Value:

Type: Frequency (Hz)

Description: Frequency of sine wave

phase

Value: 0

Type: Angle (rad)

Description: Phase of sine wave

Connectors (1)

y

Type: RealOutput

Description: Connector of Real output signal

Used in Examples (57)

InverseModel

Modelica.Blocks.Examples

Demonstrates the construction of an inverse model

RealNetwork1

Modelica.Blocks.Examples

Demonstrates the usage of blocks from Modelica.Blocks.Math

IntegerNetwork1

Modelica.Blocks.Examples

Demonstrates the usage of blocks from Modelica.Blocks.MathInteger

BusUsage

Modelica.Blocks.Examples

Demonstrates the usage of a signal bus

Modulation

Modelica.Blocks.Examples

Demonstrate amplitude modulation an frequency modulation

SubSample

Modelica.Clocked.Examples.Elementary.ClockSignals

Example of a SubSample block for Clock signals

SuperSample

Modelica.Clocked.Examples.Elementary.ClockSignals

Example of a SuperSample block for Clock signals

ShiftSample

Modelica.Clocked.Examples.Elementary.ClockSignals

Example of a ShiftSample block for Clock signals

RotationalSample

Modelica.Clocked.Examples.Elementary.ClockSignals

Simple example of a rotational clock with variable trigger interval and switching rotation-direction.

LogicalSample

Modelica.Clocked.Examples.Elementary.ClockSignals

Simple example of conjunctive and disjunctive logical clocks, combining clock signals to derive new event driven clocks.

Sample1

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a Sample block for Real signals

SampleClocked

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SampleClocked block for Real signals

SampleVectorizedAndClocked

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SampleVectorizedAndClocked block for Real signals

SampleWithADeffects

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SampleWithADeffects block for Real signals

Hold

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a Hold block for Real signals

HoldWithDAeffects1

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a HoldWithDAeffects block for Real signals

HoldWithDAeffects2

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a HoldWithDAeffects block for Real signals (with a computational delay of one sample period)

SubSample

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SubSample block for Real signals

SuperSample

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SuperSample block for Real signals

SuperSampleInterpolated

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SuperSampleInterpolated block for Real signals

ShiftSample

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a ShiftSample block for Real signals

BackSample

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a BackSample block for Real signals

UpSample1

Modelica.Clocked.Examples.Elementary.RealSignals

Example of an UpSample block for Real signals

UpSample2

Modelica.Clocked.Examples.Elementary.RealSignals

Example of an UpSample block for Real signals combined with FIR filter blocks

AssignClockToTriggerHold

Modelica.Clocked.Examples.Elementary.RealSignals

Example of an AssignClockToTriggerHold block for Real signals

AssignClockToSquareWaveHold

Modelica.Clocked.Examples.Elementary.RealSignals

Example of an AssignClockToSquareWaveHold block for Real signals

FractionalDelay

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a FractionalDelay block for Real signals

TickBasedSine

Modelica.Clocked.Examples.Elementary.RealSignals

Example of using the clocked tick based Sine source block

GenerationOfFMUs

Modelica.Electrical.Analog.Examples

Example to demonstrate variants to generate FMUs (Functional Mock-up Units)

PolyphaseTwoLevel_R

Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel

Polyphase DC to AC converter with R load

PolyphaseTwoLevel_RL

Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel

Polyphase DC to AC converter with R-L load

ThreePhaseTwoLevel_PWM

Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel

Test of pulse width modulation methods

RollingWheelSetDriving

Modelica.Mechanics.MultiBody.Examples.Elementary

Rolling wheel set that is driven by torques driving the wheels

Surfaces

Modelica.Mechanics.MultiBody.Examples.Elementary

Demonstrate the visualization of a sine surface, as well as a torus and a wheel constructed from a surface

PlanarLoops_analytic

Modelica.Mechanics.MultiBody.Examples.Loops

Mechanism with three planar kinematic loops and one degree-of-freedom with analytic loop handling (with JointRRR joints)

ActuatedDrive

Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects

Demonstrates usage of models Rotor1D and Mounting1D

MovingActuatedDrive

Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects

Demonstrates usage of model Rotor1D mounted on a moving body

GearConstraint

Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects

Demonstrate usage of GearConstraint model

BevelGear1D

Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects

Demonstrates the usage of a BevelGear1D model and how to calculate the power of such an element

First

Modelica.Mechanics.Rotational.Examples

First example: simple drive train

FirstGrounded

Modelica.Mechanics.Rotational.Examples

First example: simple drive train with grounded elements

Friction

Modelica.Mechanics.Rotational.Examples

Drive train with clutch and brake

CoupledClutches

Modelica.Mechanics.Rotational.Examples

Drive train with 3 dynamically coupled clutches

LossyGearDemo1

Modelica.Mechanics.Rotational.Examples

Example to show that gear efficiency may lead to stuck motion

LossyGearDemo2

Modelica.Mechanics.Rotational.Examples

Example to show combination of LossyGear and BearingFriction

HeatLosses

Modelica.Mechanics.Rotational.Examples

Demonstrate the modeling of heat losses

GenerationOfFMUs

Modelica.Mechanics.Rotational.Examples

Example to demonstrate variants to generate FMUs (Functional Mock-up Units)

OneWayClutch

Modelica.Mechanics.Rotational.Examples

Drive train with actively engaged one-way clutch

OneWayClutchDisengaged

Modelica.Mechanics.Rotational.Examples

Drive train with disengaged one-way clutch

Oscillator

Modelica.Mechanics.Translational.Examples

Oscillator demonstrates the use of initial conditions

Sensors

Modelica.Mechanics.Translational.Examples

Sensors for translational systems

Friction

Modelica.Mechanics.Translational.Examples

Use of model Stop

PreLoad

Modelica.Mechanics.Translational.Examples

Preload of a spool using ElastoGap models

HeatLosses

Modelica.Mechanics.Translational.Examples

Demonstrate the modeling of heat losses

GenerationOfFMUs

Modelica.Mechanics.Translational.Examples

Example to demonstrate variants to generate FMUs (Functional Mock-up Units)

MeasuringTemperature

Modelica.Fluid.Examples.Explanatory

Differences between using one port with and without explicit junction model and two port sensors for fluid temperature measuring

GenerationOfFMUs

Modelica.Thermal.HeatTransfer.Examples

Example to demonstrate variants to generate FMUs (Functional Mock-up Units)

Used in Components (2)

Harmonic

Modelica.Blocks.Math

Calculate harmonic over period 1/f

SinglePhaseTwoLevel

Modelica.Electrical.PowerConverters.Examples.DCAC.ExampleTemplates

Single-phase two level inverter including control