1. Homepage
  2. Programming
  3. JEIS2004: Systems Design and Computing - A2: Computing Assignment

JEIS2004: Systems Design and Computing - A2: Computing Assignment

Engage in a Conversation
SouthamptonJEIS2004Systems Design and ComputingPython

JEIS2004: Systems Design and Computing CourseNana.COM

A2: Computing Assignment CourseNana.COM

Module Weighting 40% CourseNana.COM

Individual Assignment CourseNana.COM


CourseNana.COM

Submission through blackboard consisting of a single a jupyter notebook (ipynb) report and python (py) file with your functions. CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Introduction CourseNana.COM

  CourseNana.COM

You have been provided with an example set of data from an experiment to determine the roll response of a scale model of container ship.  In this experiment the ship model is force rolled using a counter rotating weights system, which are rotated by a computer-controlled motor. The roll response of the model is recorded against time for a range of frequencies between 0.1Hz and 1.1Hz. An example of a single time trace is shown in figure 1. You are also provided with basic information on the ship model in Table 1. CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Figure 1: Forced roll response of ship model at 0.3 Hz encounter frequency CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Table 1: Ship Model Properties CourseNana.COM

L CourseNana.COM

7.356 m CourseNana.COM

B CourseNana.COM

1.019 m CourseNana.COM

T CourseNana.COM

0.342 m CourseNana.COM

CB CourseNana.COM

0.642 CourseNana.COM

Ñ CourseNana.COM

1.646 m3 CourseNana.COM

I4 CourseNana.COM

273 kgm2 CourseNana.COM

A44 CourseNana.COM

82 kgm2 CourseNana.COM

B44 CourseNana.COM

64 kgm2/s CourseNana.COM

C44 CourseNana.COM

4070 m2/s2 CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Assignment CourseNana.COM

  CourseNana.COM

1)     Download the example data in the file RollExpData.xlsx from blackboard. Use the pandas read_excel function to import the data into a data frame, setting the time column as the index and using the column headings in row 1. CourseNana.COM

[1 mark] CourseNana.COM

  CourseNana.COM

2)     Each data set has a few unwanted signal artefacts such as noise, drift, etc which appear across all the frequency tests in the dataset. Load any one of the frequency tests and develop a signal processing routine to remove any unwanted signal artefacts, whilst retaining the roll response. CourseNana.COM

Determine the amplitude and frequency of any noise in the signal. Then apply your signal processing routine to all the frequency tests in your data set. CourseNana.COM

[9 marks] CourseNana.COM

  CourseNana.COM

3)     Write a function to calculate the root mean squared (RMS) of a signal as defined by the equation below: CourseNana.COM

CourseNana.COM

  CourseNana.COM

Use this function to calculate the RMS of each frequency test in your data set. CourseNana.COM

  CourseNana.COM

Write a function to determine the frequency of the roll response from the peak in the FFT of each signal.  Plot a graph of RMS roll amplitude against frequency in Hz. CourseNana.COM

[4 marks] CourseNana.COM

  CourseNana.COM

4)     Calculate the theoretical damped natural frequency of the system, , and plot this as a vertical line on the graph of RMS roll amplitude against frequency. Note the equation below returns the damped natural frequency in rad/s, so you will need to convert this to Hz using the relationship between circular frequency and frequency ( ). CourseNana.COM

  CourseNana.COM

CourseNana.COM

[2 marks] CourseNana.COM

  CourseNana.COM

5)     Create a state space representation of the equations of motion of the ship model in roll, in matrix form. The equation of motion for the ship model in roll, , is given below: CourseNana.COM

  CourseNana.COM

CourseNana.COM

  CourseNana.COM

Where the terms  are defined in table 1 and  are the first and second time derivatives of the roll displacement. The external force provided by the counter rotating weights is given by . CourseNana.COM

  CourseNana.COM

With the force,  set to zero, set the initial condition to  0. Simulate the free roll response over a period of 60 seconds or until the response has decayed to zero. Plot the resulting roll displacement,  velocity  and acceleration  against time. CourseNana.COM

  CourseNana.COM

6)     Using the find_peaks function from scipy.signal, determine the maxima in the response curve. CourseNana.COM

Calculate the difference between successive maxima, , and plot these against the maxima  . Note: if  is an array of length n,  will be an array of length n-1. CourseNana.COM

  CourseNana.COM

Use linear regression to determine a linear trendline through the data points. The data should pass through the origin. From this graph, determine the damping ratio  , where slope is the slope of the trendline. Calculate the damped natural frequency   where CourseNana.COM

[8 marks] CourseNana.COM

  CourseNana.COM

7)   Using the state space model you developed of the forced roll system. Simulate the roll response of the ship model over a range of frequencies which include the damped natural frequency of the system. You should use the roll force function  , where  is the roll frequency in Hz. Determine the RMS roll response and frequency of the system from the output time histories, using the RMS function you wrote earlier and plot this as another series alongside the experimental data. Make sure the different data sets are clearly labelled and distinguishable. CourseNana.COM

[4 marks] CourseNana.COM

  CourseNana.COM

8)   Modify your model by changing the damping coefficient  to 50%, 75%, 100%, 125% and 150%. For each case evaluate the response of the system and plot the RMS roll response against frequency. CourseNana.COM

  CourseNana.COM

a.     Produce a wire frame plot of the resulting surface, RMS response against damping coefficient  and frequency in Hz. CourseNana.COM

b.     Produce a contour plot of the resulting surface, RMS response against damping coefficient  and frequency in Hz. CourseNana.COM

[4 marks] CourseNana.COM

  CourseNana.COM

9)   Write a short lab report (less than 1000 words) in Jupyter which describes your analysis and presents the main results. Your report should contain the following sections: CourseNana.COM

·       Introduction CourseNana.COM

·       Method CourseNana.COM

·       Results CourseNana.COM

·       Analysis and Discussion CourseNana.COM

·       Conclusions CourseNana.COM

  CourseNana.COM

Your jupyter notebook should call your py file in which you have defined any functions. Your code should run just by loading and running your jupyter file. You should plot any graphs in jupyter rather than in your python file. CourseNana.COM

  CourseNana.COM

Your code will be tested using a different set of experimental data than the one you have been proved with, so ensure that it uses dynamically calculated variables and not hard coded variables. Your python file should only contain function definitions, everything else should be in the jupyter notebook. Marks will be awarded for including examples of the following: CourseNana.COM

·     Headings CourseNana.COM

·     Text emphasis CourseNana.COM

·     Equations CourseNana.COM

·     Tables CourseNana.COM

·     Figures/plotting CourseNana.COM

·     Calling/importing your own functions CourseNana.COM

[8 marks] CourseNana.COM

  CourseNana.COM

Important Notes CourseNana.COM

  CourseNana.COM

You need to submit two files to blackboard, a jupyter notebook (*.ipynb) file and a python (*.py) file. Name these files with your name eg LastnameFirstname.ipynb and LastnameFirstname.py CourseNana.COM

  CourseNana.COM

Please comment each line of your code in the python py file, and where possible provide default values for any functions you define. Only define a function if it does not already exist in the standard libraries, so for example don’t create a new mean function since one already exist in NumPy. Do not create multiple functions that do the same thing, such as calculate the RMS or different versions of the roll state space model. CourseNana.COM

  CourseNana.COM

Where possible you should use NumPy arrays or pandas dataframes. Try to avoid using for or while loops where array operations could be used. CourseNana.COM

  CourseNana.COM

Ensure that all figures have labelled axes, a suitable legend and figure captions or titles. Figures should be produced in monochrome using line types and markers to distinguish each series. CourseNana.COM

  CourseNana.COM

The work must be your own, but you can use the work you have done in previous computing labs. If there is any doubt as to whether the work is your own you will be asked to explain your code, so you should comment your code as you work. CourseNana.COM

  CourseNana.COM

Finally, before you submit your work it is worth resetting the workspace and re-running your files to ensure that it works as you intended. CourseNana.COM

  CourseNana.COM

  CourseNana.COM

CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
Southampton代写,JEIS2004代写,Systems Design and Computing代写,Python代写,Southampton代编,JEIS2004代编,Systems Design and Computing代编,Python代编,Southampton代考,JEIS2004代考,Systems Design and Computing代考,Python代考,Southamptonhelp,JEIS2004help,Systems Design and Computinghelp,Pythonhelp,Southampton作业代写,JEIS2004作业代写,Systems Design and Computing作业代写,Python作业代写,Southampton编程代写,JEIS2004编程代写,Systems Design and Computing编程代写,Python编程代写,Southamptonprogramming help,JEIS2004programming help,Systems Design and Computingprogramming help,Pythonprogramming help,Southamptonassignment help,JEIS2004assignment help,Systems Design and Computingassignment help,Pythonassignment help,Southamptonsolution,JEIS2004solution,Systems Design and Computingsolution,Pythonsolution,