-
-
March 1, 2022 at 7:01 am
vision
Subscriber老师,您好,我看到在structure group里有parabola 形状的几何体,我现在想把这个parabola形状修改成gauss形状的,该如何修改呢?
March 2, 2022 at 12:28 amGuilin Sun
Ansys Employee可以的,你试一下,不够要注意Unit,脚本里面的都是米,而GUI 里面可能是微米March 2, 2022 at 9:20 amMarch 2, 2022 at 9:49 amMarch 3, 2022 at 12:45 amGuilin Sun
Ansys Employee遗憾的是,脚本和软件只检查语法有无错误,但是无法判断你的式子是否正确,你需要检查你的脚本能不能画出来。你可以把脚本拷贝出来,再提供一个x 矩阵,给出其它参数,看看能否画出来高斯形状。你给出的公式是标准正态分布,结果是以米为单位的,你自己手工画一下看看。我不记得脚本能认识Sigma这个希腊字符。March 10, 2022 at 8:52 amMarch 10, 2022 at 5:33 pmGuilin Sun
Ansys EmployeeMarch 11, 2022 at 2:16 amMarch 11, 2022 at 3:00 amGuilin Sun
Ansys Employee当然不对,你可能还没有理解我之前图示例子的意义:指数里的Sigma你当然不能去掉;
高斯函数之前没有系数,表示最大值是1,在坐标里代表1米!你需要将其最大值设置为需要的高度。
在用表示式定义曲面之前,你先给定,都在微米范围,看看高度Y是什么数值,你想要什么数值。下面是我的脚本。
x=linspace(-1,1,100)*1e-6;
sigma=0.5e-6;
y=(1/sigma/sqrt(2*pi))*exp(-x^2/(2*sigma^2));
sigma=0.5*sigma;
y2=(1/sigma/sqrt(2*pi))*exp(-x^2/(2*sigma^2));
plot(x*1e6,y,y2,"x um","Y","Gaussian normal distribution");
legend("sigma","sigma/2");
y=exp(-x^2/(2*sigma^2));
sigma=0.5*sigma;
y2=exp(-x^2/(2*sigma^2));
plot(x*1e6,y,y2,"x um","Y","Gaussian normal distribution");
legend("sigma","sigma/2");
以y2=exp(-x^2/(2*sigma^2))为例,其最大值为1,就是1米,你希望这样的高度y2吗?所以你需要先考虑好,先用一般脚本画出曲线,理解是什么意思,在用自定义形状。
请再琢磨一下,把前面的回复都再看一遍,看看哪里没有理解,要动手测试看看。Viewing 8 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceEarth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- 询问关于FDTD和matlab软件的互联问题 ——appopen
- Ansys Insight: FDTD 和 varFDTD 常见的发散原因以及处理
- 如何仿真一维光子晶体能带?
- 老师,您好。FDTD中simulation bandidth和source中wavelength区别在哪里,仿真根据哪个进行?
- Ansys Insight: FDTD 如何设置圆偏振光
- 左旋圆偏振光透过超表面后,获得的右旋圆偏振光能量比入射的左旋圆偏振光能量还要大?
- Ansys Insight: script中的数据类型和数据格式 Dataset
- Ansys Insight: 透射率反射率大于1,或者透射率反射率之和大于1的原因与解决方案–综合贴
- Ansys Insight: FDTD算法中pml的类型和选择
- 有效折射率
Top Contributors-
2620
-
2098
-
1327
-
1110
-
461
Top Rated Tags© 2023 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-