Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
ospx 0.3.1
Logo
ospx 0.3.1

Contents:

  • ospx
  • API Reference
    • ospx package
      • ospx.fmi
        • ospx.fmi.experiment
          • Experiment
        • ospx.fmi.fmu
          • FMU
        • ospx.fmi.unit
          • BaseUnit
          • DisplayUnit
          • Unit
        • ospx.fmi.variable
          • ScalarVariable
      • ospx.watch
        • ospx.watch.cli
          • ospx.watch.cli.watchCosim
        • ospx.watch.watchCosim
          • CosimWatcher
      • ospx.utils
        • ospx.utils.dateTime
        • ospx.utils.dict
        • ospx.utils.logging
        • ospx.utils.plotting
        • ospx.utils.zip
      • ospx.component
        • Component
        • RemoteAccess
      • ospx.connection
        • Connection
        • Endpoint
      • ospx.connector
        • Connector
      • ospx.graph
        • Graph
      • ospx.importer
        • OspSystemStructureImporter
      • ospx.ospCaseBuilder
        • OspCaseBuilder
      • ospx.ospSimulationCase
        • OspSimulationCase
      • ospx.simulation
        • Simulation
      • ospx.system
        • System
  • CLI Documentation
    • ospCaseBuilder - CLI interface
    • importSystemStructure - CLI interface
    • watchCosim - CLI interface
  • File Format
    • caseDict
    • watchDict
  • Changelog
  • Style Guide
  • LICENSE
Back to top
View this page

DisplayUnit¶

class ospx.fmi.unit.DisplayUnit(name: str = <factory>, factor: float = 1.0, offset: float = 0.0)¶

Bases: object

fmi 2.0 DisplayUnit.

display unit value = factor * unit value + offset n See https://github.com/modelica/fmi-standard/blob/v2.0.x/schema/fmi2Unit.xsd

__init__(name: str = <factory>, factor: float = 1.0, offset: float = 0.0) → None¶

Methods

__init__([name, factor, offset])

Attributes

factor

offset

name

factor: float = 1.0¶
name: str¶
offset: float = 0.0¶
Next
Unit
Previous
BaseUnit
Copyright © 2024, DNV SE. All rights reserved.
Made with Sphinx and @pradyunsg's Furo
On this page
  • DisplayUnit
    • DisplayUnit
      • DisplayUnit.__init__()
      • DisplayUnit.factor
      • DisplayUnit.name
      • DisplayUnit.offset