加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    最新亚洲精品| 性欧美长视频| 久久一二三区| 麻豆一区二区三区| 色婷婷狠狠五月综合天色拍| 日韩精品一级二级| 中文视频一区| 亚洲激情中文| 麻豆精品久久精品色综合| 免费人成精品欧美精品| 九色丨蝌蚪丨成人| 亚洲美女久久| 青青国产91久久久久久| 麻豆理论在线观看| 五月亚洲婷婷| 国产传媒av在线| 成人vr资源| 亚洲巨乳在线| 中文国产一区| 国产一区二区三区日韩精品| 黄色成人在线网站| 国内精品亚洲| 亚洲一区二区毛片| 天堂综合网久久| 日韩和欧美的一区| 国产综合欧美| 一区二区中文字| www.国产精品| 国产一区激情| 国产精品美女在线观看直播| 成人国产在线| www在线观看黄色| 久久不射中文字幕| 狠狠88综合久久久久综合网| 久久青草久久| 欧美日韩综合| 久久字幕精品一区| 亚洲成人毛片| 91成人在线| 综合av在线| 亚洲一级网站| 亚洲福利一区| 久久性感美女视频| 日本久久成人网| 色婷婷综合久久久久久| 精品久久不卡| 一区二区中文字| 日韩黄色免费电影| 久久精品亚洲一区二区| 国产精品亚洲综合色区韩国| 久久亚洲风情| 久久国产精品99国产| 老司机久久99久久精品播放免费| 亚洲一区成人| 玖玖玖国产精品| 日本一本不卡| 激情欧美一区| 不卡日本视频| 最新日韩欧美| 久久av最新网址| 国产精品videosex性欧美| 狼人综合视频| 亚洲精品小说| 夜夜嗨一区二区| 亚洲一区二区三区高清| 蜜臀久久99精品久久久久宅男| 国产精品久久久久久久久久10秀 | 伊人国产精品| 婷婷综合成人| 少妇高潮一区二区三区99| 免费视频久久| 蜜桃视频一区二区三区在线观看| 日韩av在线播放网址| 欧美色网一区| 欧美资源在线| 在线视频cao| 日韩免费在线电影| 中文精品电影| 7777精品| 波多野结衣在线观看一区二区| 亚洲欧美不卡| 91精品xxx在线观看| 日本在线播放一区二区三区| 欧美一区一区| 美女网站一区二区| 欧美日本二区| 我要色综合中文字幕| 亚洲高清av| 蜜桃传媒麻豆第一区在线观看| 亚洲日本网址| 欧美激情四色| 第四色中文综合网| 亚洲精品1234| 日本少妇一区| 国产精品视频一区二区三区| 欧美日韩调教| 日韩精品一级| 日韩成人一级大片| 久久精选视频| 免费观看日韩电影| 一本综合久久| 午夜视频在线观看精品中文| 性欧美69xoxoxoxo| 欧美日韩国产v| 高清久久精品| 欧美日韩一二三四| 欧美日韩国产观看视频| 影音先锋日韩在线| 99精品在线免费在线观看| 蜜桃av一区二区在线观看| 亚洲日本免费| 人人狠狠综合久久亚洲婷| 性一交一乱一区二区洋洋av| 国产日韩一区二区三区在线播放| 天美av一区二区三区久久| 精品一区三区| 亚洲tv在线| 秋霞一区二区三区| 噜噜噜久久亚洲精品国产品小说| 久久国产麻豆精品| 国产精品流白浆在线观看| 蜜桃av一区二区三区| aa亚洲一区一区三区| 欧美伦理在线视频| 精品亚洲a∨| 亚洲视频一起| 国产精品久久观看| 国产精品免费大片| 伊人色**天天综合婷婷| 一区二区三区高清视频在线观看| 视频亚洲一区二区| 日韩成人精品一区二区| 999色成人| 99在线精品视频在线观看| 六月丁香综合在线视频| 国产91一区| 美女视频一区在线观看| 色哟哟精品丝袜一区二区| 91久久久久久白丝白浆欲热蜜臀| 精品国产乱码久久久久久樱花| 欧美高清在线| 久久国产精品美女| 国产精品25p| 天堂精品在线视频| 成人亚洲欧美| 国产劲爆久久| 成人在线黄色| 久久精品国语| 久久精品一区二区三区中文字幕| 久久久久久久久久久妇女| 久久三级毛片| 不卡在线一区| 欧美激情无毛| 日本大胆欧美人术艺术动态| 欧美男男gaytwinkfreevideos| 视频精品一区二区| 日韩av电影免费观看高清完整版| 国产精品麻豆久久| swag国产精品一区二区| 欧美亚洲黄色| 亚洲午夜黄色| 你懂的国产精品永久在线| 丝袜国产日韩另类美女| 日韩成人伦理电影在线观看| 国产精品久久久久久麻豆一区软件 | 久久99视频| 91亚洲国产高清| 欧美顶级毛片在线播放| 国产极品一区| 最新日韩在线| 九九九九九九精品任你躁| 日本精品在线中文字幕| 欧美日韩国产一区二区三区不卡| 欧美黄色大片网站| 亚洲黄色中文字幕| 色老板在线视频一区二区| 在线精品一区二区| 免费高清在线一区| 精品在线网站观看| 欧美国产激情| 亚洲日本天堂| 国产高清一区| 日韩在线精品强乱中文字幕| 四虎国产精品免费久久| 亚洲免费精品| 91精品久久久久久综合五月天| 麻豆成人综合网| 91欧美大片| 欧美美女一区| swag国产精品一区二区| 综合久久婷婷| 午夜精品成人av| 国产视频一区欧美| 日韩精品午夜| 亚洲精品亚洲人成在线| 久久天天久久| 亚洲伊人av| 亚洲美女视频在线免费观看 | 日韩在线视频一区二区三区| 国产日韩1区|