import{_ as n,c as a,b as Q,d as t,a as l,o as m}from"./app-CWN0jXOJ.js";const e="/images/2014/08/sph_1.gif",d="/images/2014/08/sph_2.jpg",r="/images/2014/08/sph_3.jpg",s="/images/2014/08/sph_4.jpg",o="/images/2014/08/sph_8.gif",g="/images/2014/08/sph_10.gif",i={},h={align:"center"},H={align:"center",class:"invisibletable"},p={valign:"center"},L={class:"MathJax",jax:"SVG",style:{position:"relative"}},u={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"2.262ex",height:"1.181ex",role:"img",focusable:"false",viewBox:"0 -511 1000 522","aria-hidden":"true"},f={class:"MathJax",jax:"SVG",style:{position:"relative"}},M={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"2.262ex",height:"1.181ex",role:"img",focusable:"false",viewBox:"0 -511 1000 522","aria-hidden":"true"},x={class:"MathJax",jax:"SVG",style:{position:"relative"}},w={style:{"vertical-align":"0"},xmlns:"http://www.w3.org/2000/svg",width:"2.378ex",height:"1.545ex",role:"img",focusable:"false",viewBox:"0 -683 1051 683","aria-hidden":"true"},c={class:"MathJax",jax:"SVG",style:{position:"relative"}},Z={style:{"vertical-align":"-0.464ex"},xmlns:"http://www.w3.org/2000/svg",width:"2.978ex",height:"2.059ex",role:"img",focusable:"false",viewBox:"0 -705 1316.2 910","aria-hidden":"true"},V={class:"MathJax",jax:"SVG",style:{position:"relative"}},v={style:{"vertical-align":"0"},xmlns:"http://www.w3.org/2000/svg",width:"2.378ex",height:"1.545ex",role:"img",focusable:"false",viewBox:"0 -683 1051 683","aria-hidden":"true"},y={class:"MathJax",jax:"SVG",style:{position:"relative"}},D={style:{"vertical-align":"-0.339ex"},xmlns:"http://www.w3.org/2000/svg",width:"3.324ex",height:"2.79ex",role:"img",focusable:"false",viewBox:"0 -1083 1469.2 1233","aria-hidden":"true"},b={class:"MathJax",jax:"SVG",style:{position:"relative"}},j={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"10.482ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 4633.2 1000","aria-hidden":"true"},C={class:"MathJax",jax:"SVG",style:{position:"relative"}},k={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.052ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 465 453","aria-hidden":"true"},B={class:"MathJax",jax:"SVG",style:{position:"relative"}},R={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"7.144ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 3157.8 1000","aria-hidden":"true"},A={class:"MathJax",jax:"SVG",style:{position:"relative"}},O={style:{"vertical-align":"-0.025ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.294ex",height:"1.025ex",role:"img",focusable:"false",viewBox:"0 -442 572 453","aria-hidden":"true"},S={class:"MathJax",jax:"SVG",display:"true",width:"full",style:{"min-width":"51.234ex",position:"relative"}},J={style:{"vertical-align":"-1.978ex","min-width":"51.234ex"},xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"5.088ex",role:"img",focusable:"false","aria-hidden":"true"},G={class:"MathJax",jax:"SVG",style:{position:"relative"}},z={style:{"vertical-align":"-0.464ex"},xmlns:"http://www.w3.org/2000/svg",width:"17.513ex",height:"2.351ex",role:"img",focusable:"false",viewBox:"0 -833.9 7740.6 1038.9","aria-hidden":"true"},X={class:"MathJax",jax:"SVG",style:{position:"relative"}},P={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"34.781ex",height:"2.452ex",role:"img",focusable:"false",viewBox:"0 -833.9 15373.2 1083.9","aria-hidden":"true"},Y={class:"MathJax",jax:"SVG",style:{position:"relative"}},E={style:{"vertical-align":"-0.075ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.885ex",height:"1.62ex",role:"img",focusable:"false",viewBox:"0 -683 833 716","aria-hidden":"true"},N={class:"MathJax",jax:"SVG",style:{position:"relative"}},q={style:{"vertical-align":"-0.023ex"},xmlns:"http://www.w3.org/2000/svg",width:"1.176ex",height:"1.593ex",role:"img",focusable:"false",viewBox:"0 -694 520 704","aria-hidden":"true"},F={class:"MathJax",jax:"SVG",display:"true",width:"full",style:{"min-width":"37.094ex",position:"relative"}},I={style:{"vertical-align":"-2.016ex","min-width":"37.094ex"},xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"5.163ex",role:"img",focusable:"false","aria-hidden":"true"},K={class:"MathJax",jax:"SVG",style:{position:"relative"}},U={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"13.185ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 5827.9 1000","aria-hidden":"true"},W={class:"MathJax",jax:"SVG",display:"true",width:"full",style:{"min-width":"39.119ex",position:"relative"}},$={style:{"vertical-align":"-2.016ex","min-width":"39.119ex"},xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"5.163ex",role:"img",focusable:"false","aria-hidden":"true"},_={class:"MathJax",jax:"SVG",style:{position:"relative"}},Q1={style:{"vertical-align":"-0.075ex"},xmlns:"http://www.w3.org/2000/svg",width:"3.581ex",height:"1.695ex",role:"img",focusable:"false",viewBox:"0 -716 1583 749","aria-hidden":"true"},T1={class:"MathJax",jax:"SVG",style:{position:"relative"}},a1={style:{"vertical-align":"0"},xmlns:"http://www.w3.org/2000/svg",width:"1.697ex",height:"1.62ex",role:"img",focusable:"false",viewBox:"0 -716 750 716","aria-hidden":"true"},t1={class:"MathJax",jax:"SVG",style:{position:"relative"}},m1={style:{"vertical-align":"0"},xmlns:"http://www.w3.org/2000/svg",width:"1.697ex",height:"1.62ex",role:"img",focusable:"false",viewBox:"0 -716 750 716","aria-hidden":"true"},l1={class:"MathJax",jax:"SVG",style:{position:"relative"}},n1={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"7.178ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 3172.7 1000","aria-hidden":"true"},e1={class:"MathJax",jax:"SVG",style:{position:"relative"}},d1={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"5.169ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 2284.7 1000","aria-hidden":"true"},r1={class:"MathJax",jax:"SVG",style:{position:"relative"}},s1={style:{"vertical-align":"0"},xmlns:"http://www.w3.org/2000/svg",width:"1.697ex",height:"2.532ex",role:"img",focusable:"false",viewBox:"0 -1119 750 1119","aria-hidden":"true"},o1={class:"MathJax",jax:"SVG",style:{position:"relative"}},g1={style:{"vertical-align":"-0.075ex"},xmlns:"http://www.w3.org/2000/svg",width:"5.216ex",height:"2.606ex",role:"img",focusable:"false",viewBox:"0 -1119 2305.4 1152","aria-hidden":"true"},i1={class:"MathJax",jax:"SVG",style:{position:"relative"}},h1={style:{"vertical-align":"0"},xmlns:"http://www.w3.org/2000/svg",width:"1.697ex",height:"1.62ex",role:"img",focusable:"false",viewBox:"0 -716 750 716","aria-hidden":"true"},H1={class:"MathJax",jax:"SVG",display:"true",width:"full",style:{"min-width":"64.233ex",position:"relative"}},p1={style:{"vertical-align":"-5.159ex","min-width":"64.233ex"},xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"11.45ex",role:"img",focusable:"false","aria-hidden":"true"},L1={class:"MathJax",jax:"SVG",style:{position:"relative"}},u1={style:{"vertical-align":"-0.075ex"},xmlns:"http://www.w3.org/2000/svg",width:"2.872ex",height:"1.961ex",role:"img",focusable:"false",viewBox:"0 -833.9 1269.6 866.9","aria-hidden":"true"},f1={class:"MathJax",jax:"SVG",style:{position:"relative"}},M1={style:{"vertical-align":"0"},xmlns:"http://www.w3.org/2000/svg",width:"1.885ex",height:"1.62ex",role:"img",focusable:"false",viewBox:"0 -716 833 716","aria-hidden":"true"},x1={class:"MathJax",jax:"SVG",style:{position:"relative"}},w1={style:{"vertical-align":"-0.075ex"},xmlns:"http://www.w3.org/2000/svg",width:"5.404ex",height:"1.62ex",role:"img",focusable:"false",viewBox:"0 -683 2388.4 716","aria-hidden":"true"},c1={class:"MathJax",jax:"SVG",display:"true",width:"full",style:{"min-width":"37.59ex",position:"relative"}},Z1={style:{"vertical-align":"-2.189ex","min-width":"37.59ex"},xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"5.509ex",role:"img",focusable:"false","aria-hidden":"true"},V1={class:"MathJax",jax:"SVG",style:{position:"relative"}},v1={style:{"vertical-align":"-0.566ex"},xmlns:"http://www.w3.org/2000/svg",width:"13.185ex",height:"2.262ex",role:"img",focusable:"false",viewBox:"0 -750 5827.9 1000","aria-hidden":"true"},y1={class:"MathJax",jax:"SVG",display:"true",width:"full",style:{"min-width":"41.274ex",position:"relative"}},D1={style:{"vertical-align":"-2.189ex","min-width":"41.274ex"},xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"5.509ex",role:"img",focusable:"false","aria-hidden":"true"};function b1(j1,T){return m(),a("div",null,[T[100]||(T[100]=Q("h1",{id:"sph算法简介-一-数学基础",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#sph算法简介-一-数学基础"},[Q("span",null,"SPH算法简介(一): 数学基础")])],-1)),T[101]||(T[101]=Q("p",null,[t("SPH("),Q("a",{href:"http://en.wikipedia.org/wiki/Smoothed_Particle_Hydrodynamics",target:"_blank",rel:"noopener noreferrer"},"Smoothed Particle Hydrodynamics"),t(")算法是一种流体模拟算法,他的特点是简单快速,可以用在例如游戏这样的实时的交互软件中。SPH算法虽然简单,但要完全搞明白其中的原理和实现方法,也不是易事,写这个系列希望能全面介绍一下相关的内容,如果你搜索到这里,可以仔细看一下这个系列,希望能帮到你。"),Q("br"),t(" 烟雾、海浪、水滴…,这些司空见怪的自然现象其实有着非常复杂的数学规律,对于流体的研究,有两种完全不同的视角,分别是欧拉视角和拉格朗日视角。欧拉视角的坐标系是固定的,如同站在河边观察河水的流动一样,用这种视角分析流体需要建立网格单元,还会涉及到有限元等复杂的工程方法,一般用在离线的应用中。而拉格朗日视角则将流体视为流动的单元,例如将一片羽毛放入风中,那么羽毛的轨迹可以帮我们指示空气的流动规律。")],-1)),T[102]||(T[102]=Q("figure",null,[Q("img",{src:e,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption",null,"欧拉视角 和 拉格朗日视角")],-1)),T[103]||(T[103]=Q("p",null,"SPH算法是典型的拉格朗日视角,它的基本原理就是通过粒子模拟流体的运动规律,然后再转换成网格进行流体渲染。",-1)),Q("div",h,[Q("table",H,[Q("tbody",null,[Q("tr",p,[T[4]||(T[4]=Q("td",null,[Q("img",{src:d})],-1)),Q("td",null,[Q("p",null,[Q("mjx-container",L,[(m(),a("svg",u,T[0]||(T[0]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mo"},[Q("path",{"data-c":"2192",d:"M56 237T56 250T70 270H835Q719 357 692 493Q692 494 692 496T691 499Q691 511 708 511H711Q720 511 723 510T729 506T732 497T735 481T743 456Q765 389 816 336T935 261Q944 258 944 250Q944 244 939 241T915 231T877 212Q836 186 806 152T761 85T740 35T732 4Q730 -6 727 -8T711 -11Q691 -11 691 0Q691 7 696 25Q728 151 835 230H70Q56 237 56 250Z"})])])],-1)]))),T[1]||(T[1]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mo",{stretchy:"false"},"→")])],-1))])])]),T[5]||(T[5]=Q("td",null,[Q("img",{src:r})],-1)),Q("td",null,[Q("p",null,[Q("mjx-container",f,[(m(),a("svg",M,T[2]||(T[2]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mo"},[Q("path",{"data-c":"2192",d:"M56 237T56 250T70 270H835Q719 357 692 493Q692 494 692 496T691 499Q691 511 708 511H711Q720 511 723 510T729 506T732 497T735 481T743 456Q765 389 816 336T935 261Q944 258 944 250Q944 244 939 241T915 231T877 212Q836 186 806 152T761 85T740 35T732 4Q730 -6 727 -8T711 -11Q691 -11 691 0Q691 7 696 25Q728 151 835 230H70Q56 237 56 250Z"})])])],-1)]))),T[3]||(T[3]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mo",{stretchy:"false"},"→")])],-1))])])]),T[6]||(T[6]=Q("td",null,[Q("img",{src:s})],-1))])])])]),T[104]||(T[104]=Q("hr",null,null,-1)),T[105]||(T[105]=Q("p",null,"在正式开始之前,需要把SPH算法涉及到的相关数学概念介绍一下,这些概念基本上都是大学数学中的内容,所以不用紧张,翻翻书就能想起来。",-1)),T[106]||(T[106]=Q("h4",{id:"标量场和矢量场",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#标量场和矢量场"},[Q("span",null,[Q("strong",null,"标量场和矢量场")])])],-1)),Q("p",null,[T[15]||(T[15]=t("如果空间区域内一点")),Q("mjx-container",x,[(m(),a("svg",w,T[7]||(T[7]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D440",d:"M289 629Q289 635 232 637Q208 637 201 638T194 648Q194 649 196 659Q197 662 198 666T199 671T201 676T203 679T207 681T212 683T220 683T232 684Q238 684 262 684T307 683Q386 683 398 683T414 678Q415 674 451 396L487 117L510 154Q534 190 574 254T662 394Q837 673 839 675Q840 676 842 678T846 681L852 683H948Q965 683 988 683T1017 684Q1051 684 1051 673Q1051 668 1048 656T1045 643Q1041 637 1008 637Q968 636 957 634T939 623Q936 618 867 340T797 59Q797 55 798 54T805 50T822 48T855 46H886Q892 37 892 35Q892 19 885 5Q880 0 869 0Q864 0 828 1T736 2Q675 2 644 2T609 1Q592 1 592 11Q592 13 594 25Q598 41 602 43T625 46Q652 46 685 49Q699 52 704 61Q706 65 742 207T813 490T848 631L654 322Q458 10 453 5Q451 4 449 3Q444 0 433 0Q418 0 415 7Q413 11 374 317L335 624L267 354Q200 88 200 79Q206 46 272 46H282Q288 41 289 37T286 19Q282 3 278 1Q274 0 267 0Q265 0 255 0T221 1T157 2Q127 2 95 1T58 0Q43 0 39 2T35 11Q35 13 38 25T43 40Q45 46 65 46Q135 46 154 86Q158 92 223 354T289 629Z"})])])],-1)]))),T[8]||(T[8]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"M")])],-1))]),T[16]||(T[16]=t(",都有一个确定的数量")),Q("mjx-container",c,[(m(),a("svg",Z,T[9]||(T[9]=[l('',1)]))),T[10]||(T[10]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msub",null,[Q("mi",null,"f"),Q("mi",null,"M")])])],-1))]),T[17]||(T[17]=t(",则称这个空间区域内确定了一个标量场,如果空间区域内任意一点")),Q("mjx-container",V,[(m(),a("svg",v,T[11]||(T[11]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D440",d:"M289 629Q289 635 232 637Q208 637 201 638T194 648Q194 649 196 659Q197 662 198 666T199 671T201 676T203 679T207 681T212 683T220 683T232 684Q238 684 262 684T307 683Q386 683 398 683T414 678Q415 674 451 396L487 117L510 154Q534 190 574 254T662 394Q837 673 839 675Q840 676 842 678T846 681L852 683H948Q965 683 988 683T1017 684Q1051 684 1051 673Q1051 668 1048 656T1045 643Q1041 637 1008 637Q968 636 957 634T939 623Q936 618 867 340T797 59Q797 55 798 54T805 50T822 48T855 46H886Q892 37 892 35Q892 19 885 5Q880 0 869 0Q864 0 828 1T736 2Q675 2 644 2T609 1Q592 1 592 11Q592 13 594 25Q598 41 602 43T625 46Q652 46 685 49Q699 52 704 61Q706 65 742 207T813 490T848 631L654 322Q458 10 453 5Q451 4 449 3Q444 0 433 0Q418 0 415 7Q413 11 374 317L335 624L267 354Q200 88 200 79Q206 46 272 46H282Q288 41 289 37T286 19Q282 3 278 1Q274 0 267 0Q265 0 255 0T221 1T157 2Q127 2 95 1T58 0Q43 0 39 2T35 11Q35 13 38 25T43 40Q45 46 65 46Q135 46 154 86Q158 92 223 354T289 629Z"})])])],-1)]))),T[12]||(T[12]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"M")])],-1))]),T[18]||(T[18]=t(",都有一个确定的向量")),Q("mjx-container",y,[(m(),a("svg",D,T[13]||(T[13]=[l('',1)]))),T[14]||(T[14]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("msub",null,[Q("mi",null,"F"),Q("mi",null,"M")]),Q("mo",{stretchy:"false"},"→")])])])],-1))]),T[19]||(T[19]=t(",则称这空间区域内确定了一个矢量场。例如,液体中的密度,就是标量场,而速度,就是矢量场"))]),T[107]||(T[107]=Q("h4",{id:"偏导数",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#偏导数"},[Q("span",null,[Q("strong",null,"偏导数")])])],-1)),Q("p",null,[T[28]||(T[28]=t("对于多元函数")),Q("mjx-container",b,[(m(),a("svg",j,T[20]||(T[20]=[l('',1)]))),T[21]||(T[21]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"z"),Q("mo",null,"="),Q("mi",null,"f"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"x"),Q("mo",null,","),Q("mi",null,"y"),Q("mo",{stretchy:"false"},")")])],-1))]),T[29]||(T[29]=t(",定义")),Q("mjx-container",C,[(m(),a("svg",k,T[22]||(T[22]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D467",d:"M347 338Q337 338 294 349T231 360Q211 360 197 356T174 346T162 335T155 324L153 320Q150 317 138 317Q117 317 117 325Q117 330 120 339Q133 378 163 406T229 440Q241 442 246 442Q271 442 291 425T329 392T367 375Q389 375 411 408T434 441Q435 442 449 442H462Q468 436 468 434Q468 430 463 420T449 399T432 377T418 358L411 349Q368 298 275 214T160 106L148 94L163 93Q185 93 227 82T290 71Q328 71 360 90T402 140Q406 149 409 151T424 153Q443 153 443 143Q443 138 442 134Q425 72 376 31T278 -11Q252 -11 232 6T193 40T155 57Q111 57 76 -3Q70 -11 59 -11H54H41Q35 -5 35 -2Q35 13 93 84Q132 129 225 214T340 322Q352 338 347 338Z"})])])],-1)]))),T[23]||(T[23]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"z")])],-1))]),T[30]||(T[30]=t("在")),Q("mjx-container",B,[(m(),a("svg",R,T[24]||(T[24]=[l('',1)]))),T[25]||(T[25]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"0")]),Q("mo",null,","),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"0")]),Q("mo",{stretchy:"false"},")")])],-1))]),T[31]||(T[31]=t("处相对于")),Q("mjx-container",A,[(m(),a("svg",O,T[26]||(T[26]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D465",d:"M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"})])])],-1)]))),T[27]||(T[27]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"x")])],-1))]),T[32]||(T[32]=t("的偏导数为"))]),Q("mjx-container",S,[(m(),a("svg",J,T[33]||(T[33]=[l('',1)]))),T[34]||(T[34]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mtable",{displaystyle:"true"},[Q("mlabeledtr",null,[Q("mtd",null,[Q("mtext",null,"(1.1)")]),Q("mtd",null,[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"z")]),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"x")])]),Q("mo",null,"="),Q("munder",null,[Q("mo",{"data-mjx-texclass":"OP"},"lim"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",{mathvariant:"normal"},"△"),Q("mi",null,"x"),Q("mo",{stretchy:"false"},"→"),Q("mn",null,"0")])]),Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"f"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"0")]),Q("mo",null,"+"),Q("mi",{mathvariant:"normal"},"△"),Q("mi",null,"x"),Q("mo",null,","),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"0")]),Q("mo",{stretchy:"false"},")"),Q("mo",null,"−"),Q("mi",null,"f"),Q("mo",{stretchy:"false"},"("),Q("msub",null,[Q("mi",null,"x"),Q("mn",null,"0")]),Q("mo",null,","),Q("msub",null,[Q("mi",null,"y"),Q("mn",null,"0")]),Q("mo",{stretchy:"false"},")")]),Q("mrow",null,[Q("mi",{mathvariant:"normal"},"△"),Q("mi",null,"x")])])])])])])])])],-1))]),Q("p",null,[T[39]||(T[39]=t("例如,定义")),Q("mjx-container",G,[(m(),a("svg",z,T[35]||(T[35]=[l('',1)]))),T[36]||(T[36]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"z"),Q("mo",null,"="),Q("msup",null,[Q("mi",null,"x"),Q("mn",null,"2")]),Q("mo",null,"+"),Q("mn",null,"2"),Q("mi",null,"x"),Q("mi",null,"y"),Q("mo",null,"+"),Q("msup",null,[Q("mi",null,"y"),Q("mn",null,"3")])])],-1))]),T[40]||(T[40]=t(",那么")),Q("mjx-container",X,[(m(),a("svg",P,T[37]||(T[37]=[l('',1)]))),T[38]||(T[38]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"∂"),Q("mi",null,"z"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mo",null,"/")]),Q("mi",null,"∂"),Q("mi",null,"x"),Q("mo",null,"="),Q("mn",null,"2"),Q("mi",null,"x"),Q("mo",null,"+"),Q("mn",null,"2"),Q("mi",null,"y"),Q("mo",null,","),Q("mi",null,"∂"),Q("mi",null,"z"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mo",null,"/")]),Q("mi",null,"∂"),Q("mi",null,"y"),Q("mo",null,"="),Q("mn",null,"2"),Q("mi",null,"x"),Q("mo",null,"+"),Q("mn",null,"3"),Q("msup",null,[Q("mi",null,"y"),Q("mn",null,"2")])])],-1))])]),T[108]||(T[108]=Q("h4",{id:"哈密顿算子",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#哈密顿算子"},[Q("span",null,[Q("strong",null,"哈密顿算子")])])],-1)),Q("p",null,[T[45]||(T[45]=t("哈密顿算子")),Q("mjx-container",Y,[(m(),a("svg",E,T[41]||(T[41]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"2207",d:"M46 676Q46 679 51 683H781Q786 679 786 676Q786 674 617 326T444 -26Q439 -33 416 -33T388 -26Q385 -22 216 326T46 676ZM697 596Q697 597 445 597T193 596Q195 591 319 336T445 80L697 596Z"})])])],-1)]))),T[42]||(T[42]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",{mathvariant:"normal"},"∇")])],-1))]),T[46]||(T[46]=t("在流体力学中是如此重要,以至于很多地方将这个符号作为流体力学的标志,所以这里要着重介绍一下,所谓“算子”,就是那种不能单独存在,必须和其他符号放在一起的一种数学符号,例如微分中的那个“")),Q("mjx-container",N,[(m(),a("svg",q,T[43]||(T[43]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D451",d:"M366 683Q367 683 438 688T511 694Q523 694 523 686Q523 679 450 384T375 83T374 68Q374 26 402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487H491Q506 153 506 145Q506 140 503 129Q490 79 473 48T445 8T417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157Q33 205 53 255T101 341Q148 398 195 420T280 442Q336 442 364 400Q369 394 369 396Q370 400 396 505T424 616Q424 629 417 632T378 637H357Q351 643 351 645T353 664Q358 683 366 683ZM352 326Q329 405 277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q233 26 290 98L298 109L352 326Z"})])])],-1)]))),T[44]||(T[44]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"d")])],-1))]),T[47]||(T[47]=t("”。哈密顿算子的定义如下:"))]),Q("mjx-container",F,[(m(),a("svg",I,T[48]||(T[48]=[l('',1)]))),T[49]||(T[49]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mtable",{displaystyle:"true"},[Q("mlabeledtr",null,[Q("mtd",null,[Q("mtext",null,"(1.2)")]),Q("mtd",null,[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",{mathvariant:"normal"},"∇"),Q("mo",null,"≡"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"x"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mi",null,"∂"),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"x")])]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"y"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mi",null,"∂"),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"y")])]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"z"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mi",null,"∂"),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"z")])])])])])])])])],-1))]),Q("p",null,[T[52]||(T[52]=t("哈密顿算子有很多有趣的特性,它本身虽然并不是一个矢量,但很多运算确实可以把它视为一个矢量,例如把它作用在一个标量场")),Q("mjx-container",K,[(m(),a("svg",U,T[50]||(T[50]=[l('',1)]))),T[51]||(T[51]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"A"),Q("mo",null,"="),Q("mi",null,"f"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"x"),Q("mo",null,","),Q("mi",null,"y"),Q("mo",null,","),Q("mi",null,"z"),Q("mo",{stretchy:"false"},")")])],-1))]),T[53]||(T[53]=t("上,那么"))]),Q("mjx-container",W,[(m(),a("svg",$,T[54]||(T[54]=[l('',1)]))),T[55]||(T[55]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mtable",{displaystyle:"true"},[Q("mlabeledtr",null,[Q("mtd",null,[Q("mtext",null,"(1.3)")]),Q("mtd",null,[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mi",{mathvariant:"normal"},"∇"),Q("mi",null,"A"),Q("mo",null,"="),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"x"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"f")]),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"x")])]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"y"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"f")]),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"y")])]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"z"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"f")]),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"z")])])])])])])])])],-1))]),Q("p",null,[T[66]||(T[66]=t("这个运算可以视为一个矢量和标量的乘法,得到的")),Q("mjx-container",_,[(m(),a("svg",Q1,T[56]||(T[56]=[l('',1)]))),T[57]||(T[57]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",{mathvariant:"normal"},"∇"),Q("mi",null,"A")])],-1))]),T[67]||(T[67]=t("是一个矢量场,称为")),Q("mjx-container",T1,[(m(),a("svg",a1,T[58]||(T[58]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D434",d:"M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z"})])])],-1)]))),T[59]||(T[59]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"A")])],-1))]),T[68]||(T[68]=t("的“梯度”,顾名思义,梯度的含义就是标量场")),Q("mjx-container",t1,[(m(),a("svg",m1,T[60]||(T[60]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D434",d:"M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z"})])])],-1)]))),T[61]||(T[61]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"A")])],-1))]),T[69]||(T[69]=t("在某处变化快慢和方向,比如一个标量场")),Q("mjx-container",l1,[(m(),a("svg",n1,T[62]||(T[62]=[l('',1)]))),T[63]||(T[63]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"H"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"x"),Q("mo",null,","),Q("mi",null,"y"),Q("mo",{stretchy:"false"},")")])],-1))]),T[70]||(T[70]=t("是一座高山在")),Q("mjx-container",e1,[(m(),a("svg",d1,T[64]||(T[64]=[l('',1)]))),T[65]||(T[65]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mo",{stretchy:"false"},"("),Q("mi",null,"x"),Q("mo",null,","),Q("mi",null,"y"),Q("mo",{stretchy:"false"},")")])],-1))]),T[71]||(T[71]=t("处的高度,则H的梯度是该高山在某处陡峭的程度,并且方向指向高处。"))]),T[109]||(T[109]=Q("figure",null,[Q("img",{src:o,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption",null,"上面两个图中,标量场是黑白的,黑色表示大的数值,而其相应的梯度用蓝色箭头表示")],-1)),Q("p",null,[T[78]||(T[78]=t("而如果把哈密顿算子作用在一个矢量场")),Q("mjx-container",r1,[(m(),a("svg",s1,T[72]||(T[72]=[l('',1)]))),T[73]||(T[73]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"A"),Q("mo",{stretchy:"false"},"→")])])])],-1))]),T[79]||(T[79]=t("上,得到的")),Q("mjx-container",o1,[(m(),a("svg",g1,T[74]||(T[74]=[l('',1)]))),T[75]||(T[75]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",{mathvariant:"normal"},"∇"),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"A"),Q("mo",{stretchy:"false"},"→")])])])],-1))]),T[80]||(T[80]=t("称为矢量场")),Q("mjx-container",i1,[(m(),a("svg",h1,T[76]||(T[76]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"1D434",d:"M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z"})])])],-1)]))),T[77]||(T[77]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"A")])],-1))]),T[81]||(T[81]=t("的“散度”,散度的计算和矢量的点积运算相似,得到的是一个标量场。"))]),Q("mjx-container",H1,[(m(),a("svg",p1,T[82]||(T[82]=[l('',1)]))),T[83]||(T[83]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mtable",{displaystyle:"true"},[Q("mlabeledtr",null,[Q("mtd",null,[Q("mtext",null,"(1.4)")]),Q("mtd",null,[Q("mtable",{displaystyle:"true",columnalign:"right left",columnspacing:"0em",rowspacing:"3pt"},[Q("mtr",null,[Q("mtd",null,[Q("mi",{mathvariant:"normal"},"∇"),Q("mo",null,"⋅"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"A"),Q("mo",{stretchy:"false"},"→")])])]),Q("mtd",null,[Q("mi"),Q("mo",null,"="),Q("mrow",{"data-mjx-texclass":"INNER"},[Q("mo",{"data-mjx-texclass":"OPEN"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"x"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mi",null,"∂"),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"x")])]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"y"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mi",null,"∂"),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"y")])]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"z"),Q("mo",{stretchy:"false"},"→")])]),Q("mfrac",null,[Q("mi",null,"∂"),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"z")])]),Q("mo",{"data-mjx-texclass":"CLOSE"},")")]),Q("mo",null,"⋅"),Q("mo",{stretchy:"false"},"("),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"x"),Q("mo",{stretchy:"false"},"→")])]),Q("msub",null,[Q("mi",null,"A"),Q("mi",null,"x")]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"y"),Q("mo",{stretchy:"false"},"→")])]),Q("msub",null,[Q("mi",null,"A"),Q("mi",null,"y")]),Q("mo",null,"+"),Q("mrow",{"data-mjx-texclass":"ORD"},[Q("mover",null,[Q("mi",null,"z"),Q("mo",{stretchy:"false"},"→")])]),Q("msub",null,[Q("mi",null,"A"),Q("mi",null,"z")]),Q("mo",{stretchy:"false"},")")])]),Q("mtr",null,[Q("mtd"),Q("mtd",null,[Q("mi"),Q("mo",null,"="),Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"∂"),Q("msub",null,[Q("mi",null,"A"),Q("mi",null,"x")])]),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"x")])]),Q("mo",null,"+"),Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"∂"),Q("msub",null,[Q("mi",null,"A"),Q("mi",null,"y")])]),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"y")])]),Q("mo",null,"+"),Q("mfrac",null,[Q("mrow",null,[Q("mi",null,"∂"),Q("msub",null,[Q("mi",null,"A"),Q("mi",null,"z")])]),Q("mrow",null,[Q("mi",null,"∂"),Q("mi",null,"z")])])])])])])])])])],-1))]),T[110]||(T[110]=Q("p",null,"散度的意义也很明显,就是描述一个矢量场“发散”的程度,例如下面的两个矢量场,左边的有很大的散度,而右边的散度为0",-1)),T[111]||(T[111]=Q("figure",null,[Q("img",{src:g,alt:"",tabindex:"0",loading:"lazy"}),Q("figcaption",null,"两个散度差别很大的矢量场")],-1)),T[112]||(T[112]=Q("h4",{id:"拉普拉辛算子",tabindex:"-1"},[Q("a",{class:"header-anchor",href:"#拉普拉辛算子"},[Q("span",null,[Q("strong",null,"拉普拉辛算子")])])],-1)),Q("p",null,[T[90]||(T[90]=t("拉普拉辛算子")),Q("mjx-container",L1,[(m(),a("svg",u1,T[84]||(T[84]=[l('',1)]))),T[85]||(T[85]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("msup",null,[Q("mi",{mathvariant:"normal"},"∇"),Q("mn",null,"2")])])],-1))]),T[91]||(T[91]=t("是二阶微分算子,有时也可写作")),Q("mjx-container",f1,[(m(),a("svg",M1,T[86]||(T[86]=[Q("g",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",transform:"scale(1,-1)"},[Q("g",{"data-mml-node":"math"},[Q("g",{"data-mml-node":"mi"},[Q("path",{"data-c":"394",d:"M51 0Q46 4 46 7Q46 9 215 357T388 709Q391 716 416 716Q439 716 444 709Q447 705 616 357T786 7Q786 4 781 0H51ZM507 344L384 596L137 92L383 91H630Q630 93 507 344Z"})])])],-1)]))),T[87]||(T[87]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",{mathvariant:"normal"},"Δ")])],-1))]),T[92]||(T[92]=t("或者")),Q("mjx-container",x1,[(m(),a("svg",w1,T[88]||(T[88]=[l('',1)]))),T[89]||(T[89]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",{mathvariant:"normal"},"∇"),Q("mo",null,"⋅"),Q("mi",{mathvariant:"normal"},"∇")])],-1))])]),Q("mjx-container",c1,[(m(),a("svg",Z1,T[93]||(T[93]=[l('',1)]))),T[94]||(T[94]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mtable",{displaystyle:"true"},[Q("mlabeledtr",null,[Q("mtd",null,[Q("mtext",null,"(1.5)")]),Q("mtd",null,[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("msup",null,[Q("mi",{mathvariant:"normal"},"∇"),Q("mn",null,"2")]),Q("mo",null,"≡"),Q("mfrac",null,[Q("msup",null,[Q("mi",null,"∂"),Q("mn",null,"2")]),Q("mrow",null,[Q("mi",null,"∂"),Q("msup",null,[Q("mi",null,"x"),Q("mn",null,"2")])])]),Q("mo",null,"+"),Q("mfrac",null,[Q("msup",null,[Q("mi",null,"∂"),Q("mn",null,"2")]),Q("mrow",null,[Q("mi",null,"∂"),Q("msup",null,[Q("mi",null,"y"),Q("mn",null,"2")])])]),Q("mo",null,"+"),Q("mfrac",null,[Q("msup",null,[Q("mi",null,"∂"),Q("mn",null,"2")]),Q("mrow",null,[Q("mi",null,"∂"),Q("msup",null,[Q("mi",null,"z"),Q("mn",null,"2")])])])])])])])])])],-1))]),Q("p",null,[T[97]||(T[97]=t("例如对于")),Q("mjx-container",V1,[(m(),a("svg",v1,T[95]||(T[95]=[l('',1)]))),T[96]||(T[96]=Q("mjx-assistive-mml",{unselectable:"on",display:"inline"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML"},[Q("mi",null,"A"),Q("mo",null,"="),Q("mi",null,"f"),Q("mo",{stretchy:"false"},"("),Q("mi",null,"x"),Q("mo",null,","),Q("mi",null,"y"),Q("mo",null,","),Q("mi",null,"z"),Q("mo",{stretchy:"false"},")")])],-1))])]),Q("mjx-container",y1,[(m(),a("svg",D1,T[98]||(T[98]=[l('',1)]))),T[99]||(T[99]=Q("mjx-assistive-mml",{unselectable:"on",display:"block"},[Q("math",{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},[Q("mtable",{displaystyle:"true"},[Q("mlabeledtr",null,[Q("mtd",null,[Q("mtext",null,"(1.6)")]),Q("mtd",null,[Q("mstyle",{displaystyle:"true",scriptlevel:"0"},[Q("mrow",{"data-mjx-texclass":"ORD"},[Q("msup",null,[Q("mi",{mathvariant:"normal"},"∇"),Q("mn",null,"2")]),Q("mi",null,"A"),Q("mo",null,"="),Q("mfrac",null,[Q("mrow",null,[Q("msup",null,[Q("mi",null,"∂"),Q("mn",null,"2")]),Q("mi",null,"A")]),Q("mrow",null,[Q("mi",null,"∂"),Q("msup",null,[Q("mi",null,"x"),Q("mn",null,"2")])])]),Q("mo",null,"+"),Q("mfrac",null,[Q("mrow",null,[Q("msup",null,[Q("mi",null,"∂"),Q("mn",null,"2")]),Q("mi",null,"A")]),Q("mrow",null,[Q("mi",null,"∂"),Q("msup",null,[Q("mi",null,"y"),Q("mn",null,"2")])])]),Q("mo",null,"+"),Q("mfrac",null,[Q("mrow",null,[Q("msup",null,[Q("mi",null,"∂"),Q("mn",null,"2")]),Q("mi",null,"A")]),Q("mrow",null,[Q("mi",null,"∂"),Q("msup",null,[Q("mi",null,"z"),Q("mn",null,"2")])])])])])])])])])],-1))])])}const k1=n(i,[["render",b1],["__file","SPH001.html.vue"]]),B1=JSON.parse('{"path":"/blog/2025/02/SPH001.html","title":"SPH算法简介(一): 数学基础","lang":"zh-CN","frontmatter":{"title":"SPH算法简介(一): 数学基础","tags":"数学 流体 程序 算法"},"headers":[],"git":{},"filePathRelative":"blog/2025/02/SPH001.md"}');export{k1 as comp,B1 as data};