Introduction

The development of new wells and the stimulation of production of old wells are inseparable from the experimental analysis of reservoir cores. Measures for developing or increasing the number of oil and gas wells are proposed based on the experimental results. Comprehensive and accurate experimental analysis of reservoir cores, such as core sensitivity experiments, conductivity analysis, acid and fracturing fluid damage experiments, are the key to improving the production of these wells (Sadeq et al. 2018; Wan et al. 2011). However, for these experiments, a large number of cores and, in particular, acid and fracturing fluid damage evaluation experiments are necessary (for example, for five types of liquids, five concentrations are considered for each type of liquid additive, and 25 cores are needed) (Fu et al. 2020; Al-Fatlawi et al. 2017). There are many requirements with regard to liquid type or additive concentrations, and in many cases, the sampling cores are not sufficient to complete some necessary experiments. Moreover, if the reservoir is thin, the problem is more serious. The establishment of digital rock physics (DRP) will largely solve the problem of insufficient cores. Experimental analyses are often time consuming. In particular, for low-permeability reservoirs, the core is very dense, and it still takes a long time to complete a set of analysis experiments under high displacement pressure. DRP can greatly reduce the time required for experimental analysis by employing the rapid calculation ability of computers and can reduce the experimental cost and manpower. Considering the huge development potential of digital cores, many researchers were motivated to perform different studies on DRP.

X-ray computed tomography imaging and digital core analyses are being increasingly used to calculate the porosity and permeability from the millimeter to centimeter scale in Earth science. DRP is an effective method for calculating physical properties of rock using high-resolution three-dimensional (3D) images (Karimpouli et al. 2020). DRP technology can characterize the microstructure of rock at the pore scale and allow a quantitatively study of the relation between rock physical parameters and rock physical properties. Dvorkin et al. (2009) and Kuntz et al. (2000) used digital cores to study various rock physical properties (DRP), including acoustic properties, electrical properties, nuclear magnetic resonance relaxation, and permeability. With the development of CT scanning technology, DRP technology has progressed rapidly. In fact, the 3D pore geometry structures of reservoir rocks can be captured and visualized clearly (Riepe et al. 2011; Kalam et al. 2013). The higher the scanning accuracy, the more accurate is the rock microstructure presented by means of the filtered back-projection reconstruction (Arns et al. 2002). Through a series of image-processing techniques, the digital processing of rock can be implemented and the available pore space, fluid transport properties, and other rock properties, such as elastic modulus, formation resistivity factor, and relative permeability curve, can be quantified (Schembre and Kovscek 2003; Saenger et al. 2004; Taud et al. 2005). Andrä et al. (2013) discussed in detail the segmentation of the gray value of the CT scanning results, compared the segmentation results with four different types of rock samples, and discussed the uncertainty in image segmentation.

Many types of rock digital-processing technologies are available. Mostaghimi et al. (2012) applied an algebraic multigrid method to study the permeability anisotropy at the pore scale and opined that rock pores are mainly unidirectionally connected. Shabro et al. (2012) applied a finite difference method in which a weighting factor is defined and a Laplace equation is solved to study the flow characteristics of the fluid in the core. Moreover, they considered limestone and dolomite as examples for the practical application of their method and simulated the permeability distribution of rocks well. Further, the finite volume method was proposed by Bijeljic et al. (2013). The lattice Boltzmann method is a widely used computational fluid dynamics method on the mesoscopic scale, and it has the characteristics of a mesoscopic model intermediate between a microscopic molecular dynamics model and a macroscopic continuous model. Therefore, it has the advantages of a simple description of fluid interaction, easy setting of complex boundaries, easy parallel computing, and easy implementation of the program (Degruyter et al. 2010). Sun et al. (2017) processed and used images of five carbonate rock samples obtained from 3D CT scans to calculate porosity and directional permeability. Subsamples taken at three positions along each original core plug image were processed to segmented images using image-processing methods. Porosities were calculated by the voxel statistics method based on a segmented image. The absolute permeabilities of these subsamples in the three main perpendicular directions were calculated by applying the parallel lattice Boltzmann method in our high-performance computing cluster. Hijaz et al. (2020) regarded 3D image visualization to be effective in characterizing the connectivity and continuity of thin sandstone layers in heterolithic rocks. Using digital core technology, they proposed a method to improve the connectivity and permeability characterization of thin sandstone layers in heterolithic rocks. Florian et al. (2020) used irregular rock particles to model the digital core and focused on the mechanical characteristics of rock particles in the digital core, making it very helpful for us to analyze the separation of the core particles during displacement. Andrä et al. (2013) adopted a multiscale approach for gaining a deeper understanding of sand core microstructures as a standard for other material classes such as rocks. Tan et al. (2020) established a set of carbonate digital cores that contained fractures and calculated the elastic mechanical characteristics of the core based on the finite element method. Although the addition of fractures makes the digital core more accurate, thereby realizing more accurate calculation of reservoir oil and gas reserves, it does not consider the mineral composition and rock-particle size of the core. Therefore, fluid displacement experiments of the core cannot be performed. Nishank et al. (2019) He used mercury injection method, nuclear magnetic resonance and other indoor experimental methods to improve the digitization of digital core, in order to obtain more accurate core physical parameters.

Although researchers have constructed digital cores from different aspects, few studies have explored the use of digital cores, specially for indoor analysis experiments. From the perspective of oilfield development and production increase, this type of digital core is very important. Based on previous studies, a complete set of construction methods for digital cores used for indoor analysis experiments is proposed in this paper.

Construction of a digital core pore

CT scanning

When X-rays pass through a core sample, a series of complex physical phenomena, such as the electron-pair effect, Compton effect, and photoelectric effect, occur. Since the rays are partially reflected, scattered, and absorbed by the internal electrons of the core, the X-ray energy intensity is attenuated. The absorption coefficient of X-rays is related to the composition of core samples. Generally, the absorption of X-rays depends on the density of various components of the core. Therefore, the density of each part of the core can be determined by determining the X-ray absorption coefficient. X-rays produced by the X-ray generator irradiate the sample from different angles. The attenuated X-ray energy after passing through the sample was measured and recorded; the X-ray signal after attenuation was converted into an electrical signal and then into a digital image signal through an external sampling amplification and analog–digital conversion circuit. Finally, the absorption coefficient corresponding to each layer of the sample was calculated to obtain a 3D image through computer processing.

Filter back-projection reconstruction was applied in this study. It is a widely used algorithm in CT image reconstruction and has high-resolution and high-reconstruction speed. The formula for the filtered back projection can be written as follows( Kiss et al. 2004):

$$f\left( {x,y} \right) = \int_{0}^{\pi } {g\left( {t,\theta } \right)} {\text{d}}\theta$$
(1)
$$g\left( {t,\theta } \right) = \int_{ - \infty }^{ + \infty } {P\left( {\rho ,\theta } \right) \times \left| \rho \right| \times e^{2\pi j\rho t} {\text{d}}\rho }$$
(2)

The original image of the core and the condition of a section are shown in Fig. 1:

Fig. 1
figure 1

Overall morphology and profile morphology of the original rock

The results obtained after CT scanning and using the filtered back-projection reconstruction method are shown in Fig. 2.

Fig. 2
figure 2

Overall morphology and profile morphology after CT scanning

Using these methods, a gray-scale map of the rock sample profile was obtained. It is seen that the generated profile reproduces the characteristics and details of the original rock sample well but also generates a lot of noise signals. Since the noise signals greatly affect the identification of pores, fractures, and lithology of rock samples, it is necessary to eliminate them.

Noise signal elimination

To eliminate the noise signal generated during scanning, the image should be filtered. For this purpose, the median filtering method is generally used. Median filtering is a nonlinear signal-processing method that can effectively suppress noise based on sorting statistics theory. The basic principle of this method is to scan the image to be processed with a template, and arrange all the pixels in the image covered by the template from large to small to take the value of the middle point of the sequence instead of the pixel value of the middle point of the window (taking a point as an example, its 26 neighborhoods are shown in Fig. 3). This method eliminates isolated noise points. Median filtering can not only remove noise, but also protect details of the image. Owing to the large number of pixels in a rock sample image, it is difficult to find the generated noise signal in the case of image shrinkage, and it is difficult to notice the effect of median filtering with the naked eye. However, in the digital process, to obtain accurate results, the noise signal must be eliminated. To show its effect, a section of a rock sample was used as an example, and some salt-and-pepper noise points were added so that the readers could clearly understand the effect of noise elimination. Figure 4 shows a section of the rock sample with more obvious noise signals, and noise elimination achieved after median filtering is presented in Table 1 and 2.

Fig. 3
figure 3

Schematic diagram of 3D median filter

Fig. 4
figure 4

Noise after adding salt-and-pepper noise signals in a section of the rock sample

Table 1 Original data of rock sample
Table 2 Data after median filtering

The gray value of the target point is 215, which changed to 64 after median filtering, demonstrating the good noise reduction performance (Figs. 5, 6, 7, 8, and 9).

Fig. 5
figure 5

Results of noise signal elimination by median filtering

Fig. 6
figure 6

Threshold T = 80

Fig. 7
figure 7

Threshold T = 90

Fig. 8
figure 8

Threshold T = 100

Fig. 9
figure 9

Threshold T = 110

The details of the rock sample profile were well preserved after median filtering, and the pore and fracture structures did not change, and the color was generally lighter. According to the principle of median filtering, to eliminate noise signal, the value of each point is changed to the mean value of itself and neighborhood. Hence, so the color of the rock sample part becomes lighter after median filtering processing—the gray value increases, indicating that the heterogeneity of rock sample increases, and the pore development is good. The gray values of part of the pores and cracks in the process of median filtering increase, and hence, the overall color of the rock sample becomes lighter Table. 3.

Table 3 Classification of rock-particle size distribution

Threshold segmentation

After the noise signal of the rock sample is eliminated by the median filtering technology, it is necessary to identify the pores and fractures to construct the pores and fractures. Meanwhile, it is necessary to classify the extremely small part of the pores into one category and uniformly process them into the rock skeleton. The image-processing process mainly has the threshold segmentation method (Rosenfeld et al.1983; Ridler et al.1978; Otsu et al.1975), the cluster analysis method (Macoueen et al.1967; Abdi et al. 2007), and boundary detection method (Vincent et al.1991). The threshold segmentation method has the advantages of a simple algorithm, small amount of calculation, stable performance, and wide application. Further, this method is especially suitable for case of insufficient core samples, and hence, in this study, the threshold segmentation method was adopted to process the gray scale of rock samples. The maximum interclass variance method is a commonly used method in mathematics. In this study, this method was used for threshold segmentation. The principle of determining the segmentation threshold is that the set of gray values is divided into background and target groups (T1, T2) by threshold T. When the interclass variance of the two groups is the largest, the gray value T is the best threshold for image segmentation. The average gray level is calculated as follows:

$${\text{gray}} = \omega_{1} \times \overline{{{\text{gray}}_{1} }} + \omega_{2} \times \overline{{{\text{gray}}_{2} }}$$
(3)

The interclass variance of the image is:

$$g\left( t \right) = \omega_{1} \left( {\overline{{{\text{gray}}_{1} }} - {\text{gray}}} \right)^{2} + \omega_{2} \left( {\overline{{{\text{gray}}_{2} }} - {\text{gray}}} \right)^{2}$$
(4)

The gray value T corresponding to the maximum variance interclasses is the threshold of optimal segmentation. This method is widely used and is the most classical method of global binarization. By changing the threshold and setting the partial transparency of the matrix as 100%, the obtained image segmentation results are as follows:

According to the results, it can be seen that the change of threshold greatly affects the segmentation results of a rock sample image, and the selection of the threshold is crucial for the accuracy of the digital core. With an increase in the threshold, the matrix part of the rock sample is increasingly regarded as pores is more and more judged as pores. With a decrease in the threshold, an increasing number of pores of the rock sample are judged as the matrix. Whether the porosity is regarded as matrix or the matrix is regarded as porosity, the physical properties of the digital core are very different from the actual core. Therefore, the setting of the threshold should be just right. By calculating the interclass variance of the image, the threshold corresponding to the maximum value was found to be 92.1. The best segmentation result is shown in Fig. 10.

Fig. 10
figure 10

Threshold T = 92.1

Under the optimal threshold segmentation conditions, the matrix part is displayed, and the overall segmentation results of rock samples are shown in Fig. 11.

Fig. 11
figure 11

Binary map of rock samples under the optimal threshold segmentation condition

The pore distribution of the core was numericalized by simple image processing. The real digital core also needs to improve some physical properties of the rock, such as the size of rock particles, rock mineral types, pore size distribution. In the previous literature, most of these physical properties of rocks are generated based on the random method. To obtain a more accurate and practical digital core, these physical characteristics were added to the numerical core based on the laboratory experiment.

Establishment of digital core lithology

Core lithology mainly includes mineral composition and content, particle-size distribution, and pore size distribution.

Mineral composition of the core

The core mainly comprises calcite, quartz, dolomite, syenite, plagioclase, metal minerals, etc. The core composition greatly determines the chemical reaction between the digital core and fluid, such as acid–rock reactions. The core also contains clay components, mainly illite, kaolinite, and montmorillonite, which determine the sensitivity of the digital core—for example, the water sensitivity, speed sensitivity, salt sensitivity, and alkali sensitivity.

The mineral composition of core was analyzed by using a DX-2700 X-ray diffractometer. The results are shown in Figs. 12 and 13:

Fig.12
figure 12

Whole rock X-ray diffraction results

Fig.13
figure 13

X-ray diffraction analysis results of clay

The experimental results show that the total amount of calcium in rock samples is 46.3% (CaCO3). Quartz is 34.6% (SiO2), and clay is 19.1%. Among the clay minerals, kaolinite accounts for 24.5% (Al2Si2O5(OH)4); chlorite accounts for 15.6% ((Mg,Fe2+,Fe3+)AlSi3O10(OH)8); illite accounts for 17.6% ((H3,O,K)y(Al4·Fe4·Mg4·Mg6)(Si8−y·Aly)O20(OH)4); and montmorillonite accounts for 42.3% ((Ca0.5Na)0.7(Al,Mg,Fe)4(Si,Al)8O20(OH)4·nH2O) (Figs. 14 and 15).

Fig. 14
figure 14

Mineral composition distribution of the core

Fig. 15
figure 15

Mercury injection and outflow data

The core data after CT scanning can reflect the density of each point in the core. Hence, the CT scanning data were divided according to the proportion of each mineral component in the X-ray diffraction results of the core. The division method is as follows:

$$\left\{ \begin{gathered} N_{{T_{i} }} = \omega_{{m_{i} }} \,N\quad i = 1,2, \ldots n \hfill \\ {\text{gray}}_{{T_{i} }} = i \hfill \\ \end{gathered} \right.$$
(5)

The results of core mineral composition modeling are shown in Fig. 16.

Fig. 16
figure 16

Results of particle-size distribution is made measured by indoor test screening method

The distribution of rock minerals greatly influences the seepage of fluid in the core. The type and content of minerals will affect the pH of water—neutral or acidic in the core. Meanwhile, the distribution of rock particles was established based on the distribution of minerals.

Core pore size distribution

The pore size distribution of cores can be obtained by mercury intrusion experiments. Mercury can enter solid pores under external pressure. For the cylindrical pore model, the pore size and pressure of mercury can enter conform to the Washburn equation. By controlling different pressures, the volume of mercury can be measured, and the cumulative distribution pore size corresponding to different pressures can be obtained. The experimental results of mercury intrusion are shown in Fig. 17. The pore size distribution can be calculated by tracking the relation between the amount of mercury (nonwetting liquid) entering the pore and pressure. The pore size distribution of the core calculated by the Washburn equation is as follows:

$$R = \frac{ - 2\gamma \cos \left( \theta \right)}{{\Delta P}}$$
(6)
Fig. 17
figure 17

Regular rock-particle stacking

Mercury injection and outflow data for rock samples are shown in Fig. 15. It can be seen that the displacement pressure of the rock sample is small, and there are some large pores; when the mercury saturation is 50%, the injection pressure is too large, and the adjacent curve changes gently, which indicates that the pores of the rock sample are concentrated in the middle pores. The pore size distribution of the rock sample can be calculated by Eq. (6).

The pore size distribution measured by mercury intrusion curve can only simply describe the overall situation of the rock sample and cannot describe the distribution of pore size at each point of the rock sample. If the pore size is randomly assigned to each point of the rock sample, the pore size of the rock sample will have no spatial correlation. Meanwhile, if the abscissa of the above curve is changed to the particle size, and the ordinate is changed to the percentage of particle size, it is easy to get that the particle-size distribution of rock samples tends to normal distribution, then a pseudo-random pore size distribution model with spatial correlation can be established according to this property.

Since the number of pore size distribution obtained from mercury intrusion curve data is far less than the number of simulated grids, the data should be expanded by the interpolation method. Kriging interpolation method is based on the variation function and structure analysis and is a method of unbiased optimal estimation of regionalized variables in a finite region is very useful for constructing the pore size distribution with spatial correlation. Kriging interpolation method is expressed as follows:

$$R\left( {x_{0} } \right) = \sum\limits_{i = 1}^{n} {\lambda_{i} } R\left( {x_{i} } \right)$$
(7)

There is a certain correlation between \(R\left( {x_{i} } \right)\), and this correlation and the distance, direction, and kriging interpolation were employed to meet unbiased, minimum variance conditions Eq. (8) (Li and Li, 2019):

$$\left\{ \begin{gathered} \sum\limits_{i = 1}^{{n^{*} }} {\lambda_{i} } C\left( {x_{i} ,x_{j} } \right) + \mu = C\left( {x_{0} ,x_{j} } \right)\left( {j = 1,2, \ldots ,n^{*} } \right) \hfill \\ \sum\limits_{i = 1}^{{n^{*} }} {\lambda_{i} } = 1 \hfill \\ \end{gathered} \right.$$
(8)

\(C\left( {x_{i} ,x_{j} } \right)\) is the covariance function of \(R\left( {x_{i} } \right)\) and \(R\left( {x_{j} } \right)\).

$$C\left( {x_{i} ,x_{j} } \right) = \frac{1}{{N\left( {j - x} \right)}}\sum\limits_{i = 1}^{{N\left( {j - x} \right)}} {\left[ {Z\left( {x_{i} } \right) - \overline{Z} \left( {x_{i} } \right)} \right]} \left[ {Z\left( {x_{j} } \right) - \overline{Z} \left( {x_{j} } \right)} \right]$$
(9)

Thus, the aperture data with a low spatial correlation degree and a small number of data are interpolated into the aperture data with a high spatial correlation degree and large number of data, and the modeling of aperture distribution is realized.

Core particle-size distribution

The distribution of core particle size can be simply obtained by screening method. After the core is crushed, the rock powder is classified by using different mesh sieves. The results shown in Fig. 18 match the core particle size with mineral composition, and we can assume that the larger the density, the larger is the particle size. The matching method is as follows:

Fig. 18
figure 18

Particle stacking of irregular rocks

The maximum particle size corresponding to a core is as follows:

$$d_{i} = \left. d \right|_{{L_{i} = \sum\limits_{i = 1}^{n} {\omega_{mi} } }}$$
(10)

The particle-size distribution of the core is as follows:

$$d_{{P_{i} }} = d_{i - 1} { - }d_{i}$$
(11)

where the assumption is \(d_{0} = 0\), that is, the minimum particle size of the core approaches 0.

Ideally, rock particles are assumed as spheres. Under this assumption, the particle-size distribution of digital cores is constructed. For the arrangement of rock particles with different sizes, a novel method is proposed herein: the optimal contact descent method. If the radius of a particle that is about to sink is r, it is assumed that the radius of all settled particles increases by r. For example, in the part of the blue dotted line, the place where the dotted line sphere intersects the most is the place where the particle drops (descending coordinate).

$${\text{if}}\left( {\sqrt {\left( {x_{0} - x_{i} } \right)^{2} + \left( {y_{0} - y_{i} } \right)^{2} \left( {z_{0} - z_{i} } \right)^{2} } - r - r_{i} \le 0} \right)\,\,{\text{Then}}\,h_{i} = 1,i = 1,2,\cdot\cdot\cdot,n$$
(12)
$$\left. {h_{t} } \right|_{{x = x_{0} ,y = y_{0} ,z = z_{0} }} = \max \left( {\sum\limits_{i = 1}^{n} {h_{i} } } \right)$$
(13)

If there are multiple optimal decline situations, they can be judged by calculating the sum of the distances from the decline point to each point in the neighborhood in each case. The smaller this value, the better is the arrangement of the particles is, namely, the final decline point.

$$\left\{ \begin{gathered} d_{i} = \sum\limits_{i = 1}^{n} {\left( {\sqrt {\left( {x_{0} - x_{i} } \right)^{2} + \left( {y_{0} - y_{i} } \right)^{2} + \left( {z_{0} - z_{i} } \right)^{2} } - r_{i} - r} \right)} \hfill \\ \left( {r + r_{i} } \right)^{2} \le \left( {x_{0} - x_{i} } \right)^{2} + \left( {y_{0} - y_{i} } \right)^{2} + \left( {z_{0} - z_{i} } \right)^{2} ,i = 1,2, \cdots ,n \hfill \\ \end{gathered} \right.$$
(14)
$$\left. {d^{*} } \right|_{{x = x^{*} ,y = y^{*} ,z = z^{*} }} = \min \left( {d_{i} } \right),i = 1,2, \cdots ,n$$
(15)

The shape and arrangement of rock particles are shown in Fig. 17.

The rock particles are regarded as spheres for simple and fast calculation. However, extremely idealized assumptions will reduce the simulation accuracy. To closely reproduce the actual situation of the core, all core particles were not regarded spherical; the core is assumed as irregular polyhedrons (Fig. 19). The arrangement method is consistent with the sphere arrangement method; under this condition, the arrangement method is only a better arrangement method but not the optimal arrangement method. The optimal arrangement method is restricted by the algorithm and computer performance, and the resultant shape is difficult to obtain:

Fig. 19
figure 19

Digital core model

In theory, the arrangement of irregular polyhedron will make the contact area between the rock particles larger, more closely arranged, and the macroscopic performance is that the rock sample is more tight, the heterogeneity is stronger, and However, it also brings some problems, and the calculation of porosity and permeability of rock samples becomes very complex. The results of digital core modeling are as follows:

At the same time, this paper assumes that the rock particles of the same rock correspond to the same particle shape, and the arrangement is unchanged, as shown in Fig. 20. Of course, this method may not be used, but the different shapes of particles are randomly distributed according to particle-size distribution.

Fig. 20
figure 20

Irregular rock-particle shape and mineral type

According to the method adopted in this study, the final digital core modeling results are as Fig. 21, the core of the local amplification, you can see the rock particles arranged in disorder together.

Fig. 21
figure 21

Digital core model

Thus, the pore structure of the digital core with lithology was established. To verify the accuracy of the model, the rock porosity attribute will be used to verify the model.

Model verification

Using the digital core pore structure established in this study, the core model was validated based on rock porosity. Model porosity was calculated as follows:

$$\phi = \frac{{1 - V_{p} }}{{V_{{{\text{rock}}}} }}$$
(16)
$$V_{p} = \sum\limits_{i = 1}^{{n^{*} }} {V_{{p_{i} }} }$$
(17)
$$r^{*} = \left( {\frac{{V_{{p_{i} }} }}{\pi }} \right)^{1/3}$$
(18)

The particle volume of an irregular polyhedron \(\left( {V_{{p_{i} }} } \right)\) can be directly obtained using MATLAB. The porosity of rock obtained by computer is 32.4%, and the porosity calculated by laboratory nuclear magnetic resonance method is 29.9%, as shown in Fig. 22, with high coincidence, which verifies the accuracy of the model. Correlating the change in porosity with the physical and chemical changes of particles is difficult. During water flooding, part of the clay minerals in the core will swell—the most obvious swelling is observed in the case of montmorillonite—characterized by the increase in rock-particle volume. Meanwhile, during acid flooding, part of the minerals in the core (the hydrochloric acid system will dissolve calcite; the soil acid system will dissolve quartz, clay, etc.), making the rock particle decrease. For an increase or a decrease in rock-particle volume, it is difficult to describe these changes via a mathematical expression when the irregular polyhedron shape is assumed. Therefore, in this study, the equivalent radius method was used to characterize the change of a rock-particle volume. This assumption method does not affect the seepage state of fluid in rock. Thus, researchers can conduct subsequent simulation of fluid flow in the core.

Fig. 22
figure 22

Nuclear magnetic resonance results of rock sample

Conclusion

Digital cores based on laboratory experiments are usually more realistic and accurate than those generated by random algorithms. The CT scanning technology, X-ray diffraction technology, mercury intrusion experiment, and screening method can well characterize the physical properties of the core. In this study, CT scanning and filter back projection were used to visualize the core. Further, 3D median filtering technology was used to eliminate the noise signal after scanning. The maximum interclass variance method was used to segment the rock structure and pores. X-ray diffraction technology was used to qualitatively and quantitatively distinguish the minerals in the core and realize their distribution in the core. The core pore size distribution was analyzed by mercury intrusion, and the core pore size distribution with spatial correlation was constructed by kriging interpolation. The particle-size distribution of the cores was analyzed by the screening method, and the rock-particle shape was assumed to be a more realistic irregular polyhedron. Considering the particle shape and mineral distribution together, the pore structure of the digital cores and the establishment of cores were realized. The simulated digital core porosity was 32.4%, and the core porosity measured by nuclear magnetic resonance experiment was 29.9%, with a high consistency, thereby validating the accuracy of the model. A method for simulating physical and chemical changes in subsequent digital cores was proposed to facilitate further study of this method.