使用波动方程式的拟真和互动式水面模拟课件.pptx

上传人(卖家):三亚风情 文档编号:3351658 上传时间:2022-08-22 格式:PPTX 页数:21 大小:1.45MB
下载 相关 举报
使用波动方程式的拟真和互动式水面模拟课件.pptx_第1页
第1页 / 共21页
使用波动方程式的拟真和互动式水面模拟课件.pptx_第2页
第2页 / 共21页
使用波动方程式的拟真和互动式水面模拟课件.pptx_第3页
第3页 / 共21页
使用波动方程式的拟真和互动式水面模拟课件.pptx_第4页
第4页 / 共21页
使用波动方程式的拟真和互动式水面模拟课件.pptx_第5页
第5页 / 共21页
点击查看更多>>
资源描述

1、IntroductionlWhat can fluid simulation do for us?lWhat is the difficulty of the topic?ObjectivelReal-time and visual qualitylInteract with usersHeight Field present water surface as a 2D function h(x,y)2D array hi,jxyhhijHeight FieldlPros:Process from 3D to 2D reduce computational timelCons:One loca

2、tion(x,y)maps to exactly one height no breaking wavesHello World!AlgorithmlUse 2 arrays ANM,BNM of the same sizelInitialize Aij with arbitrary valueslInitialize Bij with 0lloop forall i,j do Bi,j+=(Ai-1,j+Ai+1,j+Ai,j-1 +Ai,j+1)/4-Ai,j;forall i,j do Bi,j*=0.99;forall i,j do Ai,j+=Bi,j;endloopAlgorith

3、mlIt simulate the wave propagation phenomenontravel directionPros and ConslPros:1).Simple 2).Computational time is independent of wave sourcelCons:1).Unnatural shape of wave propagation 2).Slow wave propagationdemoAddition of Sine WavesGoverning Equationl lh:height of water surface A:amplitude :angu

4、lar velocity t:time :phase :wave length f:frequency)cos(0iiisourceNumitwAhAlgorithmlsummate all sine waveslv=x f is a constant,and increases with tlPhase increases constantly to animate wave propagationPros and ConslPros:Better look of shape of wave propagationlCons:Computational time is proportiona

5、l to wave source numberdemoWave EquationGoverning Equation)yhxh(cth2222222h:height of water surfacet:timec:velocityx:position of x directiony:position of y directionDampinglWith dampinglWhere k is damping factor)yhxh(cthkth2222222Finite Differencehh)f(xh)f(xfii2iiih)h)f(x)2f(xh)f(x(22hfWhere h is a

6、insignificant and non-zero valueDiscrete Wave Equationyxyhhhyhxhhhxhthhhthnyxnyxnyxnyxnyxnyxnyxnyxnyx)(2)(2)(221,1,2221,1,2221,1,22Discrete Wave Equation)4(214()(1()4()(1(,1,11,11,11,1,1,1,1,1222,1,1,1,1222,tyxtyxtyxtyxtyxtyxtyxtyxtyxtyxttyxtyxtyxttyxtyxtyxtyxtyxtyxttyxtyxtyxttyxhhhhhhhhhhxtchhtkhho

7、rhhhhhxtchhtkhhstabilitylHow to choose?lCourant-Friedrichs-Lewy stability condition holds which says that information must not travel more than one grid cell per time step,i.e.c t x222xtcResultlCPU:AMD Athlon 3500+2.2 GHZlGraphics Card:Radeon HD 3650lRAM:1 GlAbout 60 fps in grid size of 360 x 360ldemo 1 demo 2ENDvThanks for listening.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 办公、行业 > 各类PPT课件(模板)
版权提示 | 免责声明

1,本文(使用波动方程式的拟真和互动式水面模拟课件.pptx)为本站会员(三亚风情)主动上传,163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
2,用户下载本文档,所消耗的文币(积分)将全额增加到上传者的账号。
3, 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(发送邮件至3464097650@qq.com或直接QQ联系客服),我们立即给予删除!


侵权处理QQ:3464097650--上传资料QQ:3464097650

【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。


163文库-Www.163Wenku.Com |网站地图|