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
Public Interface IM10
'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
ReadOnly Property InterFCSmartPneumatics As Single
ReadOnly Property FuelConsumptionSmartPneumaticsAndAverageElectricalPowerDemand As Single
End Interface
......
......@@ -10,33 +10,75 @@ Public Class M10
Implements IM10
Private m4 As IM4_AirCompressor
Private m9 As IM9
'Privates
#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
Public ReadOnly Property InterFCNonSmartPneumatics As Single Implements IM10.InterFCNonSmartPneumatics
#End Region
Private Enum InterpolationType
NonSmartPneumtaics
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
Return Interpolate(InterpolationType.NonSmartPneumtaics)
End Get
End Property
Public ReadOnly Property InterFCSmartPneumatics As Single Implements IM10.InterFCSmartPneumatics
Public ReadOnly Property FuelConsumptionSmartPneumaticsAndAverageElectricalPowerDemand As Single Implements IM10.FuelConsumptionSmartPneumaticsAndAverageElectricalPowerDemand
Get
Return Interpolate( InterpolationType.SmartPneumtaics)
End Get
End Property
Public sub new( m4 As IM4_AirCompressor, m9 As IM9, fcMap As IFUELMAP , signals As ISignals)
#End Region
#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 region
End Class
......
......@@ -6,9 +6,8 @@ Namespace DownstreamModules
Public Class M9
Implements IM9
#Region "Aggregates"
'AG1
......@@ -160,7 +159,6 @@ End Property
End Sub
End Class
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