-
-
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- The topic ‘高斯形状的几何体该如何实现?’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
5994
-
1906
-
1425
-
1308
-
1021
Top Rated Tags© 2026 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.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.








