国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

ECM3446代做、代寫Python/C++編程
ECM3446代做、代寫Python/C++編程

時間:2025-02-09  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



ECM3446: CA
This continuous assessment is for the ECM3446 version of the High Performance Computing
module. If you are an undergraduate student you should follow these in- structions. If you are a
student on an MSc programme please refer to the “ECMM461: Continuous assessment 1”
instructions instead.
1 The Atmospheric Boundary Layer
The part of the Earth’s atmosphere nearest the surface is known as the “Atmospheric Boundary
Layer”, and in this part of the atmosphere the wind speed increases with height. This causes
material emitted from a chimney to be advected at di↵erent horizontal speeds depending on its
height. Figure 1 shows material from a chimney being advected by the wind.
Figure 1: Material emitted from a chimney being advected by a horizontal wind
The wind in the Atmospheric Boundary Layer can be approximated as a horizontal velocity which
depends only on the height (z) and zero vertical velocity. The horizontal velocity as a function of height
vx(z) can be represented by a logarithmic profile
(1)
where u is a parameter called the “friction velocity”, z0 is a parameter called the “roughness
length”, and = 0.41 is a constant called Von K´arm´an’s constant.
2 The assignment
In this assignment you will calculate a numerical solution to the advection equation to simulate the
movement of a cloud of material in the atmospheric boundary layer. There are four parts to this assignment:
• Task 1: For the first part of this assignment you will parallelise a program which calculates a
numerical solution to the 2D advection equation. You have been provided with the program
1
-
-ECM3446: CA
and you will need to parallelise it using OpenMP. This part of the assignment is described
in Section 2.1.
• Task 2: For the second part of this assignment you will modify the program to change
the parameters of the test problem into a more realistic configuration. This is described in
Section 2.2.
• Task 3: For the third part of this assignment you will add a logarithmic velocity profile to
the program. This is described in Section 2.3.
• Task 4: For the fourth part of the assignment you will calculate the horizontal profile of the
advected material by calculating a vertical average. This is described in Section 2.4.
This assignment assesses the following Intended Learning Outcomes:
• Demonstrate skills in parallel processing algorithm design and the practical implementation
of such algorithms
• Demonstrate an awareness of numerical e↵ects and the influence of floating point number
representation in high-performance computing applications.
• Interpret an informal requirement specification
• Systematically analyse information and make appropriate design choices
2.1 Task 1: Parallelising the program
The advection equation for a two-dimensional scalar field u(x, y) is
(2)
where vx and vy are the velocities in the x and y direction, respectively. You have been
provided with a C program which calculates a numerical solution to the advection equation
for a two- dimensional scalar field u(x, y) using finite di↵erence approximations. The program
uses one-sided di↵erences to calculate the spatial derivatives
dy (4)
where ui,j is the value of the scalar field u(x, y) at grid point (i, j), dx is the spacing of grid points
in the x direction and dy is the spacing of grid points in the y direction. The solution starts
from specified initial conditions at time t = 0 and is updated from time t to time t + t using
forward-Euler time steps
t (5)
The program uses 1000 ⇥ 1000 grid points covering a unit square computational domain 0 &#***3;
x &#***3; 1.0 and 0 &#***3; y &#***3; 1.0. The initial conditions are a Gaussian given by the expression
(6)
The Gaussian is centred at x0 = 0.1, y0 = 0.1 and has a width x = y = 0.03. The boundary
conditions are u = 0 on all boundaries. The program calculates 1500 time steps, and the time step
size is calculated from the Courant condition with a CFL number of 0.9. The velocities in the x
and y directions are vx = 0.01 and vy = 0.01 respectively.
The first part of the assignment is to parallelise the program provided using OpenMP. There
are 10 loops or loop nests (a loop over j inside a loop over i) in the program and these have been
identified with a comment of the form
2ECM3446: CA
/* LOOP N */
where N is an integer between 1 and 10 inclusive. For each loop or loop nest you should decide
whether it can be correctly parallelised by adding an OpenMP directive:
• If the loop can be correctly parallelised then you should parallelise it by adding an OpenMP
directive, ensuring that all variables are correctly scoped. You do not need to scope variables
which have the const qualifier.
• If the loop cannot be parallelised then you should add a comment in the program to say that
the loop cannot be parallelised and explain why.
To build the serial program in ISCA use the command
gcc -o advection2D -std=c99 advection2D.c -lm
To build the program with OpenMP enabled in ISCA use the command
gcc -fopenmp -o advection2D -std=c99 advection2D.c -lm
A gnuplot script which plot the final values of u(x, y) has been provided.
The parallelised version of the program must produce exactly the same output as
the original program.
2.2 Task 2: Modifying the calculation
In this section you will modify the example program to change the test problem so that it more
closely resembles a cloud of material emitted from a chimney. This requires changing the size of
the computational domain, the initial conditions, the velocities and the number of time steps.
In the following instructions distances are measured in metres (m) and velocities in metres per
second (m/s).
• The test problem uses a computational domain which is a unit square (it covers the range
0 &#***3; x &#***3; 1.0 and 0 &#***3; y &#***3; 1.0). Change the computational domain so that it covers the range
0 &#***3; x &#***3; 30.0 m and 0 &#***3; y &#***3; 30.0 m
• For this calculation we require the Gaussian to be on the left hand side of the domain and
vertically centred. Change the centre of the Gaussian to x0 = 3.0 m, y0 = 15.0 m
• The cloud of material will have a larger vertical extent than horizontal extent. This will be
represented by a Gaussian which has di↵erent widths in the x and y directions. Change the
widths of the Gaussian specified in the initial conditions to x = 1.0 m and y = 5.0 m
• The material in the atmospheric boundary layer advects horizontally but not vertically.
Change the horizontal velocity to vx = 1.0 m/s and change the vertical velocity to vy = 0.
• Change the maximum number of time steps to 800 so that the material does not advect out
of the computational domain.
After you have made these changes re-compile and re-run the program. If necessary update
the OpenMP directives to ensure that the program produces identical results with and without
OpenMP.
Now plot the initial and final values of u(x, y). The initial values are in the file initial.dat
and the final values are in the file final.dat. You can use the example gnuplot script provided
but you will need to change the axis limits to match the new computational domain size. Plots of
the initial and final values of u(x, y) are shown in Figure 2 for comparison.
3ECM3446: CA
Figure 2: Initial (left) and final (right) values of u(x, y) from the calculation in Section 2.2
2.3 Task 3: Adding vertical shear
In this section you will modify the program so that the horizontal velocity varies with height
according to the logarithmic profile given in equation 1. The logarithmic profile should only be
used if z is greater than the roughness length z0. If z > z0 calculate the horizontal velocity using
equation 1, and if z &#***3; z0 set the horizontal velocity to zero. The parameters of the profile should
be set to u⇤ = 0.2 m/s, z0 = 1.0 m and &#***3; = 0.41.
In the program the variable y represents the height z in equation 1. The computational domain,
the initial conditions and the number of time steps should be kept at the values specified in the
previous section (Section 2.2).
Modify the horizontal velocity as described above and re-run the program. If necessary update
the OpenMP directives to ensure that the program produces identical results with and without
OpenMP.
Now plot the final values of u(x, y) (the initial values are the same as in the previous
section). Plots of the initial and final values of u(x, y) are shown in Figure 3.
Figure 3: Initial (left) and final (right) values of u(x, y) from the calculation in Section 2.3
2.4 Task 4: Calculating the vertically averaged distribution
In this last section you should calculate the vertically averaged distribution of u(x, y) at the end
of the calculation in Section 2.3. The vertical average should cover the whole vertical domain but
should not include the boundary values. The code you add to the program does not need to be
4ECM3446: CA
parallelised. Plot the vertically averaged values of u as a function of x using a line
graph.
3 Deliverables
The deliverables for this assignment are the source code for the program with your modifications,
and the four plots showing your results:
1. Source code for the final version of the program. The program should include the OpenMP
directives added in Section 2.1 with any changes required to ensure the modified program
continues to work correctly. The computational domain, the initial conditions, the velocities
and the number of time steps should be set to the values used in Section 2.3.
2. Four plots showing the output from running the program. The required plots are:
• A plot of the initial conditions u(x, y) from Section 2.2
• A plot of the final values of u(x, y) from Section 2.2
• A plot of the final values of u(x, y) from Section 2.3
• A plot showing the vertically averaged profile of u from Section 2.4
The plots may be generated using the gnuplot script provided, or alternative plotting software
of your choice provided the data values in the plot are clearly represented. Your plots should
be delivered as PNG or PDF files.
The deliverables should uploaded to ELE a single zip or tar file containing the
source code for the final version of the program, and the four plots. The deadline for
submission is 12 noon 20 February 2025.
4 Mark scheme
A total of 100 marks are available for this assignment:
1. Task 1: Parallelising the program (30 marks)
(a) For each of the 10 loops or loop nests identified in the program there are two marks to
be awarded according to the following criteria:
• The loop has been correctly identified as either one that can be parallelised or one
that cannot be parallelised (1 mark)
• If the loop can be parallelised then an appropriate OpenMP directive has been
added which unambiguously and correctly scopes all variables. Variables with the
const qualifier do not need to be scoped (1 mark)
OR
• If the loop cannot be parallelised then a comment has been added with a correct
explanation of why the loop cannot be parallelised (1 mark).
(b) An additional 10 marks are awarded if the parallelised program produces results which
exactly match the original serial program.
2. Task 2: Modifying the calculation (20 marks)
10 marks are awarded for correctly modifying the computational domain, the initial conditions
 and the number of time steps, as specified in Section 2.2. 5 marks are awarded for the
plot of the initial conditions and 5 marks are awarded for the plot of the final results.
3. Task 3: Adding vertical shear (25 marks)
20 marks are awarded for correctly modifying the velocity profile as specified in Section 2.3.
5 marks are awarded for the plot of the final results.
5ECM3446: CA
4. Task 4: Calculating the vertically averaged distribution (25 marks)
20 marks are awarded for correctly modifying the program to calculate the vertically averaged
distribution of u as specified in Section 2.4. 5 marks are awarded for the plot of the final
results.


請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當前頁
  • 上一篇:代寫CCBS4020、代做c/c++,Python設計程序
  • 下一篇:代寫INT2067、代做Python編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产日韩精品一区二区| 国产精品99一区| 日韩精品一区中文字幕| 国产一区精品在线| 国产成人短视频| 在线精品日韩| 精品一区久久久久久| 久久国产精品-国产精品| 亚洲一区不卡在线| 人体精品一二三区 | 黄色一级片播放| 久久久视频在线| 欧美精品福利在线| 精品午夜一区二区三区| 日韩一二三在线视频播| 无码人妻精品一区二区三区66| 国产在线精品播放| 国产精品视频免费观看www| 日本高清不卡三区| 97精品在线观看| 精品不卡在线| 国产在线高清精品| 国产精品视频福利| 欧美一级免费看| 97久久精品在线| 中文字幕一区二区中文字幕| 国产无套粉嫩白浆内谢的出处| 91九色偷拍| 一本色道久久99精品综合| 国产熟女高潮视频| 麻豆成人在线看| 欧美激情一区二区三区在线视频| 国产成人精品国内自产拍免费看| 亚洲精品国产suv一区88| 国产精品自产拍高潮在线观看| 国产精品美女免费视频| 免费高清在线观看免费| 国产成人小视频在线观看| 午夜精品一区二区三区av| www.com毛片| 一区二区三区国产福利| 高清欧美性猛交| 色综合久综合久久综合久鬼88 | 日韩国产高清一区| 久久久亚洲欧洲日产国码aⅴ| 亚洲精品国产一区| av动漫在线免费观看| 伊人久久婷婷色综合98网| 国语对白做受xxxxx在线中国| 久久精品一区中文字幕| 激情婷婷综合网| 久久色免费在线视频| 欧美精品一区二区三区四区五区| 国产精品网址在线| 国产中文字幕免费观看| 欧美成人免费在线观看| 国产精品一区视频| 亚洲一区不卡在线| 国产精彩免费视频| 日韩视频专区| 久久综合伊人77777蜜臀| 免费看国产一级片| 在线观看污视频| 成人精品小视频| 午夜精品久久久久久久99黑人| 国产福利片一区二区| 欧洲熟妇精品视频| 国产精品成人免费电影| 分分操这里只有精品| 日韩 欧美 高清| 国产精品私拍pans大尺度在线| 国产私拍一区| 涩涩日韩在线| 国产精品视频区1| 高清不卡日本v二区在线| 欧美一区二区三区免费观看| 久久精品99国产精品酒店日本| 精品亚洲第一| 欧美精品第一页在线播放| 2019日本中文字幕| 欧美中文字幕在线播放| 欧美日韩第一页| 国产高清精品在线观看| 欧美高清性xxxxhdvideosex| 欧美激情精品久久久久久变态| 国产精品999999| 激情六月丁香婷婷| 午夜啪啪福利视频| 国产精品久久久| 99在线看视频| 欧美日韩精品在线一区二区| 欧美激情亚洲另类| 日韩中文字幕久久| 国产日韩在线看| 日本视频精品一区| 久热精品视频在线免费观看| 国产精品678| 女女同性女同一区二区三区91| 亚洲国产精品毛片| 国产精品老牛影院在线观看| 91精品视频网站| 男女视频一区二区三区| 亚洲午夜精品国产| 国产精品女人久久久久久| 91精品国产色综合久久不卡98| 欧美久久久久久久久久久久久| 一本色道久久88亚洲精品综合| 久久精品国产亚洲7777| 国产欧美精品久久久| 日本精品久久久久中文字幕| 欧美xxxx18性欧美| 国产h视频在线播放| 国产乱码精品一区二区三区不卡| 人禽交欧美网站免费| 一区二区三区av| 久久精品亚洲精品| 国产精品a久久久久久| 亚洲欧洲日韩综合二区| 国产精品高潮呻吟久久av黑人| 久久久国内精品| av色综合网| 国内精品国产三级国产在线专| 懂色中文一区二区三区在线视频| 国产精品欧美一区二区| 国产成人av在线| av一本久道久久波多野结衣| 日韩五码在线观看| 亚洲一二区在线| 久久6免费高清热精品| 国产不卡在线观看| 91久久精品在线| 国产精品一区二区三区久久 | 国产乱子伦精品| 欧美丰满熟妇xxxxx| 日韩久久在线| 日韩视频在线观看国产| 一本久道久久综合狠狠爱亚洲精品| 国产mv免费观看入口亚洲| 97精品伊人久久久大香线蕉| 黄色一区三区| 欧美亚洲第一页| 日本精品一区二区三区四区| 一区二区三区av| 欧美精品激情视频| 伊人网在线免费| 亚洲永久在线观看| 亚洲精品一区二区三区蜜桃久| 一区二区三视频| 欧美日韩国产va另类| 国产精品高潮视频| 久久香蕉国产线看观看av| 国产精品日韩在线| 国产精品露脸av在线| 国产精品久久久久久久电影| 久久久精品一区二区三区| 久久精品视频99| 国产精品视频免费观看| 色偷偷偷亚洲综合网另类| 久久久噜噜噜久久| 久久精品成人欧美大片古装| 国产精品久久久一区二区三区| 久久中文久久字幕| 欧美精品久久久久久久免费观看| 欧美激情一二三| 亚洲欧洲在线一区| 日本三级久久久| 欧美亚洲国产成人精品| 精品视频在线观看一区二区| 国产欧美日韩免费看aⅴ视频| jizzjizz国产精品喷水| 久久人妻无码一区二区| 久久久久久免费精品| 国产激情在线看| 色婷婷久久一区二区| 久久成人18免费网站| 亚洲欧洲精品在线| 日本一区二区三区精品视频| 日韩欧美精品免费| 精品视频高清无人区区二区三区| 国产精品一香蕉国产线看观看| 国产精品91免费在线| 日韩中文av在线| 久久夜色精品国产欧美乱| 亚洲综合中文字幕在线| 日韩av一区二区三区在线| 欧美视频免费看欧美视频| 国产素人在线观看| 久久综合狠狠综合久久综青草| 国产成人在线播放| 国产精品视频自拍| 久久久久成人网| 日本精品免费一区二区三区| 黄色免费观看视频网站| 成人国产精品色哟哟| 久久久久久久有限公司| 久久精品国产精品亚洲色婷婷| 国产精品久久久久久av福利| 亚洲一区在线直播| 日韩免费观看av| 极品尤物一区二区三区|