modelDragForceAngle

Vehicle rolling and aerodinamical drag force

Extends from Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport2 (Partial model for a component with one translational 1-dim. shaft flange and a support used for textual modeling, i.e., for elementary models), Modelica.Mechanics.Translational.Interfaces.PartialFriction (Base model of Coulomb friction elements).

Information

This component models the total (rolling and aerodynamic vehicle drag resistance, also considering road slope (angle):

F=m*g*sin(angle) +  fc*m*g*cos(angle) + (1/2)*rho*Cx*S*v^2

It is a variation of DragForce model.


Parameters

TypeNameDefaultDescription
BooleanuseSupport (from PartialElementaryOneFlangeAndSupport2)false= true, if support flange enabled, otherwise implicitly grounded
IntegerUnknown (from PartialFriction)3Value of mode is not known
IntegerFree (from PartialFriction)2Element is not active
IntegerForward (from PartialFriction)1v_relfric > 0 (forward sliding)
IntegerStuck (from PartialFriction)0v_relfric = 0 (forward sliding, locked or backward sliding)
IntegerBackward (from PartialFriction)-1v_relfric < 0 (backward sliding)
Modelica.Units.SI.Massmvehicle mass
Modelica.Units.SI.Densityrhoair density
Modelica.Units.SI.AreaSvehicle cross area
Realfcrolling friction coefficient
RealCxaerodinamic drag coefficient
StringDataFileName"DataName.txt"Name of file with angles function of s (rad) ex: "Angle.txt"
RealAfc*m*g_n
RealA1m*g_n
RealB1/2*rho*S*Cx
Real[:,2]mu[0, 1]
Advanced
SI.Velocityv_small (from PartialFriction)1e-3Relative velocity near to zero (see model info text)

Connectors

TypeNameDefaultDescription
Flange_bflange (from PartialElementaryOneFlangeAndSupport2)Flange of component
Supportsupport (from PartialElementaryOneFlangeAndSupport2)Support/housing of component

Components

TypeNameDefaultDescription
SI.Lengths (from PartialElementaryOneFlangeAndSupport2)Distance between flange and support (= flange.s - support.s)
SI.Velocityv_relfric (from PartialFriction)Relative velocity between frictional surfaces
SI.Accelerationa_relfric (from PartialFriction)Relative acceleration between frictional surfaces
SI.Forcef0 (from PartialFriction)Friction force for v_relfric=0 and forward sliding
SI.Forcef0_max (from PartialFriction)Maximum friction force for v_relfric=0 and locked
Booleanfree (from PartialFriction)= true, if frictional element is not active
Realsa (from PartialFriction)Path parameter of friction characteristic f = f(a_relfric)
BooleanstartForward (from PartialFriction)= true, if v_relfric=0 and start of forward sliding
BooleanstartBackward (from PartialFriction)= true, if v_relfric=0 and start of backward sliding
Booleanlocked (from PartialFriction)= true, if v_relfric=0 and not sliding
Integermode (from PartialFriction)Mode of friction (-1: backward sliding, 0: stuck, 1: forward sliding, 2: inactive, 3: unknown)
Modelica.Units.SI.ForcedragForceTotal drag force
Modelica.Units.SI.Velocityvvehicle velocity
Modelica.Units.SI.AccelerationaAbsolute acceleration of flange
RealanglesToAngle.y[1]
RealSign
Modelica.Units.SI.Lengthaltimetry
RealdebugdragForce - B*v^2*Sign
Modelica.Blocks.Tables.CombiTable1DssToAngle