?? ice3start.mdl
字號:
ShowPortLabels on
PortType "env"
PhysicalDomain "Mechanical"
ClassName "Environment"
DialogTemplateClass "MECH.MachineEnvironment"
SyncWhenCopied "off"
Gravity "[0 -9.81 0]"
GravityUnits "m/s^2"
GravityAsSignal off
Dimensionality "Auto-detect"
AnalysisType "Forward dynamics"
LinearAssemblyTolerance "1e-3"
LinearAssemblyToleranceUnits "m"
AngularAssemblyTolerance "1e-3"
AngularAssemblyToleranceUnits "rad"
ConstraintSolverType "Stabilizing"
ConstraintRelTolerance "1e-4"
ConstraintAbsTolerance "1e-4"
UseRobustSingularityHandling off
StatePerturbationType "Fixed"
PerturbationSize "1e-5"
VisualizeMachine on
}
Block {
BlockType SubSystem
Name "Piston1"
Ports [2, 0, 0, 0, 0, 2]
Position [580, 87, 655, 268]
BackgroundColor "orange"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskPromptString "Crank Radius (m)|Connecting Rod Length (m)|Pist"
"on Radius (m)|Compression Ratio |Ignition Lead (degrees)"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "RCrank=@1;LCon=@2;RPist=@3;Comp_Ratio=@4;igniti"
"on_lead=@5;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.1|0.2|0.04|9|270"
MaskTabNameString ",,,,"
System {
Name "Piston1"
Location [215, 92, 796, 572]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "CrankAngle"
Position [25, 118, 55, 132]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Throttle"
Position [110, 193, 140, 207]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Combustion"
Ports [2, 1]
Position [235, 153, 360, 217]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Piston Combustion Model"
MaskPromptString "Crank Shaft Radius (m)|Connecting Rod Lengt"
"h (m)|Piston Radius (m)|Compression Ratio"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "RCrank=@1;LCon=@2;RPist=@3;Comp_Ratio=@4;"
MaskInitialization "% Motor Parameters\nFuel_Angle_Start = 0;"
"\nFuel_Angle_Finish= 180;\nFCompress_Angle_Start = 180;\nFCompress_Angle_Fini"
"sh = 360;\nPower_Angle_Start = 360;\nPower_Angle_Finish = 540;\nExhaust_Angle"
"_Start = 540;\nExhaust_Angle_Finish = 720;\nFire_Angle = 370;\n\n% Constant"
"s Assignment\nMW_fuel = 114; % Molecular Weight of Octane\nMW_O2 = 3"
"2;\nMW_N2 = 28;\nMWAir = 0.75*MW_N2 + 0.25*MW_O2;\n\nR = 8314.41; % "
" Ideal Gas Constant J/K/KgMol\n\n% Fuel Properties\nDelH = 48422070; % "
" Heat of combustion in J/Kg of fuel\nf_to_a = 1; % Fuel to Air Rati"
"o\n\n% Stoichiometric Ratios\nN2O2_Ratio = 2.33333;\nO2Fuel_Ratio = 12.5;\n"
"\n% Heat Capacity Calculations\nCv = 2.5*R; %J/K/KgMol\nCp = 3.5*R; \nGamm"
"a = Cp/Cv;\n\n% Dimensions of Piston\nDExhaust = 0.006;\nAExhaust = pi*DExh"
"aust*DExhaust/4;\nDFuel = 0.006;\nAFuel = pi*DFuel*DFuel/4;\nSweep_Vol = 2*RC"
"rank*pi*RPist^2;\nTotal_Vol = Sweep_Vol*(Comp_Ratio + 1)/Comp_Ratio;\n\n% B"
"ack Pressure Influence on Exhaust\nP_back = 101000.0; %Pascals\nT_back = 300"
"; %Kelvin\nP0 = 101000; % Reservoir Pressure for Fuel Entry\nT"
"0 = 300;\nn0 = P0*Total_Vol/R/T0/Comp_Ratio;\n\n% Max fuel calculation\nTma"
"x = 15000;\nmolefmax = n0*Cv*Tmax*Comp_Ratio/DelH/MW_fuel;\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "RCrank|LCon|RPist|Comp_Ratio"
MaskTabNameString ",,,"
System {
Name "Combustion"
Location [215, 92, 1179, 729]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Motor Angle T"
Position [60, 63, 90, 77]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Throttle"
Position [405, 468, 435, 482]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Conserve"
Ports [7, 4]
Position [525, 122, 675, 498]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskPromptString "Specific Heat Products (KJ/Kmol-K)|Spec"
"ific Heat Air(KJ/Kmol-K)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Cv_A=@1;Cv_B=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Cv|Cv"
MaskTabNameString ","
System {
Name "Conserve"
Location [-10, 74, 986, 687]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "85"
Block {
BlockType Inport
Name "Trigger"
Position [315, 413, 345, 427]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "nProd0"
Position [315, 458, 345, 472]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "EProd0"
Position [315, 503, 345, 517]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "nAir0"
Position [315, 548, 345, 562]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "EAir0"
Position [315, 593, 345, 607]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Motor Angle"
Position [15, 33, 45, 47]
Port "6"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Throttle"
Position [40, 438, 70, 452]
Port "7"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Air Flow"
Ports [4, 2]
Position [115, 376, 240, 559]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Air Flow"
Location [98, 74, 843, 648]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Motor Angle"
Position [155, 33, 185, 47]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Throttle"
Position [35, 138, 65, 152]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Partial P Air"
Position [30, 188, 60, 202]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "T"
Position [30, 238, 60, 252]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Begin Exhaust"
Ports [1, 1]
Position [275, 300, 305, 330]
SourceBlock "simulink/Logic and Bit\nOperation"
"s/Compare\nTo Constant"
SourceType "Compare To Constant"
ShowPortLabels on
relop ">"
const "Exhaust_Angle_Start"
LogicOutDataTypeMode "uint8"
ZeroCross off
}
Block {
BlockType Reference
Name "Begin Intake"
Ports [1, 1]
Position [275, 25, 305, 55]
SourceBlock "simulink/Logic and Bit\nOperation"
"s/Compare\nTo Constant"
SourceType "Compare To Constant"
ShowPortLabels on
relop ">"
const "Fuel_Angle_Start"
LogicOutDataTypeMode "uint8"
ZeroCross off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [635, 135, 655, 250]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Exhaust"
Ports [2, 1, 1]
Position [390, 420, 520, 540]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Exhaust"
Location [150, 198, 731, 696]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "P"
Position [90, 173, 120, 187]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "T"
Position [90, 218, 120, 232]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [235, 20, 255, 40]
}
Block {
BlockType Constant
Name "AFuel"
Position [90, 255, 120, 285]
Value "AExhaust"
}
Block {
BlockType Constant
Name "Const"
Position [90, 300, 120, 330]
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [360, 57, 385, 348]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "P0"
Position [90, 75, 120, 105]
Value "P_back"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [6, 2]
Position [170, 59, 305, 346]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem"
Location [127, 288, 712, 707]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "PSource"
Position [100, 128, 130, 142]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "TSource"
Position [100, 178, 130, 192]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "CylP"
Position [90, 308, 120, 322]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "CylT"
Position [90, 358, 120, 372]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Flow Area"
Position [25, 33, 55, 47]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Throttle"
Position [25, 63, 55, 77]
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -