http___blog.simmakers.com_tag_differential-operator__lang_bg_1.xml
http___blog.simmakers.com_application-of-static-adaptive-partitioning-of-computational-domain_.xml
1.1 2.1 2.2 3.1 3.2 3.3 3.4
Въвеждане Много софтуерни пакети за числени пресмятания позволяват на потребителите да използват статичен адаптивно (се по-адаптивен) стъпка в изграждането на ортогонална шестограни структурирана изчислителна мрежа. Това означава, че информираните потребители могат да използват своя опит, за да получите по-точни изчисления, без значително увеличаване на времето за изчисление, като се посочва областта на изчислителната областта, в която, по тяхно мнение, е необходимо да се прилагат по-подробно разделяне (използвате по-малка пространствена стъпка) в сравнение с останалата част на изчислителната домен. Когато се използва правилно, адаптивна разделяне на изчислителна домейн е мощен инструмент в числени изчисления, за да се увеличи точността. Обаче, когато горната опция е употребявани, изчислителната време може да се увеличи драстично, без непременно да се променя точността на изчисленията в значителна степен. В тази статия, ние описваме теоретичните предимствата и недостатъците на използването на адаптивни разделяне на изчислителна домейн, and also give two examples for numerical computations of thermal fields in ground. В първия пример, прилагане на адаптивния стъпка е целесъобразно; това не е случаят, обаче, в секунда.
1.1 2.1 2.2 3.1 3.2 3.3 3.4 4.1 5.1 5.2 6.1 7.1 7.2 8.1 8.2 8.3 8.4 9.1 9.2 10.1 11.1 11.2 12.1 13.1 14.1 14.2 15.1 15.2 16.1 17.1 18.1 18.2 19.1 20.1 20.2 20.3 21.1 22.1 22.2 23.1 23.2 23.3 23.4 24.1 25.1 25.2 25.3 25.4 26.1 27.1 28.1 29.1 29.2 30.1 31.1 31.2 31.3 32.1 32.2 33.1 33.2 34.1 35.1 35.2 35.3
Introduction Many software packages for numerical computations allow users to use a static adaptive (hereby referred to as adaptive) step in the construction of an orthogonal hexahedral structured computational mesh. This means that informed users can employ their experience to get a more accurate computation without significantly increasing the computation time by specifying the areas of the computational domain in which, in their opinion, it is necessary to apply more detailed partitioning (use a smaller spatial step) as compared to the rest of the computational domain. When properly used, adaptive partitioning of the computational domain is a powerful tool in numerical computations to increase accuracy. However, when the above option is overused, the computational time can increase dramatically without necessarily altering the accuracy of the computation to any significant degree. In this article, we describe the theoretical advantages and disadvantages of using adaptive partitioning of the computational domain, and also give two examples for numerical computations of thermal fields in ground. In the first example, application of the adaptive step is appropriate; this is not the case, however, in the second. Disadvantages of using the adaptive mesh ПIn the numerical solution of non-stationary problems, the time step is selected according to the numerical scheme stability criterion. For example, for the numerical solution of a heat conduction problem via the finite difference approximation method, the selection criterion of the time step has the following form: where are the minimum spatial steps along the axes respectively, and the constant C is selected based on the physical parameters of the problem. When applying adaptive partitioning of the computational domain, strong reduction of the spatial step along any direction in the vicinity of a single node should be avoided. This practice does not produce a tangible increase in the accuracy of computations in general but, according to equation (1), it significantly reduces the time step and hence increases the computational time. It is also worth separately mentioning the problem of the adaptive mesh application to finite approximation of differential operators. The problem is that the order of approximation of differential operators in the general case decreases. Let’s consider, for example, the finite-difference approximation of the operator . Applying the approximation to a standard template, we obtain the following formula: where . Assuming sufficient smoothness of the function u, on the basis of the Taylor formula, we obtain the following equalities: Inserting equalities (3) and (4) into (2), we obtain the following formula: It follows from formula (5) that, when , the operator is approximated with first-order accuracy. At the same time, on the regular mesh , and the operator is approximated with second-order accuracy. Advantages of using of the adaptive partitioning Despite the fact that the difference operator is approximated with first-order accuracy in the general case, if, in practice, and do not differ significantly the summand in (5) will be quite small and will not have much impact on the accuracy of the approximation. It is also worth mentioning that if the user wants to achieve a more accurate solution on a small area, it makes sense to perform the refinement of the mesh in this area only, instead of refining the mesh throughout the computational domain. In this case, the use of the adaptive mesh can significantly reduce the number of nodes of the computational mesh, and thus significantly reduce the computational time and the amount of memory used. The need for using an adaptive mesh arises in cases when there is a need for a detailed discretization of small objects with complex shapes. The use of a uniform mesh in such cases leads to an excessive increase in the number of nodes, which makes it difficult to construct the model and to perform further computations on it. Comparison of computation results Example 1 With the help of the Frost 3D software package, we modeled the problem of heat conduction with phase transitions. The top view of the created model is demonstrated in Figure 1: Figure 1 – Top view of the computational domain The computational domain contains of four parallelepipeds and a particularity in the form of an asterisk in the center. The width of the domain is 60 m and the height is 20 m. The physical parameters of the materials are represented in Table 1. Table 1 – Physical parameters of materials The phase transition temperature in all the materials is 0 oC. Zero heat flux is specified as a boundary condition at the boundaries of the computational domain. For the above model, we construct a computational mesh using a uniform step along all three coordinate axes. The mesh step along each coordinate axis is 1.0 m. Consequently, the computational domain contains 78,141 nodes. As seen in Figure 2, the particularity in the center when using the uniform mesh is discretized in a very approximate fashion. Figure 2 – Domain partitioning with uniform step We now construct a computational mesh with approximately the same number of nodes using the adaptive step, with refinement in the center. The minimum step along the coordinate axes is 0.155 m and the maximum is 1.5 m. The entire domain contains 84,375 nodes. As seen in Figure 3, the complex object in the center is discretized much more accurately than in the case of the uniform mesh. Figure 3 – Fragment of domain partitioning with irregular step In order to verify the impact of rough discretization on the obtained result, we perform numerical computation and consider the dependence of temperature on time in the center of the computational domain for both the uniform and adaptive meshes (Figure 1). The graphs below demonstrates the dependence of temperature (Kelvin) on time (days). Analyzing the graphs, we note that the results of the computations differ significantly. We can see that the phase transition occurred on the sixtieth day for the uniform spatial step, while the same phenomenon for the adaptive step occurs on the one-hundred-and-thirtieth day. Example 2 In example 2 we construct a similar model to that for Example 1, with the only difference being that there is no particularity in the center in the form of an asterisk. Similar to Example 1, we carry out two computations: one on the uniform mesh, and the second on the adaptive mesh. The steps of the meshes along the coordinate axes are equal to those used in Example 1. Now we can examine the behavior of the temperature in the central point of the computational domain. Graph 2 demonstrates the dependencies of the temperature on time when using the uniform and adaptive meshes. Comparing the results of the computations, we find that the thermal fields do not differ so significantly as in Example 1. However, in some numerical schemes using the time step selection criterion described above, the application of the adaptive mesh significantly increases the computational time, which indicates the potential inexpediency of using the adaptive step. Conclusion Summing up the advantages and disadvantages of applying adaptive partitioning of the computational domain, we note that the application of this option makes sense when the domain contains elements whose geometric features are much smaller than the dimensions of the computational domain . In addition, the adaptive mesh can be used if the applied numerical method does not lose orders of approximation with irregular partitioning of the domain and also possesses unconditional stability when selecting the time step. In other cases, application of adaptive partitioning does not significantly improve the accuracy of computations, but still considerably increases computational time.