The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.

Ansys Learning Forum Forums Discuss Simulation Photonics – Chinese FDTD_如何让monitor观测出的折射率精确到小数点后四位而不是后二位? Reply To: FDTD_如何让monitor观测出的折射率精确到小数点后四位而不是后二位?

Guilin Sun
Ansys Employee

这取决于你材料折射率。当折射率为1.4两位有效数字时,输出只能是两位:

index=getdata("monitor_2","index_x");
xx=index(131,:,1);
?xx(76);
result: 
1.4+0i  

如果折射率为多位时:

index=getdata("monitor_2","index_x");
xx=index(131,:,1);
?xx(76);
result: 
1.40679+0i  

用双精度显示:

  format long;
?xx(76);
result: 
1.406789000000000+0.000000000000000i  

你看看如何?