README.md

September 30, 2025 ยท View on GitHub

Table of Contents

Brief description

CREST - Computational Resource for Eroded Surface Topology - is designed to generate numerical rough surfaces that respect:

  • size: (n \times m) regular grid
  • statistical moments: Skewness (Ssk) and Kurtosis (Sku)
  • principal correlation lengths: (\tau_1) and (\tau_2)
  • asperity orientation: (\alpha) angle
  • periodicity: with/without

The programs are written in recent Fortran (2003+)

top

Building CREST

Make sure that the dependencies described below are built.

Debug mode:

make debug

Normal mode:

make

Dependencies

CREST needs some components that are available through the following packages:

  • TOOLIB ... Some general tools like FFT, file handling, minimization, sorting, etc.

  • TPGLIB ... Some more specific programs like filtering, anisotropy analysis, derivation, etc.

As a consequence the three packages have to be downloaded.

top

Third party components

TOOLIB also uses external codes such as:

.sur surface files can be visualized and analyzed with Gwyddion software, a modular program for SPM (scanning probe microscopy) data visualization and analysis.

Typical use

The program main reads a script file my_script.md where the following parameters are defined:

  • image size (pix)
  • surface size (m)
  • periodicity
  • correlation lengths
  • roughness orientation
  • number of available threads
  • statistical parameters
  • output surface name
  • ...

as well as the algorithm for rough surface generation.

Run:

./main cfg/my_script.md

top

Full description

Test 1

size msize nwidth (m)height (m)periodic?(\tau_1)( \tau_2 )SskSku
1024512200.e-6100.e-6True30.e-610.e-6-3.15.

Run:

./main cfg/test01.md

Result: test01_img

Test 2

size msize nwidth (m)height (m)periodic?(\tau_1)( \tau_2 )SskSku
1024512200.e-6100.e-6False30.e-610.e-6-3.15.

Run:

./main cfg/test02.md

Result: test02_img

top

Documentation

The documentation is automatically generated with FORD, an automatic documentation generator for modern Fortran programs.

top

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but without any warrenty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see the GNU website.