Comments (6)
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.
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.
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.
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.
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.
Please continue the discussion by opening a new issue directly on https://github.com/AHaumer/EMOTH.
from vehicleinterfaces.
Related Issues (20)
- Add milestones and labels HOT 1
- Replace "fake" enumerations with enumerations in VehicleInterfaces.Types HOT 2
- Error in VehicleInterfaces.Mechanics.NormalisedTranslational.Interfaces.Flange documentation
- Remove uses of __Dymola_choicesFromPackage annotation HOT 2
- Reintroduce the idea of expandable connectors for signal buses HOT 10
- Incorporate FlangeWithBearingAdaptor in models with FlangeWithBearing HOT 1
- Restructure examples in Roads HOT 1
- VehicleInterfaces.Drivers.MinimalDriver cannot be instantiated HOT 8
- Load torque parameter description misleading HOT 1
- MultiBodyEnd purpose HOT 2
- Relicense under BSD 3-clause? HOT 5
- Split library into single files
- Rename includeAccessoriesBearing
- Delete obsolete classes
- Change Greek parameter name 'mue' to 'mu'
- UsersGuide.DriverInteractionBus have misleading engineSpeed and vehicleSpeed descriptions HOT 1
- Hide usingMultiBodyXXX when the corresponding includeXXXBearing is set to true HOT 2
- Layout of road functions in Roads.Interfaces.Base HOT 2
- Units error (or incompatibiity?) in VehicleInterfaces\Engines\MinimalEngine.mo: r/min vs 1/min HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vehicleinterfaces.