Function that returns the autocorrelation function of a surface in PARAM%acf_surf
Function that returns the vector PARAM%order that contains the heights order.
Function that returns crit_acf the mean absolute difference between theoretical and calculated acfs, above z (usually 0.2 as recommended by iso 25178)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8), | intent(in), | dimension(1:w, 1:h) | :: | acf_surf |
calculated surface acf |
|
| real(kind=R8), | intent(in), | dimension(1:w, 1:h) | :: | imp_acf |
required surface acf |
|
| real(kind=R8), | intent(out) | :: | crit_acf |
mean absolute difference between theoretical and calculated acfs |
||
| real(kind=R8), | intent(in) | :: | acf__z |
plane elevation z where correlation lengths are calculated |
||
| integer(kind=I4), | intent(in) | :: | w |
surface acf width (points) |
||
| integer(kind=I4), | intent(in) | :: | h |
surface acf height (points) |
Function that returns PARAM%surf, the surface made of heights with the required statistical moments, in the right order.
Geometrical characteristics of the numerical surface
The loop ends here
End of script
This subroutine initializes a real matrix tab of dimensions nx by ny with ones
Function that creates a periodic macro-texture: knowing the FFT of an analytical texture
Number of concurrent threads
Function that calculates the mean absolute difference between the desired Acf and the one obtained. However, the important zone where both should match is above the cut - where the correlation lengths are determined.
Function that reads a digital surf file and returns the surface in PARAM%surf
Function that reads a script file. Keywords are identified and corresponding actions are triggered.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=512), | intent(in) | :: | job_file |
job file with macros to execute |
Function that save an array tab as a digital surf file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8), | intent(in), | dimension(:,:) | :: | tab |
a surface to save as a .sur file |
Returns the default surface spectrum
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in), | optional | :: | file_spct |
txt file containing the surface FFT module |
|
| logical(kind=I4), | intent(in), | optional | :: | apod |
window applied to surface? |
Starting the loop
Start the script reading
Required statistical moments