VirtualLabBuilder.ViewElements.Drawables.Mechanics

Mechanic drawable elements

Information


 

Mechanics package

Mechanics package contains several classes implementing implementing an interactive damper, a set of interactive dampers, an interactive spring and a set of interactive springs.

Package Content

NameDescription
VirtualLabBuilder.ViewElements.Drawables.Mechanics.Damper Damper Draws a damper
VirtualLabBuilder.ViewElements.Drawables.Mechanics.DamperSet DamperSet Draws a set of dampers
VirtualLabBuilder.ViewElements.Drawables.Mechanics.Spring Spring Draws a spring
VirtualLabBuilder.ViewElements.Drawables.Mechanics.SpringSet SpringSet Draws a set of springs


VirtualLabBuilder.ViewElements.Drawables.Mechanics.Damper VirtualLabBuilder.ViewElements.Drawables.Mechanics.Damper

Draws a damper

VirtualLabBuilder.ViewElements.Drawables.Mechanics.Damper

Information


                        

Creates a damper. The posistion of the two damper extremities (p1[:] and p2[:] variables) can be linked to the model variables.


Parameters

TypeNameDefaultDescription
Reald1/3Length of the damper fixed part divided by the damper length
RealL10.02Distance from the wide to the narrow part of the damper
RealL20.02Width of the narrow part of the damper
IntegerintX1Y10= 0 if the point (x1, y1) change in time and 0 otherwise
IntegerintX2Y20= 0 if the point (x2, y2) change in time and 0 otherwise
Colorcolor1[4]{255,0,255,255}The damper color changes form this color to color2
Colorcolor2[4]{249,204,202,255}The damper color changes form this color to color1

Connectors

TypeNameDescription
ParentpLeftConnector of drawable components
ChildcLeftConnector of drawable components

Modelica definition

model Damper "Draws a damper" 
                        extends src.ViewElements.Drawables.Mechanics.Damper;
  
end Damper;

VirtualLabBuilder.ViewElements.Drawables.Mechanics.DamperSet VirtualLabBuilder.ViewElements.Drawables.Mechanics.DamperSet

Draws a set of dampers

VirtualLabBuilder.ViewElements.Drawables.Mechanics.DamperSet

Information


                        

Creates a set of dampers. The posistion of the two extremities of each damper (p1[:, :] and p2[:, :] variables) can be linked to the model variables.


Parameters

TypeNameDefaultDescription
IntegerN_dampers2Number of dampers
Reald1/3length of the damper fixed part divided by the damper length
RealL10.02distance from the wide to the narrow part of the damper
RealL20.02width of the narrow part of the damper
IntegerintX1Y10= 0 if the point (x1, y1) change in time and 0 otherwise
IntegerintX2Y20= 0 if the point (x2, y2) change in time and 0 otherwise
Colorcolor1[4]{255,0,255,255}The damper color changes form this color to color2
Colorcolor2[4]{249,204,202,255}The damper color changes form this color to color1

Connectors

TypeNameDescription
ParentparentConnector of the drawable elements
ChildchildConnector of the drawable elements

Modelica definition

model DamperSet "Draws a set of dampers" 
  extends src.ViewElements.Drawables.Mechanics.DamperSet;
end DamperSet;

VirtualLabBuilder.ViewElements.Drawables.Mechanics.Spring VirtualLabBuilder.ViewElements.Drawables.Mechanics.Spring

Draws a spring

VirtualLabBuilder.ViewElements.Drawables.Mechanics.Spring

Information


                        

Creates a spring. The posistion of the two spring extremities (p1[:] and p2[:] variables) can be linked to the model variables.


Parameters

TypeNameDefaultDescription
Reald1/19length of the spring without picks divided by the damper length and two
IntegerN4pick number
RealA0.05amplitude of the picks
IntegerintX1Y10= 0 if the point (x1, y1) change in time and 0 otherwise
IntegerintX2Y20= 0 if the point (x2, y2) change in time and 0 otherwise
Realstroke2Stroke used to draw the lines
ColorlineColor[4]{192,192,192,255}Line Color

Connectors

TypeNameDescription
ParentpLeftConnector of drawable components
ChildcLeftConnector of drawable components

Modelica definition

model Spring "Draws a spring" 
                         extends src.ViewElements.Drawables.Mechanics.Spring;
end Spring;

VirtualLabBuilder.ViewElements.Drawables.Mechanics.SpringSet VirtualLabBuilder.ViewElements.Drawables.Mechanics.SpringSet

Draws a set of springs

VirtualLabBuilder.ViewElements.Drawables.Mechanics.SpringSet

Information


                        

Creates a set of dampers. The posistion of the two extremities of each spring (p1[:, :] and p2[:, :] variables) can be linked to the model variables.


Parameters

TypeNameDefaultDescription
IntegerN_springs2Number of springs
Reald1/19length of the spring without picks divided by the damper length and two
IntegerN4pick number
RealA0.05amplitude of the picks
IntegerintX1Y10= 0 if the point (x1, y1) change in time and 0 otherwise
IntegerintX2Y20= 0 if the point (x2, y2) change in time and 0 otherwise
Realstroke2Stroke used to draw the lines
ColorlineColor[4]{192,192,192,255}Line Color

Connectors

TypeNameDescription
ParentparentConnector of the drawable elements
ChildchildConnector of the drawable elements

Modelica definition

model SpringSet "Draws a set of springs" 
  extends src.ViewElements.Drawables.Mechanics.SpringSet;
end SpringSet;

HTML-documentation generated by Dymola Tue Jul 24 18:58:09 2007.