Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 08aa4fa3 authored by Terry Burns's avatar Terry Burns Committed by Kostis ANAGNOSTOPOULOS
Browse files
parent 7c93ad3f
No related branches found
No related tags found
No related merge requests found
...@@ -10,10 +10,16 @@ Namespace DownstreamModules ...@@ -10,10 +10,16 @@ Namespace DownstreamModules
Public Interface IM10 Public Interface IM10
'Interpolated FC between points 2-1 Representing non-smart Pneumatics = BaseFuel Consumption with average auxillary loads 'Interpolated FC between points 2-1 Representing non-smart Pneumatics = BaseFuel Consumption with average auxillary loads
ReadOnly Property InterFCNonSmartPneumatics As Single ReadOnly Property BaseFuelConsumptionWithAverageAuxiliaryLoads As Single
'Interpolated FC between points 2-3-1 Representing smart Pneumatics = Fuel consumption with smart Pneumatics and average electrical power demand 'Interpolated FC between points 2-3-1 Representing smart Pneumatics = Fuel consumption with smart Pneumatics and average electrical power demand
ReadOnly Property InterFCSmartPneumatics As Single ReadOnly Property FuelConsumptionSmartPneumaticsAndAverageElectricalPowerDemand As Single
End Interface End Interface
......
...@@ -10,33 +10,75 @@ Public Class M10 ...@@ -10,33 +10,75 @@ Public Class M10
Implements IM10 Implements IM10
Private m4 As IM4_AirCompressor 'Privates
Private m9 As IM9 #Region "Private Fields = > Constructor Requirements"
Private m3 As IM3_AveragePneumaticLoadDemand
Private m9 As IM9
'Not Currently used but there for ease of refactoring in future.
Private signals As ISignals Private signals As ISignals
#End Region
Private Enum InterpolationType
NonSmartPneumtaics
Public ReadOnly Property InterFCNonSmartPneumatics As Single Implements IM10.InterFCNonSmartPneumatics SmartPneumtaics
End Enum
Private Function Interpolate( interpType As InterpolationType) As Single
Dim returnValue As Single
Dim x1,y1,x2,y2,x3,y3 As Single
x1=m9.LitresOfAirCompressorOnContinually
y1=m9.TotalCycleFuelConsumptionCompressorOnContinuously
x2=0
y2=m9.TotalCycleFuelConsumptionCompressorOffContinuously
x3=m9.LitresOfAirCompressorOnOnlyInOverrun
y3=m9.TotalCycleFuelConsumptionCompressorOffContinuously
Select Case interpType
'Non-Smart Pneumatics
Case InterpolationType.NonSmartPneumtaics
'Smart Pneumatics
Case InterpolationType.SmartPneumtaics
End Select
Return returnValue
End Function
'Public
#Region "Public Properties"
Public ReadOnly Property BaseFuelConsumptionWithAverageAuxiliaryLoads As Single Implements IM10.BaseFuelConsumptionWithAverageAuxiliaryLoads
Get Get
Return Interpolate(InterpolationType.NonSmartPneumtaics)
End Get End Get
End Property End Property
Public ReadOnly Property FuelConsumptionSmartPneumaticsAndAverageElectricalPowerDemand As Single Implements IM10.FuelConsumptionSmartPneumaticsAndAverageElectricalPowerDemand
Public ReadOnly Property InterFCSmartPneumatics As Single Implements IM10.InterFCSmartPneumatics
Get Get
Return Interpolate( InterpolationType.SmartPneumtaics)
End Get End Get
End Property End Property
#End Region
Public sub new( m4 As IM4_AirCompressor, m9 As IM9, fcMap As IFUELMAP , signals As ISignals) #Region "Contructors"
Public sub new( m3 As IM3_AveragePneumaticLoadDemand, m9 As IM9, signals As ISignals)
Me.m3=Me
Me.m9=m9
Me.signals= signals
End Sub End Sub
#end region
End Class End Class
......
...@@ -6,9 +6,8 @@ Namespace DownstreamModules ...@@ -6,9 +6,8 @@ Namespace DownstreamModules
Public Class M9 Public Class M9
Implements IM9 Implements IM9
#Region "Aggregates" #Region "Aggregates"
'AG1 'AG1
...@@ -160,7 +159,6 @@ End Property ...@@ -160,7 +159,6 @@ End Property
End Sub End Sub
End Class End Class
End Namespace End Namespace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment