FhSim › Downloadable FMUs › Mass-spring-damper
Mass-spring-damper
From fhsim_base, model MassSpring
base
licence required
A unit mass on a linear spring. The co-simulation host drives the spring's anchor point and reads the mass position back, which makes this the smallest FhSim model that exercises the integrator across an FMI step boundary.
Downloads
FhSim 3.1.0
| FhSim | Ability | Platform | FMI | Size | Get it |
|---|---|---|---|---|---|
| 3.1.0 | Headless | Linux | FMI 2.0 | 5.1 MB |
fmus pull gitlab.sintef.no:5050/marine-ict/fhsim/fhsim_fmu/massspring-headless-fmi2-linux64:3.1.0
|
sha256:29779a9c03bedd5cbbe4c8c4ac9c80b68c1426ce2018871b98499f7ecfa668c0 |
|||||
| 3.1.0 | Headless | Linux | FMI 3.0 | 5.1 MB |
fmus pull gitlab.sintef.no:5050/marine-ict/fhsim/fhsim_fmu/massspring-headless-fmi3-x86-64-linux:3.1.0
|
sha256:f2964d700c166497bd5f32f7f797ba9249ade4653a6f324d2f44bf584f9bb1df |
|||||
| 3.1.0 | With renderer | Linux | FMI 2.0 | 121.0 MB |
fmus pull gitlab.sintef.no:5050/marine-ict/fhsim/fhsim_fmu/massspring-visual-fmi2-linux64:3.1.0
|
sha256:20263cea6d1b177a6d469ff86ab640ba39bb285bc5a8ff0fb9870d2f9a83306c |
|||||
| 3.1.0 | With renderer | Linux | FMI 3.0 | 121.0 MB |
fmus pull gitlab.sintef.no:5050/marine-ict/fhsim/fhsim_fmu/massspring-visual-fmi3-x86-64-linux:3.1.0
|
sha256:66f8397134f1a0490be5186adef663a3916580ec540cd4ad3f62aee213913ce2 |
|||||
Variables
The names a co-simulation host sees on this FMU.
fmi.AnchorPos[0]fmi.AnchorPos[1]fmi.AnchorPos[2]fmi.MassPos[0]fmi.MassPos[1]fmi.MassPos[2]integrator_timestep[0]state_file[0]time
Before you run one
- Every model needs an FhSim licence. Unless it is marked licence included, point the
SFH_LICENSE_FILEenvironment variable at your licence file before the host loads the FMU; without it the FMU fails initialisation with Cannot find a valid licence file. The file is rewritten on each run, so it has to be writable. Contact SINTEF to obtain one. - The FMU declares
canBeInstantiatedOnlyOncePerProcess, and warns unless it is loaded byproxyfmu. - An
ExternalLinkStandardobject's input ports become the FMU's outputs, and its outputs become the FMU's inputs. The causality is inverted relative to FhSim. - The renderer build starts with
visualizationset to true, so a host that never touches the parameter will open a render window. fmusis the FMU Index client: gitlab.sintef.no/co-simulation/fmu-index.