Name | Description |
---|---|
Interfaces | |
SplitMueRoad | |
NoGraphicsRoad | |
ConstantWind |
block NoGraphicsRoad extends Interfaces.TyreRoadInterface; equation mue = 0.7; n = {0,0,1}; z = 0; end NoGraphicsRoad;
Name | Default | Description |
---|---|---|
v_Wind[3] | {0,0,0} | Wind velocity [m/s] |
rho_air | 1 | Air density [kg/m3] |
block ConstantWind extends Interfaces.WeatherInterface; parameter SI.Velocity[3] v_Wind={0,0,0} "Wind velocity"; parameter SI.Density rho_air=1 "Air density"; equation v_wind = v_Wind; rho = rho_air; end ConstantWind;
Name | Default | Description |
---|---|---|
mue1 | 0.7 | |
mue2 | 0.1 | |
mue3 | 0.7 | |
x0 | -200 | [m] |
x1 | 50 | [m] |
x2 | 100 | [m] |
x3 | 200 | [m] |
y0 | 14 | [m] |
block SplitMueRoad extends Interfaces.TyreRoadInterface; parameter Real mue1=0.7; parameter Real mue2=0.1; parameter Real mue3=0.7; parameter SI.Position x0=-200; parameter SI.Position x1=50; parameter SI.Position x2=100; parameter SI.Position x3=200; parameter SI.Position y0=14; protected parameter Real eps=1; parameter Real a=-0.05; protected VisualShape section1( Height=0.1, r0={x0,0,0.02}, Length=x1 - x0, Width=y0, Material={1/mue1,1/mue1,1/mue1,1/mue1}*0.1); VisualShape section2( Height=0.1, r0={x1,0,0.02}, Length=x2 - x1, Width=y0, Material={1/mue2,1/mue2,1/mue2,1/mue2}*0.1); VisualShape section3( Height=0.1, r0={x2,0,0.02}, Length=x3 - x2, Width=y0, Material={1/mue3,1/mue3,1/mue3,1/mue3}*0.1); VisualShape suroundings( Height=0.1, Material={0.4,0.6,0.1,0.3}, r0={x0,0,0.02}, Length=x3 - x0, Width=y0*4); equation mue = noEvent(if (x < x1) then mue1 else (if (x < x2) then mue2 else mue3)); n = {0,0,1}; z = 0; section1.S = identity(3); section1.r = {0,0,a}; section2.S = identity(3); section2.r = {0,0,a}; section3.S = identity(3); section3.r = {0,0,a}; suroundings.S = identity(3); suroundings.r = {0,0,a - 0.1}; end SplitMueRoad;