1 |
A Template-Based Java Code Generator for OpenModelica and MetaModelicaMunisamy, Manokar January 2014 (has links)
The current OpenModelica Complier (OMC) translates Modelica models into executable Ccodethrough several stages. The Code Generator is the final stage of the compiler whichgenerates target C-code from the optimized sorted equations. Recently, the Code Generator inOMC has been rewritten using the OpenModelica text template language. This gives a moreconcise and easier to understand code generator. Modeling and simulation is becomingincreasingly used in several application areas. There is demand for the OpenModelicaComplier (OMC) to generate code in languages like C#, CSharp, XML, JAVA and so on. Inthis thesis work, we implement a Java code generator to translate the internal equation-basedmodels in OpenModelica and its extension MetaModelica into a Java code representation. Tocreate the Java code generator we used the OpenModelica text template language, also calledSusan. This work is an important step on the way to finalize a full version of a Java CodeGenerator for the OpenModelica Complier (OMC).
|
2 |
Requirement Verification in Modelica For a Small Scale Network SimulationLi, James Jizhi January 2015 (has links)
The usage of computer networks has increased enormously recently due to many benefits; it facilitates data distribution speed, long distance communication and industrial system control. Due to these reasons, industry systems have started to use computer networks for system control and data transmission. Meanwhile, the limitations of network devices also raise many challenges for network system configuration. To have the best optimized network system, we need to study the network system by performing experiments. However, experiments on the real systems could be expensive and dangerous. Therefore, we need a model to represent the behaviours of the system. This thesis work uses object-oriented acasual modelling language Modelica to model a local area network system, and the development is performed in OpenModelica, an open source Modelica-based modelling and simulation environment. The simulation results are analysed and verified by using a separate requirement verification model.
|
3 |
Simulation of Modelica Models on the CUDA ArchitectureÖstlund, Per January 2009 (has links)
<p>Simulations are very important for many reasons, and finding ways of accelerating simulations are therefore interesting. In this thesis the feasibility of automatically generating simulation code for a limited set of Modelica models that can be executed on NVIDIAs CUDA architecture is studied. The OpenModelica compiler, an open-source Modelica compiler, was for this purpose extended to generate CUDA code.</p><p>This thesis presents an overview of the CUDA architecture, and looks at the problems that need to be solved to generate efficient simulation code for this architecture. Methods of finding parallelism in models that can be used on the highly parallel CUDA architecture are shown, and methods of efficiently using the available memory spaces on the architecture are also presented.</p><p>This thesis shows that it is possible to generate CUDA simulation code for the set of Modelica models that were chosen. It also shows that for models with a large amount of parallelism it is possible to get significant speedups compared with simulation on a normal processor, and a speedup of 4.6 was reached for one of the models used in the thesis. Several suggestions on how the CUDA architecture can be used even more efficiently for Modelica simulations are also given.</p>
|
4 |
Att lösa reglertekniska problem med ModelicaHagernäs, Mikael January 2009 (has links)
<p>The purpose of this thesis is to examine and present the oportunities of solving</p><p>control problems using Modelica. This is done by creating some demonstration</p><p>examples with exercises. These examples should cover as many types of control</p><p>problems as possible. The exercises are aimed for people with basic knowledge</p><p>in modeling and automatic control engineering but with little or no knowledge</p><p>in Modelica. There are different types of Modelica implementations and the ones</p><p>used in this thesis are OpenModelica and MathModelica.</p>
|
5 |
Att lösa reglertekniska problem med ModelicaHagernäs, Mikael January 2009 (has links)
The purpose of this thesis is to examine and present the oportunities of solving control problems using Modelica. This is done by creating some demonstration examples with exercises. These examples should cover as many types of control problems as possible. The exercises are aimed for people with basic knowledge in modeling and automatic control engineering but with little or no knowledge in Modelica. There are different types of Modelica implementations and the ones used in this thesis are OpenModelica and MathModelica.
|
6 |
Design and Implementation of a User Friendly OpenModelica - Python interfaceGaneson, Anand January 2012 (has links)
How can Python users be empowered with the robust simulation, compilation and scripting abilities of a non-proprietary object-oriented, equation based modeling language such as Modelica? The immediate objective of this thesis work is to develop an application programming interface for the OpenModelica modeling and simulation environment that would bridge the gap between the two agile programming languages Python and Modelica. The Python interface to OpenModelica OMPython, is both a tool and a functional library that allows Python users to realize the full capabilities of Open- Modelica’s scripting and simulation environment requiring minimal setup actions. OMPython is designed to combine both simulation and model building. Thus domain experts (people writing the models) and computational engineers (people writing the solver code) can work on one unified tool that is industrially viable for optimization of Modelica models, while offering a flexible platform for algorithm development and research.
|
7 |
An LLVM backend for the Open Modelica Compiler / Konstruktion av en LLVM-baserad backend för OpenModelica-kompilatornTinnerholm, John January 2019 (has links)
This thesis presents the construction and evaluation of an LLVM based codegenerator, an LLVM backend. The introduction of an LLVM based backend into the OpenModelica compiler was done to examine the advantages and disadvantages of compiling Modelica and MetaModelica to LLVM IR instead of C. To answer this question, the LLVM backend was compared against the existing interpreter and C code generator using four different schemes with corresponding cases. This comparison was made both for both optimised and unoptimised code. From the experiments, it was concluded that an LLVM backend can be used to improve runtime and compile time performance in the OpenModelica Interactive environment.
|
8 |
Numerické modelování vstupní/výstupní komory vodního mezichladiče stlačeného vzduchu s následnou analytickou interpretací výsledků / Numerical modeling of the water cooled charge air cooler in/out chamber leading to development of the analytical modelLasota, Martin January 2016 (has links)
Diploma thesis deals with numerical simulations of an air flow in a water cooled charge air cooler (WCAC), specifically with pressure drops in inlet/outlet chamber. The simulations have been performed in a proprietary software Star-CCM+. Physical phenomena have been solved by the Reynolds-averaged Navier-Stokes (RANS) equations and consequently a matrix of pressure drops for miscellaneous variations of chamber's geometry and the initial flow conditions has been created. Based on the CFD results, dependence between calculated pressure drops and changing parameters has been analyzed and finally a 1D solver has been developed and implemented into a software OpenModelica.
|
9 |
A Template-Based Code Generator for the OpenModelica CompilerLindberg, Rickard January 2010 (has links)
<p>A new, template-based code generator has been implemented for the OpenModelica compiler. All data needed for target code generation has been collected in a new data structure that is then sent to templates which generate target code based on that data. This simplifies the implementation of the code generator and also makes it possible to write a different set of templates to generate target code in a different language.</p><p>The new, template-based code generator currently only supports generation of target code for simulating Modelica models. In that scenario it translates models roughly at the same speed as the old code generator.</p>
|
10 |
A Template-Based Code Generator for the OpenModelica CompilerLindberg, Rickard January 2010 (has links)
A new, template-based code generator has been implemented for the OpenModelica compiler. All data needed for target code generation has been collected in a new data structure that is then sent to templates which generate target code based on that data. This simplifies the implementation of the code generator and also makes it possible to write a different set of templates to generate target code in a different language. The new, template-based code generator currently only supports generation of target code for simulating Modelica models. In that scenario it translates models roughly at the same speed as the old code generator.
|
Page generated in 0.0145 seconds