package ActiveDamping model ExampleModel annotation(uses(Modelica(version="3.1")), Documentation(info="

# Active Damping: Control Diesel Engine Vibrations

## Introduction

This model explores how to minimize vibrations in a diesel engine using a tuned mass damper.

In order to get the full experience of this example, you need the following:

These pages show an overview of the example. For the full example, open the accompanying notebook ActiveDamping.nb in Mathematica.

## Equation Analysis

Using Mathematica, create an interactive Manipulate analyzing the vibrations of a diesel engine for different damping parameters.

## Simulation Analysis

Simulate the vibrating engine with different damping mass and spring-damper parameters. Mathematica makes it easy to do such simulations in parallel.

These pages show an overview of the example. For the full example, open the accompanying notebook ActiveDamping.nb in Mathematica.

## Terms and Conditions of Use

This domain example is an informational resource made freely available by Wolfram Research.

### Use of This Example

• You may not use this example for any purpose that is unlawful or dangerous.
• You assume total responsibility and risk for your use of this example.
• You may not present this example with any alteration to its trade dress, trademarks, or design.

A summary of the licensing terms can be found at:

The full legal code can be found at:

", revisions=""), preferredView="info", Icon(coordinateSystem(extent={{-100.0,-100.0},{100.0,100.0}}, preserveAspectRatio=true, initialScale=0.1, grid={10,10}), graphics={Text(visible=true, origin={0.0,21.0}, lineColor={255,0,0}, extent={{-120.0,73.0},{120.0,132.0}}, textString="%name", fontName="Arial"),Rectangle(visible=true, lineColor={111,0,0}, fillColor={255,0,0}, fillPattern=FillPattern.HorizontalCylinder, lineThickness=4, extent={{-90.0,-90.0},{90.0,90.0}}, radius=25),Text(visible=true, origin={12.0,20.8333}, fillColor={255,255,255}, fillPattern=FillPattern.Solid, extent={{-102.0,-70.8333},{78.0,29.1667}}, textString="Ex", fontName="Arial")}), Diagram(coordinateSystem(extent={{-100.0,-100.0},{100.0,100.0}}, preserveAspectRatio=true, initialScale=0.1, grid={5,5}), graphics), experiment(StartTime=0.0, StopTime=80)); Modelica.Mechanics.Translational.Components.Fixed fixed annotation(Placement(visible=true, transformation(origin={-0.0,-50.0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=0))); Modelica.Mechanics.Translational.Components.Spring s annotation(Placement(visible=true, transformation(origin={0.0,-35.0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=-270))); Modelica.Mechanics.Translational.Components.SpringDamper sd(v_rel.stateSelect=StateSelect.avoid) annotation(Placement(visible=true, transformation(origin={-0.0,40.0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=-270))); Modelica.Mechanics.Translational.Components.Mass m2(s.stateSelect=StateSelect.always) annotation(Placement(visible=true, transformation(origin={0.0,70.0}, extent={{-10.0,-10.0},{10.0,10.0}}, rotation=-270))); ActiveDamping.Components.Engine engine annotation(Placement(visible=true, transformation(origin={0.0,0.0}, extent={{-17.5,-17.5},{17.5,17.5}}, rotation=0))); equation connect(a,engine.a) annotation(Line(visible=true, origin={-35.5,0.0}, points={{-14.5,0.0},{14.5,0.0}}, color={0,0,127})); connect(fixed.flange,s.flange_a) annotation(Line(visible=true, origin={-0.0,-47.5}, points={{-0.0,-2.5},{0.0,2.5}}, color={0,127,0})); connect(s.flange_b,engine.flange_a1) annotation(Line(visible=true, origin={0.0,-22.125}, points={{-0.0,-2.875},{0.0,2.875}}, color={0,127,0})); connect(sd.flange_b,m2.flange_a) annotation(Line(visible=true, origin={-0.0,55.0}, points={{-0.0,-5.0},{0.0,5.0}}, color={0,127,0})); connect(engine.flange_b1,sd.flange_a) annotation(Line(visible=true, origin={0.0,24.625}, points={{0.0,-5.375},{-0.0,5.375}}, color={0,127,0})); protected Modelica.Blocks.Interfaces.RealInput a=sin(2*time) annotation(Placement(visible=true, transformation(origin={-50.0,0.0}, extent={{-20.0,-20.0},{20.0,20.0}}, rotation=0), iconTransformation(origin={-70.0,-50.0}, extent={{-20.0,-20.0},{20.0,20.0}}, rotation=0))); end ExampleModel; package Components extends Modelica.Icons.Library; annotation(Documentation(info="

# Active Damping: Components

## Package Overview

This package contains custom components used in the main model.

## Terms and Conditions of Use

This domain example is an informational resource made freely available by Wolfram Research.

### Use of This Example

• You may not use this example for any purpose that is unlawful or dangerous.
• You assume total responsibility and risk for your use of this example.
• You may not present this example with any alteration to its trade dress, trademarks, or design.

A summary of the licensing terms can be found at:

The full legal code can be found at:

", revisions=""), Diagram(coordinateSystem(extent={{-148.5,-105.0},{148.5,105.0}}, preserveAspectRatio=true, initialScale=0.1, grid={5,5}))); model Engine annotation(Documentation(info="

# Active Damping: Engine

## Introduction

This class models the mass of an engine displaced by a force. It is used in the example model.

View the model diagram for this model.

## Terms and Conditions of Use

This domain example is an informational resource made freely available by Wolfram Research.

### Use of This Example

• You may not use this example for any purpose that is unlawful or dangerous.
• You assume total responsibility and risk for your use of this example.
• You may not present this example with any alteration to its trade dress, trademarks, or design.

A summary of the licensing terms can be found at:

The full legal code can be found at:

# Active Damping: Control Diesel Engine Vibrations

In order to get the full experience of this example, you need the following:

These pages show an overview of the example. For the full example, open the accompanying notebook ActiveDamping.nb in Mathematica.

## Package Overview

This package contains a model of a mechanical active damping system.

## Terms and Conditions of Use

This domain example is an informational resource made freely available by Wolfram Research.

### Use of This Example

• You may not use this example for any purpose that is unlawful or dangerous.
• You assume total responsibility and risk for your use of this example.
• You may not present this example with any alteration to its trade dress, trademarks, or design.