# Modeling and Simulation with Modelica

Part A – Modelica Basics

1. Create a function Average4, that returns the average of four Real values.

2. Create a record RecordArrays containing several vectors and matrices:

α vector containing the two Boolean values true and false,

a vector with five Integer values of your choice,

a matrix of three rows and four columns containing Strings of your choice,

a matrix of one row and five columns containing different Real values, also these of your choice

3. Create a model BouncingBall(use the example from the presentation), simulate it and plot the height of the bouncing ball.

4. Make a model SquareSignal with a period of 1s that starts at t = 2.5s. Note that it is possible to use either an equation or an algorithm solution. Hint: an easy way is to use sample(...) to generate events, and define a variable that switches sign at each event.

Part B – RLC Circuits

Design an RLC Ciruit with a DC Power Source using OMEdit and the Modelica analog library. Run the simulation and plot the inductor current and voltage.

Design an RLC Ciruit with an AC Power Source using OMEdit and the modelica analog library. Plot the inductor current for frequencies 10Hz, 100Hz, and 1000Hz.

Part C – PV Array

Design a verification model for a PV Array using the library PVSytems Use the same models and parameter settings with the verification model [login to view URL] of the PVSystems library. Modify the values for the irradiance and temperature blocks and see how these changes are reflected in a change in the PV curve. Use G=600 .... 1400 W/m2 (with step 100W/m2) και Τ= 0 ... 50 οC (with step 10οC). Convert Celsius temperature to match the temperature unit used by the model.

Instructions for submissions

Submit the modelica files used. Submit also a word document:

Describing the models / designs used

The simulation results

( 4 reviews ) Lamia, Greece

Project ID: #18810962

## 2 freelancers are bidding on average €48 for this job

mairajali11

Hello Sir I am Electrical Engineer and can do MATLAB and Modelica related projects, if u r interested kindly text me so that we can further discuss it. Thanks

€66 EUR in 1 day
(0 Reviews)
0.0
L1033547

HI there, i am a mechanical engineer, i have worked on similar problems. i have already done part A of the problem, send me a message and i will do the rest.

€30 EUR in 2 days
(0 Reviews)
0.0