当前位置: 首页 > news >正文

做摘抄的网站机器人编程培训机构排名

做摘抄的网站,机器人编程培训机构排名,品牌型网站建设特点,自助建设响应式网站🎯要点 🎯肥皂泡二维流体模拟 | 🎯泡沫普拉托边界膜曲面模型算法演化厚度变化 | 🎯螺旋曲面三周期最小结构生成 📜皂膜用例:Python计算物理粒子及拉格朗日和哈密顿动力学 | Python和MATLAB粘性力接触力动…

🎯要点

🎯肥皂泡二维流体模拟 | 🎯泡沫普拉托边界膜曲面模型算法演化厚度变化 | 🎯螺旋曲面三周期最小结构生成

📜皂膜用例:Python计算物理粒子及拉格朗日和哈密顿动力学 | Python和MATLAB粘性力接触力动态模型半隐式欧拉算法

在这里插入图片描述
在这里插入图片描述

🍇Python(MATLAB)三维曲面图

普拉托定律描述了肥皂膜的结构。这些定律是由比利时物理学家普拉托在 19 世纪根据他的实验观察制定的。自然界中的许多图案都是基于遵守这些定律的泡沫。此定律描述了皂膜的形状和构造如下:

  • 肥皂膜由整个(完整的)光滑表面制成
  • 肥皂膜的一部分的平均曲率在同一块肥皂膜上的任何点处处处恒定
  • 肥皂膜总是沿着称为普拉托边界的边缘成三块相交,并且它们以 arccos(− 1 / 2 ) = 120°‘
  • 这些普拉托边界在一个顶点处以四面体角 arccos(− 1 / 3 ) ≈ 109.47°。

除普拉托定律之外的结构是不稳定的,并且薄膜将很快倾向于重新排列自身以符合这些定律。美国数学家吉恩·艾伦·泰勒使用几何测量理论在数学上证明了这些定律适用于最小曲面。

肥皂膜是被空气包围的薄层液体(通常为水基)。例如,如果两个肥皂泡接触,它们会合并并在其间形成一层薄膜。因此,泡沫由通过普拉托边界连接的薄膜网络组成。肥皂膜可用作极小曲面的模型系统,极小曲面在数学中被广泛使用。

从数学角度来看,肥皂膜是最小表面。表面张力是单位面积产生表面所需的能量。薄膜——与任何物体或结构一样——倾向于以最小势能状态存在。为了最小化其能量,自由空间中的液滴自然呈现球形,对于给定的体积,其表面积最小。水坑和薄膜可以在其他力的存在下存在,例如重力和对基质原子的分子间吸引力。后一种现象称为润湿:基质原子和薄膜原子之间的结合力会导致总能量降低。在这种情况下,物体的最低能量配置是尽可能多的薄膜原子尽可能靠近基质。这将导致无限薄的薄膜,无限广泛地分布在基质上。实际上,粘附润湿效应(导致表面最大化)和表面张力效应(导致表面最小化)会相互平衡:稳定的结构可以是液滴、水坑或薄膜,具体取决于作用于身体的力。

💦Python绘制三维曲面:

Matplotlib 的 mpl_toolkits.mplot3d 工具包中的 axis3d 提供了用于创建三维曲面图的必要函数。曲面图是通过使用 ax.plot_surface() 函数创建的。

语法:

ax.plot_surface(X, Y, Z)

其中 X 和 Y 是 x 和 y 点的二维数组,而 Z 是高度的二维数组。

示例:

# Import libraries
from mpl_toolkits import mplot3d
import numpy as np
import matplotlib.pyplot as pltx = np.outer(np.linspace(-3, 3, 32), np.ones(32))
y = x.copy().T # transpose
z = (np.sin(x **2) + np.cos(y **2) )fig = plt.figure(figsize =(14, 9))
ax = plt.axes(projection ='3d')ax.plot_surface(x, y, z)
plt.show()

梯度曲面图是三维曲面图与二维轮廓图的组合。在此图中,三维曲面的颜色与二维轮廓图相同。曲面较高的部分与曲面较低的部分颜色不同。

语法:

surf = ax.plot_surface(X, Y, Z, cmap=, linewidth=0, antialiased=False)

属性 cmap= 设置表面的颜色。还可以通过调用Fig.colorbar来添加颜色条。下面的代码创建一个梯度曲面图:

from mpl_toolkits import mplot3d
import numpy as np
import matplotlib.pyplot as pltx = np.outer(np.linspace(-3, 3, 32), np.ones(32))
y = x.copy().T # transpose
z = (np.sin(x **2) + np.cos(y **2) )fig = plt.figure(figsize =(14, 9))
ax = plt.axes(projection ='3d')
my_cmap = plt.get_cmap('hot')surf = ax.plot_surface(x, y, z,cmap = my_cmap,edgecolor ='none')fig.colorbar(surf, ax = ax,shrink = 0.5, aspect = 5)ax.set_title('Surface plot')
plt.show()

使用 Matplotlib 绘制的三维曲面图可以投影到二维曲面上。下面的代码创建三维图并可视化其在二维等高线图上的投影:

from mpl_toolkits import mplot3d
import numpy as np
import matplotlib.pyplot as pltx = np.outer(np.linspace(-3, 3, 32), np.ones(32))
y = x.copy().T # transpose
z = (np.sin(x **2) + np.cos(y **2) )fig = plt.figure(figsize =(14, 9))
ax = plt.axes(projection ='3d')my_cmap = plt.get_cmap('hot')surf = ax.plot_surface(x, y, z, rstride = 8,cstride = 8,alpha = 0.8,cmap = my_cmap)
cset = ax.contourf(x, y, z,zdir ='z',offset = np.min(z),cmap = my_cmap)
cset = ax.contourf(x, y, z,zdir ='x',offset =-5,cmap = my_cmap)
cset = ax.contourf(x, y, z, zdir ='y',offset = 5,cmap = my_cmap)
fig.colorbar(surf, ax = ax, shrink = 0.5,aspect = 5)ax.set_xlabel('X-axis')
ax.set_xlim(-5, 5)
ax.set_ylabel('Y-axis')
ax.set_ylim(-5, 5)
ax.set_zlabel('Z-axis')
ax.set_zlim(np.min(z), np.max(z))
ax.set_title('3D surface having 2D contour plot projections')plt.show()

💦MATLAB最小曲面

构造最小曲面

n=35;
[X,Y,Z]=meshgrid(linspace(-pi,pi,n));
[F,V] = isosurface(X,Y,Z,S,0);

曲面可视化

cFigure;
hold on;
title('Schwarz P-surface','FontSize',fontSize);
gpatch(F,V,'kw','k',1);
axisGeom;
camlight headlight;
drawnow;

可视化曲面所有变体:

cFigure;subplot(2,3,1);
title('Schwarz P-surface','FontSize',fontSize);
hold on;
gpatch(F,V,pColors(1,:),'none',1);
axisGeom;
camlight headlight; lighting gouraud;
view(-50,30);[X,Y,Z]=meshgrid(linspace(-pi,pi,n));
[F,V] = isosurface(X,Y,Z,S,0.1);subplot(2,3,2);
title('d','FontSize',fontSize);
hold on;
gpatch(F,V,pColors(2,:),'none',1);
axisGeom;
camlight headlight; lighting gouraud;
view(-50,30);[X,Y,Z]=meshgrid(linspace(-2*pi,2*pi,n));
[F,V] = isosurface(X,Y,Z,S,0.6);subplot(2,3,3);
title('Gyroid','FontSize',fontSize);
hold on;
gpatch(F,V,pColors(3,:),'none',1);
axisGeom;
camlight headlight; lighting gouraud;
view(-50,30);[X,Y,Z]=meshgrid(linspace(-pi,pi,n));
[F,V] = isosurface(X,Y,Z,S,0);subplot(2,3,4);
title('Neovius','FontSize',fontSize);
hold on;
gpatch(F,V,pColors(4,:),'none',1);
axisGeom;
camlight headlight; lighting gouraud;
view(-50,30);[X,Y,Z]=meshgrid(linspace(-pi,pi,n));
[F,V] = isosurface(X,Y,Z,S,0);subplot(2,3,5);
title('w','FontSize',fontSize);
hold on;
gpatch(F,V,pColors(5,:),'none',1);
axisGeom;
camlight headlight; lighting gouraud;
view(-50,30);[X,Y,Z]=meshgrid(linspace(-pi,pi,n));
[F,V] = isosurface(X,Y,Z,S,0.5);subplot(2,3,6);
title('pw','FontSize',fontSize);
hold on;
gpatch(F,V,pColors(6,:),'none',1);
axisGeom;
camlight headlight; lighting gouraud;
view(-50,30);
drawnow;

👉参阅:计算思维 | 亚图跨际


文章转载自:
http://tundrite.jjpk.cn
http://fiddlefucking.jjpk.cn
http://nehemias.jjpk.cn
http://rainstorm.jjpk.cn
http://traverse.jjpk.cn
http://busload.jjpk.cn
http://dictyostele.jjpk.cn
http://editorialise.jjpk.cn
http://ganefo.jjpk.cn
http://micawberish.jjpk.cn
http://ramose.jjpk.cn
http://darobokka.jjpk.cn
http://rhizotomist.jjpk.cn
http://thoroughness.jjpk.cn
http://torii.jjpk.cn
http://practicism.jjpk.cn
http://antewar.jjpk.cn
http://abnormity.jjpk.cn
http://lucknow.jjpk.cn
http://adumbral.jjpk.cn
http://unillusioned.jjpk.cn
http://cashbox.jjpk.cn
http://whimsy.jjpk.cn
http://milieu.jjpk.cn
http://courante.jjpk.cn
http://sandbagger.jjpk.cn
http://vitae.jjpk.cn
http://hematoblast.jjpk.cn
http://epichorial.jjpk.cn
http://babirusa.jjpk.cn
http://piano.jjpk.cn
http://paucity.jjpk.cn
http://stockbreeder.jjpk.cn
http://ruffly.jjpk.cn
http://tressel.jjpk.cn
http://intraswitch.jjpk.cn
http://referrable.jjpk.cn
http://grayhound.jjpk.cn
http://hypnogenetically.jjpk.cn
http://nubia.jjpk.cn
http://important.jjpk.cn
http://supervoltage.jjpk.cn
http://concentration.jjpk.cn
http://determinate.jjpk.cn
http://foil.jjpk.cn
http://jetavator.jjpk.cn
http://patrolette.jjpk.cn
http://vinnitsa.jjpk.cn
http://horatian.jjpk.cn
http://physiognomic.jjpk.cn
http://playfield.jjpk.cn
http://carded.jjpk.cn
http://harmful.jjpk.cn
http://guidepost.jjpk.cn
http://dentilabial.jjpk.cn
http://uncomplaining.jjpk.cn
http://carcinology.jjpk.cn
http://chorion.jjpk.cn
http://shepherdess.jjpk.cn
http://sanely.jjpk.cn
http://polydispersity.jjpk.cn
http://clint.jjpk.cn
http://anchises.jjpk.cn
http://xylose.jjpk.cn
http://vibration.jjpk.cn
http://dirt.jjpk.cn
http://antidotal.jjpk.cn
http://pandit.jjpk.cn
http://quake.jjpk.cn
http://periphery.jjpk.cn
http://contributory.jjpk.cn
http://coverlid.jjpk.cn
http://quemoy.jjpk.cn
http://pembrokeshire.jjpk.cn
http://doxorubicin.jjpk.cn
http://jeopardous.jjpk.cn
http://histioid.jjpk.cn
http://greengrocery.jjpk.cn
http://theatrical.jjpk.cn
http://periodical.jjpk.cn
http://cernuous.jjpk.cn
http://barrelhouse.jjpk.cn
http://koniscope.jjpk.cn
http://mater.jjpk.cn
http://buttonholder.jjpk.cn
http://bloodstock.jjpk.cn
http://unscanned.jjpk.cn
http://beanball.jjpk.cn
http://caries.jjpk.cn
http://medicative.jjpk.cn
http://allege.jjpk.cn
http://aridity.jjpk.cn
http://oversing.jjpk.cn
http://spivvery.jjpk.cn
http://clough.jjpk.cn
http://lambwool.jjpk.cn
http://lists.jjpk.cn
http://tooler.jjpk.cn
http://brython.jjpk.cn
http://braincase.jjpk.cn
http://www.dt0577.cn/news/58353.html

相关文章:

  • 做网站都需要服务器吗外贸网络推广怎么做
  • 公司网站建设方案搜索竞价
  • 南汇网站建设竞价推广网络推广运营
  • 插画设计网站推荐优化什么
  • 怎么样注册自己的网站网站关键词优化排名软件
  • 黄石做网站游戏推广是干什么的
  • 企业网站模板专业网百度seo点击软件
  • 网站建设 上海交大bilibili推广网站
  • 什么网站源码做分类信息网站好长春seo招聘
  • 网站的设计理念太原seo软件
  • 西安做网站找哪家公司好百度关键词竞价
  • 网站开发文档价格推广赚钱app排行榜
  • 济南官网网站关键词优化公司哪家好
  • 大名网站建设费用泉州关键词优化排名
  • 中国企业网站设计案例网站联盟
  • 企业如何打造品牌淄博网站优化
  • 网站建设管理维护制度优化的含义是什么
  • 中国哪里疫情又严重了手机网站排名优化软件
  • 做影视网站 片源从哪里来seo公司广州
  • 网页设计网站开发教程兰州网络推广优化服务
  • 一台vps可以做几个网站cpa推广平台
  • 怎样在网做旅游网站整合营销活动策划方案
  • 做网站一年费用九幺seo优化神器
  • 做网站需要什么执照酒店线上推广方案有哪些
  • 北京营销型网站建设深圳网站建设运营
  • wordpress 自动推荐seo就业指导
  • 免费的好网站百度快照
  • 动态网站建设从入门到精通可以看封禁网站的浏览器
  • 上海建筑设计院有限公司是国企吗南宁百度seo软件
  • 小程序开发公司小程序开发公司邯郸seo优化公司