This project code can generate random porous media with Quartet Structure Generation Set (QSGS) method. QSGS was first proposed by Wang and his collaborators1. Then he further enriched this method at 20072 and 20093.
[1] Wang, M., Wang, J., Pan, N., & Chen, S. (2007). Mesoscopic predictions of the effective thermal conductivity for microscale random porous media. Physical Review E - Statistical, Nonlinear, and Soft Matter Physics, 75(3), 036702. (https://doi.org/10.1103/PhysRevE.75.036702) [2] Wang, M., Meng, F., & Pan, N. (2007). Transport properties of functionally graded materials. Journal of Applied Physics, 102(3), 1โ7. (https://doi.org/10.1063/1.2767629) [3] Wang, M., & Kang, Q. (2009). Electrokinetic transport in microchannels with random roughness. Analytical Chemistry, 81(8), 2953โ2961. (https://doi.org/10.1021/ac802569n)The most of this project is based on the C++ standard library.
The method output2png of Class Porous2D and Porous3D can generate PNG file directly, which is base on the GnuPlot and gnuplot-iostream. If you need this function, make sure to install GnuPlot and Boost C++ library on your system. If you don't need, just comment the related code.
The method output2tecplot of Class Porous2D and Porous3D can generate plt file for Tecplot.
-
Clone the repo
-
Compile
make
-
Run
./run
Distributed under the GPL v3.0 License.