The two calculators outputs some structured signals which are being written to file by the logger.
calculator.yml
Options:
PeriodMs: 1000
Constants:
firstOdd: 1
InputSignals:
OutputSignals:
- { Type: CommonVesselInfo, Topic: CommonVesselInfo, Partition: }
- { Type: DoubleVal, Topic: PartitionTest, Partition: Odd }
TempValues:
- count
Expressions:
- count = count + 1
- PartitionTest.val = firstOdd + count * 2
- CommonVesselInfo.machinery.auxCons = 200
- CommonVesselInfo.machinery.auxElProd = 1000
- CommonVesselInfo.machinery.auxLoad_kW = 1000
- CommonVesselInfo.machinery.meCons = 200
- CommonVesselInfo.machinery.meLoad_kW = 1000
- CommonVesselInfo.machinery.meRpm = 600
- CommonVesselInfo.machinery.sumCons = 400
- CommonVesselInfo.machinery.sumElProd = 1000
- CommonVesselInfo.machinery.sumLoad_kW = 2000
- CommonVesselInfo.machinery.ptiPower = 0
- CommonVesselInfo.machinery.ptoPower = 0
- CommonVesselInfo.machinery.sfc = 0.2
- CommonVesselInfo.propulsion.efficiency = 0.5
- CommonVesselInfo.propulsion.pitchPd = 0.9
- CommonVesselInfo.propulsion.pitchPercent = 70
- CommonVesselInfo.propulsion.rpm = 140
- CommonVesselInfo.propulsion.thrust = 14
- CommonVesselInfo.propulsion.torque = 20
- CommonVesselInfo.propulsion.speed = 10
- CommonVesselInfo.propulsion.powerToPropellerJet = 1000
- CommonVesselInfo.propulsion.power = 1000
calculator2.yml
Options:
PeriodMs: 1000
Constants:
firstEven: 2
InputSignals:
OutputSignals:
- { Type: CommonVesselInfo, Topic: CommonVesselInfo, Partition: }
- { Type: DoubleVal, Topic: PartitionTest, Partition: Even }
TempValues:
- count
Expressions:
- count = count + 1
- PartitionTest.val = firstEven + count * 2
logger.yml
Options:
PeriodMs: 1000
LogSetup:
Maxsamples: 3600
CompressionLevel: 2
Directory: .
FilePrefix: Logs_
Title: Test logger
Origin: sintef
OriginType: ship
OriginId: IMOXXXXXX
Summary: Operational data from vessel xcc
Signals:
# Estimates
- { Type: DoubleVal, Topic: PartitionTest, Partition: Even}
- { Type: CommonVesselInfo, Topic: CommonVesselInfo}