Gain

Output the product of a gain value with the input signal

Information

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

This block computes output y as product of gain k with the input u:

y = k * u;

Parameters (1)

k

Value:

Type: Real

Description: Gain value multiplied with input signal

Connectors (2)

u

Type: RealInput

Description: Input signal connector

y

Type: RealOutput

Description: Output signal connector

Used in Examples (35)

BusUsage

Modelica.Blocks.Examples

Demonstrates the usage of a signal bus

DrydenContinuousTurbulence

Modelica.Blocks.Examples.Noise

Demonstrates how to model wind turbulence for aircraft with the BandLimitedWhiteNoise block (a simple model of vertical Dryden gust speed at low altitudes < 1000 ft)

Continuous

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with continuous-time cascade controller

SubClocked

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where clocks are defined with sub-sampling and partitions with super-sampling

SuperSampled

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where fastest partition is defined with a clock and slower partition is defined with super-sampling

AbsoluteClocks

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where all partitions are defined with exact (integer) clock that need to be compatible to each other

ControlledMixingUnit

Modelica.Clocked.Examples.Systems

Simple example of a mixing unit where a (discretized) nonlinear inverse plant model is used as feedforward controller

MixingUnitWithContinuousControl

Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit

Simple example of a mixing unit where a (continuous) nonlinear inverse plant model is used as feedforward controller

Sample3

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a Sample block for Real signals with direct feed-through in the continuous-time and the clocked partition

DifferentialAmplifier

Modelica.Electrical.Analog.Examples.OpAmps

Differential amplifier

BatteryDischargeCharge

Modelica.Electrical.Batteries.Examples

Discharge and charge idealized battery

SuperCapDischargeCharge

Modelica.Electrical.Batteries.Examples

Discharge and charge idealized supercap

IMC_Conveyor

Modelica.Electrical.Machines.Examples.InductionMachines

Test example: InductionMachineSquirrelCage with inverter driving a conveyor

IMC_withLosses

Modelica.Electrical.Machines.Examples.InductionMachines

Test example: InductionMachineSquirrelCage with losses

SMPM_NoLoad

Modelica.Electrical.Machines.Examples.SynchronousMachines

SMPM at no-load

SMPM_Braking

Modelica.Electrical.Machines.Examples.SynchronousMachines

Test example: PermanentMagnetSynchronousMachine acting as brake

SMEE_LoadDump

Modelica.Electrical.Machines.Examples.SynchronousMachines

Test example: ElectricalExcitedSynchronousMachine with voltage controller

SMEE_Rectifier

Modelica.Electrical.Machines.Examples.SynchronousMachines

Test example: ElectricalExcitedSynchronousMachine with rectifier

HysteresisModelComparison

Modelica.Magnetic.FluxTubes.Examples.Hysteresis

Comparison of the different hysteresis models

IMC_DOL_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase

Direct on line start of polyphase induction machine with squirrel cage

IMS_Start_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase

Starting of polyphase induction machine with slip rings

IMC_Conveyor

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines

Induction machine with squirrel cage and inverter driving a conveyor

IMC_withLosses

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines

Induction machine with squirrel cage and losses

SMPM_Inverter_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase

Starting of polyphase permanent magnet synchronous machine with inverter

SMEE_Generator_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase

Electrical excited polyphase synchronous machine operating as generator

SMR_Inverter_Polyphase

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase

Starting of polyphase synchronous reluctance machine with inverter

SMPM_Braking

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines

Test example: PermanentMagnetSynchronousMachine acting as brake

SMEE_LoadDump

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines

Test example: ElectricalExcitedSynchronousMachine with voltage controller

SMEE_Rectifier

Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines

Test example: ElectricalExcitedSynchronousMachine with rectifier

IMC_Conveyor

Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines

Induction machine with squirrel cage and inverter driving a conveyor

IMC_withLosses

Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines

Induction machine with squirrel cage and losses

Vehicle

Modelica.Mechanics.Translational.Examples

One-dimensional vehicle with driving resistances

DrumBoiler

Modelica.Fluid.Examples.DrumBoiler

Complete drum boiler model, including evaporator and supplementary components

RoomCO2WithControls

Modelica.Fluid.Examples.TraceSubstances

Demonstrates a room volume with CO2 controls

WaterPump

Modelica.Thermal.FluidHeatFlow.Examples

Water pumping station

Used in Components (23)

PID

Modelica.Blocks.Continuous

PID-controller in additive description form

LimPID

Modelica.Blocks.Continuous

P, PI, PD, and PID controller with limited output, anti-windup compensation, setpoint weighting and optional feed-forward

Harmonic

Modelica.Blocks.Math

Calculate harmonic over period 1/f

Bode

Modelica.ComplexBlocks.ComplexMath

Calculate quantities to plot Bode diagram

BusTranscription

Modelica.Electrical.Batteries.Utilities

Transcribe bus signals

BaseCellStack

Modelica.Electrical.Batteries.BaseClasses

Battery with open-circuit voltage dependent on state of charge, self-discharge and inner resistance

PartialControlledDCPM

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities

Partial controlled DC PM drive with H-bridge from battery

LimitedPI

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities

Limited PI-controller with anti-windup and feed-forward

DcdcInverter

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities

DC-DC inverter

VoltageQuasiRMSSensor

Modelica.Electrical.Machines.Sensors

Length of space phasor -> RMS voltage

CurrentQuasiRMSSensor

Modelica.Electrical.Machines.Sensors

Length of space phasor -> RMS current

QuasiRMS

Modelica.Electrical.Machines.SpacePhasors.Blocks

ToDQ

Modelica.Electrical.Machines.Utilities

Transform instantaneous stator inputs to rotor fixed space phasor

FromDQ

Modelica.Electrical.Machines.Utilities

Transform rotor fixed space phasor to instantaneous stator quantities

DQToThreePhase

Modelica.Electrical.Machines.Utilities

Transforms dq to three-phase

DQCurrentController

Modelica.Electrical.Machines.Utilities

Current controller in dq coordinate system

Signal2mPulse

Modelica.Electrical.PowerConverters.ACDC.Control

Generic control of 2*m pulse rectifiers

VoltageCenterTap2mPulse

Modelica.Electrical.PowerConverters.ACDC.Control

Control of 2*m pulse center tap rectifier

VoltageToAngle

Modelica.Electrical.PowerConverters.ACAC.Control

Reference voltage to firing angle converter

CurrentController

Modelica.Magnetic.QuasiStatic.FundamentalWave.Utilities

Current controller

Motor

Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.Utilities

Motor model including current controller of r3 motors

Controller

Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.Utilities

P-PI cascade controller for one axis

Vehicle

Modelica.Mechanics.Translational.Components

Simple vehicle model