This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
docs:gsvit_inputs [2018/06/30 00:26] pklapetek |
docs:gsvit_inputs [2018/10/09 09:09] pklapetek |
||
---|---|---|---|
Line 301: | Line 301: | ||
<b>Medium modifiers</b> | <b>Medium modifiers</b> | ||
+ | |||
+ | <p><b>MEDIUM_SPECTRAL</b><br> | ||
+ | <i>sigma T material_index random_seed</i><br> | ||
+ | Adds roughness to objects consisting of defined tabulated material (parameter material_index) | ||
+ | using spectral synthesis and vector displacement method. Roughness parameters sigma and T controlling variance and correlation length are given in voxels. | ||
+ | |||
+ | <p><b>MEDIUM_EXPRESSION</b><br> | ||
+ | <i>i_start j_start k_start i_end j_end k_end material_index void_index max_distance expression</i><br> | ||
+ | Alters object boundary using some analytical expression. In the expression, x, y and z mean the voxel coordinates. Basic mathematical functions and constants (pi) can be used. | ||
+ | As an example, this combination of sine functions can create quite chaotic surface shape: | ||
+ | <tt><br><br> | ||
+ | MEDIUM_EXPRESSION<br> | ||
+ | 10 10 10 290 290 290 1 0 10 0.5+0.08*sin(x/2)+0.08*sin(y/3)+0.08*sin(z/3.8)+0.08*sin((x+y)/5)+0.08*sin((y+z)/2.5)+0.08*sin((x+z)/4.2)<br> | ||
+ | </tt> | ||
+ | |||
+ | |||
<p><b>MEDIUM_ROUGHEN</b><br> | <p><b>MEDIUM_ROUGHEN</b><br> | ||
Line 402: | Line 418: | ||
<i>boundary</i><br> | <i>boundary</i><br> | ||
Specifies boundary that should be excluded from TSF application. Parameter "boundary" | Specifies boundary that should be excluded from TSF application. Parameter "boundary" | ||
- | is string denoting which boundary is being set (i0, j0, k0, in, jn, kn). Note that | + | is string denoting which boundary is being set (i0, j0, k0, in, jn, kn, depth N). Note that |
in principle TSF should be applied on all the boundaries to work properly, but in case | in principle TSF should be applied on all the boundaries to work properly, but in case | ||
of special materials or boundary conditions some boundary skipping can make sense. | of special materials or boundary conditions some boundary skipping can make sense. | ||
+ | The special boundary setting "depth" followed by a positive integer number, e.g. "depth 5" | ||
+ | causes solver to skip the TSF application in all the places with some material (not vacuum) | ||
+ | and even some number of voxels (parameter depth) close to it. This is useful to remove only some area where material is traversing the TSF boundary from the TSF application. | ||
</p> | </p> | ||