Versions in this module Expand all Collapse all v0 v0.13.0 Nov 25, 2026 v0.12.1 Nov 6, 2026 v0.12.0 Nov 4, 2026 v0.11.0 Oct 24, 2026 v0.10.1 Oct 16, 2026 v0.10.0 Oct 11, 2026 v0.9.2 Oct 5, 2026 Changes in this version + const Exchange + const RunnerEnv + var ErrModelDescription = errors.New("malformed modelDescription.xml") + var ErrNotFMU = errors.New("not a Functional Mock-up Unit") + var ErrUnsupportedVersion = errors.New("unsupported FMI version") + var ErrVariable = errors.New("fmi variable refused") + func FileURI(path string) string + func New(look func() (string, error)) analysis.Manifested + type BaseUnit struct + A int + Cd int + Factor float64 + K int + Kg int + M int + Mol int + Offset float64 + Rad int + S int + func ParseBaseUnit(unit string) (BaseUnit, bool) + func (b BaseUnit) SIExpression() string + type Causality string + const CausalityCalculatedParameter + const CausalityIndependent + const CausalityInput + const CausalityLocal + const CausalityOutput + const CausalityParameter + const CausalityStructuralParameter + type Description struct + Author string + CoSimulation *Interface + DefaultExperiment *Experiment + Description string + FMIVersion Version + GenerationDateAndTime string + GenerationTool string + InstantiationToken string + ModelExchange *Interface + ModelName string + Platforms []string + ScheduledExecution *Interface + Units []Unit + Variables []Variable + Version string + func ParseModelDescription(data []byte) (*Description, error) + func Read(path string) (*Description, error) + func ReadArchive(r io.ReaderAt, size int64) (*Description, error) + func (d *Description) Inputs() []Variable + func (d *Description) Outputs() []Variable + func (d *Description) Unit(name string) (Unit, bool) + func (d *Description) Variable(name string) (Variable, bool) + type Dimension struct + HasStart bool + HasVR bool + Start uint64 + ValueReference uint32 + type Experiment struct + HasStart bool + HasStepSize bool + HasStop bool + HasTolerance bool + StartTime float64 + StepSize float64 + StopTime float64 + Tolerance float64 + type Interface struct + CanGetAndSetFMUState bool + CanHandleVariableCommunicationStepSize bool + CanSerializeFMUState bool + ModelIdentifier string + NeedsExecutionTool bool + ProvidesDirectionalDerivatives bool + type Kind string + const KindBinary + const KindBoolean + const KindClock + const KindEnumeration + const KindInteger + const KindReal + const KindString + type ModelDescriptionError struct + Detail string + Err error + func (e *ModelDescriptionError) Error() string + func (e *ModelDescriptionError) Is(target error) bool + func (e *ModelDescriptionError) Unwrap() error + type RunnerError struct + Message string + Stderr string + func (e *RunnerError) Error() string + type Unit struct + Base *BaseUnit + Name string + type UnsupportedVersionError struct + Version string + func (e *UnsupportedVersionError) Error() string + func (e *UnsupportedVersionError) Is(target error) bool + type Variability string + const VariabilityConstant + const VariabilityContinuous + const VariabilityDiscrete + const VariabilityFixed + const VariabilityTunable + type Variable struct + Causality Causality + DeclaredType string + Description string + Dimensions []Dimension + FMIType string + HasStart bool + Kind Kind + Max string + Min string + Name string + Start string + Unit string + ValueReference uint32 + Variability Variability + func (v Variable) UnitExponents(d *Description) (BaseUnit, bool) + type VariableError struct + Detail string + FMU string + Variable string + func (e *VariableError) Error() string + func (e *VariableError) Is(target error) bool + type Version string + const Version1 + const Version2 + const Version3