diff options
| author | sam-anthony <samanthony6@protonmail.com> | 2022-03-26 14:51:43 -0230 |
|---|---|---|
| committer | sam-anthony <samanthony6@protonmail.com> | 2022-03-26 14:51:43 -0230 |
| commit | 713b65d414e327db7b530ce0be8403bc0ff4ff3b (patch) | |
| tree | 6e4a32fb43ca3e5b26d9cfb61c693ffd76391796 /main.go | |
| parent | 16235e23bda445f0bd0b664c3738c77e786a1cbf (diff) | |
| download | volute-713b65d414e327db7b530ce0be8403bc0ff4ff3b.zip | |
engine displacement
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -16,18 +16,17 @@ func check(err error) { } } +var ( + displacement = volume{2000, cubicCentimetre} + // selectedVolumeUnit is used to index volumeUnitStrings. + selectedVolumeUnit = defaultVolumeUnitIndex +) + var engineSpeed = [numPoints]int32{2000, 3000, 4000, 5000, 6000, 7000} var volumetricEfficiency = [numPoints]int32{100, 100, 100, 100, 100, 100} var ( - manifoldPressure [numPoints]pressure - - // selectedPressureUnit is used to index pressureUnits - selectedPressureUnit int32 -) - -func init() { manifoldPressure = [numPoints]pressure{ newPressure(), newPressure(), @@ -37,12 +36,13 @@ func init() { newPressure(), } - // selectedPressureUnit is used to index pressureUnitStrings + // selectedPressureUnit is used to index pressureUnitStrings. selectedPressureUnit = defaultPressureUnitIndex -} +) func loop() { g.SingleWindow().Layout( + engineDisplacementRow(), g.Table(). Rows( engineSpeedRow(), |