Ansys Learning Forum Forums Discuss Simulation Photonics I want to know the function of the ‘sroughness’ script command Reply To: I want to know the function of the ‘sroughness’ script command

Guilin Sun
Ansys Employee

The explanation for this script can be found here  https://optics.ansys.com/hc/en-us/articles/360034926193-sroughness-Script-command

Basically it assumes a normal distribution, characterized by rms and corrlation lengths,first in the Fourier space and then transformed into real space. you van refer this example  https://optics.ansys.com/hc/en-us/articles/360042213854-Bidirectional-scattering-distribution-function-BSDF-

 

I would encourage you to try. Once you created the rough surface it is one sample and you can do one simulation. Then you can quantify the reflection and transmission for such assuming periodic rough surface. DIfferent seed can create difference sample. Depending on how do you process the results, you may do a serious of simulations (different samples) and then you can get statistical reuslt.