Roughness on first semi-infinite layer
|Status:||Resolved||Start date:||16 Apr 2020|
|Target version:||Sprint 43|
It is possible to ask BornAgain to create a rough interface for the first semi-infinite layer.
roughness = ba.LayerRoughness() roughness.setSigma(1 * angstrom) m_ti = ba.MaterialBySLD("Ti", -1.9493e-06, 0) ti_layer = ba.Layer(m_ti, 0 * angstrom) multi_layer = ba.MultiLayer() multi_layer.addLayerWithTopRoughness(ti_layer, roughness)
This is silently discarded, instead i would suggest to throw an exception similar to the case when the first layer is requested to have a non-zero thickness.