Coder Social home page Coder Social logo

I have a question. about vehicleinterfaces HOT 6 CLOSED

modelica avatar modelica commented on July 21, 2024
I have a question.

from vehicleinterfaces.

Comments (6)

AHaumer avatar AHaumer commented on July 21, 2024 1

First, please distinguish the language (and librairies) Modelica and tools (OpenModelica and many others).
This repository is about vehicle interfaces a library maintained by the Modelica Association, The library can be used in OpenModelica or any other tool. If your questions are related to the tool OpenModelica, please go to https://github.com/OpenModelica/.
Vehicle interfaces means the library provides a framework to enable people to develop models that fit together using the same interfaces, nearly no ready-to-use models of complete cars.
Since you ask for fuel consumption: Please note that detailed modeling and simulation of combustion engines is a tricky job.
A lot easier is the usage of electric drives for full electric cars.
To answer your questions, you could use a commercial or open source library: https://modelica.org/libraries.html
For one-dimensional simulation of electric cars (i.e. neglecting 3D-effects, without steering) you could use the free library EMOTH.

from vehicleinterfaces.

ousi-fk avatar ousi-fk commented on July 21, 2024

Thank you very much.
I now understand that it is not easy to calculate fuel consumption.
I will try to make use of the library you mentioned, EMOTH.

from vehicleinterfaces.

ousi-fk avatar ousi-fk commented on July 21, 2024

Thank you for the other day.
Since then, I have looked at the EMOTH library you referred me to and read the paper on EMOTH (https://ep.liu.se/ecp/132/030/ecp17132285.pdf).
In the paper, it was mentioned that "The modular concept allows to define independently a track with inclination and road surface, a vehicle and to try different designs of the drive and / or the battery.
I would like to derive the optimal vehicle for each driving cycle and track pattern when varying the driving cycle and track pattern.
How can I change the driving cycle and track pattern in a sample such as EMOTH.Example.TestWithThrottle?

from vehicleinterfaces.

AHaumer avatar AHaumer commented on July 21, 2024

Consider Examples.TestWithDriver:
Klick on drivingCycle and choose the drivingCycle or define your own.
Klick on inclinationData and define inclination either as constant or dependent on position along track.
Klick on rollingReistanceData and define rollingReistance either as constant or dependent on position along track.
Klick on track and define wind speed either as constant or as signal input.

from vehicleinterfaces.

ousi-fk avatar ousi-fk commented on July 21, 2024

Thank you for your answer.
I tried as you instructed and was able to change the drivingCycle.
However, when I tried to run Examples.TestWithDriver, I got the following three outputs.

[1] Script Notification
EMOTH requested package VehicleInterfaces of version 2.0.0. VehicleInterfaces 2.0.1 is used instead which states that it is fully compatible without Conversion Error Notification EMOTH requested package VehicleInterfaces of version 2.0.0.
[2] Conversion Error
[SingleTrackData: 10:3-12:99]: Type mismatch in modifier of component track.inclusionDatatable, declared type Real[:::], got modifier {} of type #T_UNKNOWN#[0].
[3] Conversion Error
Error occurred while flattening model EMOTH.

[1] The Script Notification indicated that it was a problem with the version of VehicleInterfaces, but since it was indicated as compatible, I interpreted it as not being a problem.
[2] Conversion Error stated "parameter Real table[:, :] = fill(0.0, 0, 2)" in the text view.
Also, I was told that I could retry code generation with the old frontend, so I retried with Tools->Options->Simulation->Enable old frontend for code generation, but the output was as follows.
[2] Conversion Error
[SingleTrackData: 10:3-12:99]: Variable fill[0.0,2] not found in scope EMOTH.

I have tried re-downloading, etc., but no improvement, so can you please tell me how to make the change?

from vehicleinterfaces.

tobolar avatar tobolar commented on July 21, 2024

Please continue the discussion by opening a new issue directly on https://github.com/AHaumer/EMOTH.

from vehicleinterfaces.

Related Issues (20)

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.