Code Monkey home page Code Monkey logo

demo-cases's Introduction

cse-demos

All demo cases contains configuration in the two supported configuration formats:

  • OspSystemStructure.xml
  • SystemStructure.ssd

To run the co-simulation in a distributed manner with proxy-fmu, there are example configuration files in the /proxyfmu subdirectories

demo-cases's People

Contributors

cesarcarc avatar eidekrist avatar kyllingstad avatar markaren avatar mrindar avatar restenb avatar sskjong avatar thevang avatar yingguangchu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo-cases's Issues

PlotConfig.json for DPShip has an invalid "Room2" reference

The current PlotConfig.json for DPShip has the following variable:

{
"simulator": "Room2",
"variable": "q[1]"
}

which is not valid, as Room2 is not part of the DPShip config. When loading in the demo-app, a warning/notification is displayed in the terminal.

Cross reference errors in gunnerus-dp docs

The documentation for the gunnerus-dp case in gunnerus-dp/doc/documentation.pdf has several invalid cross references. The text

Error! Reference source not found.

is shown instead of the actual cross references

Tutorial FMU behaviour

There seems to be some behavior of the tutorial FMUs (mass-spring-damper system) that is not according to how the corresponding physical system would behave. It is very noticeable for some parameter settings, but I think it also slightly influences many other simulations where it is not as noticeable. This happens both when I download the FMUs on this repo and using the ones that are on STC. I think this is because the implementation of the damper is wrong.

This happens when the damperCoefficient is set high and the springStiffness is set to a low value. This makes it so the dominating force in the system is the damping force. In the physical system this would just make the mass slowly move toward the steady state position.

The figure below is what is simulated by STC with the parameters listed at the bottom. The green function is the x position of the mass. In this simulation the mass moves 6 kilometers in under 15 seconds! This must be unrealistic with the parameters described at the bottom.

As mentioned I think this is because the damper is implemented wrong. In the plot the x velocity of the mass is in blue and the damper force in the x direction is in orange. In the beginning of the simulation the damper force is in the same direction as the velocity (both positive). This cases the velocity to increase with again increases the damper force and causes a positive feedback loop. This causes the mass to accelerate incredibly fast in the positive x direction. This positive feedback loop is only stopped when the mass is far enough from the starting position that the spring force is stronger than the damper force causing the x velocity to decrease.

The problem with the damper force calculation is that it makes it possible for the damper force to be in the same direction as the velocity.

I have an idea of what might be wrong with the implementation, but I do not know exactly what the correct implementation would be.

image

Parameters used in simulation:

  • springStiffness: 1
  • damperCoefficient: 10
  • initialPositionX: -10
  • initialPositionY: -10
  • initialVelocity: 10
  • initialVelocity: 10
  • The rest are just the default values (I don't think they matter much for showing the problem)

Wrongly defined meter unit in several cases

Several of the _OspModelDescription.xml files contain a unit definition like the following:

<Unit name="m">
    <BaseUnit kg="1" m="1" s="0" A="0" K="0" mol="0" cd="0" rad="0" factor="1.0" offset="0.0"/>
</Unit>

Here, the correct thing would be to set kg="0".

This definition is used in the following cases, as far as I can tell:

  • dp-ship
  • gunnerus-dp
  • open-modelica-thruster

Unable to load "gunnerus-waypoint-following" demo case

Hello,

me and my colleagues are trying to simulate the Gunnerus ship for research purposes and wanted to simulate the waypoint-following demo case. We already simulated other demo cases succesfully, for example "gunnerus-dp" or "construction-vessel". But when loading the waypoint-following demo case we all get the same error:

Cosim Demo App:
Could not create execution from OspSystemStructure.xml file: No resolvers available to handle URI: fmu-proxy://localhost:9090?guid=b71f76f7-b51e-40d5-affb-f63905622e2b

Cosim App:
error: No resolvers available to handle URI: fmu-proxy://localhost:9090?guid=b71f76f7-b51e-40d5-affb-f63905622e2b

As can be seen we tried to simulate it with the demo app and also with the cosim command line interface. We also neither changed the demo case after downloading it nor the cosim demo app or the cosim app.

Maybe someone had the same issue or can direct us towards where the cause of this issue may be? We would really appreciate a response as we are really grasping at straws with this error code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.