Closed ousi-fk closed 2 years ago
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.
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.
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?
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.
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?
Please continue the discussion by opening a new issue directly on https://github.com/AHaumer/EMOTH.
I am new to OpenModelica and was looking for OpenModelica car models and found this site. I would like to simulate getting the following data, is it possible? ・Speed of a car ・Acceleration performance of a car ・Deceleration performance of a car ・Fuel consumption of a car,etc. I could not find an appropriate place to ask this question, so I asked it here. If there is another appropriate place, please let me know and I will move it.