Embodiments relate to a system and method for fluid stimulation using a multigrid, and more particularly, to a system and method for fluid stimulation in which state processing of each cell and a conversion operator of a residual value are improved during conversion among grids.
In fluid flow simulation, there is known a method of solving a Poisson equation by dividing a boundary of a calculation region into ΓD which is a portion where a Dirichlet boundary condition is applied and ΓN which is a portion where a Neumann boundary condition is applied. Assuming that the calculation region is Ω, the above method may be expressed as Math Figures 1 to 3 below.
Δp=f in Ω⊂R3 [Math Figure 1]
p(x)=α(x) on ΓD, [Math Figure 2]
pn(x)=β(x) on ΓN [Math Figure 3]
A pressure may be defined for the center of each cell classified as described above, and a fluid flow simulation may be calculated by solving the Poisson equation with respect to the defined pressure. For example, assuming that a pressure of a cell located at (i, j, k) is Pijk, the Poisson equation may be expressed as Math Figures 4 to 6 below.
In Math Figures 4 to 6, Nijk represents six cells located adjacent to a specific target cell, and N*ijk represents a subset of Nijk except for Neumann cells. In addition, h represents a grid step size.
Meanwhile,
The multigrid V-cycle algorithm described above is more specifically disclosed in a paper entitled “A parallel multigrid Poisson solver for fluids simulation on large grids”, jointly authored by A. McAdams, E. Sifakis and J. Teran, which is incorporated herein by reference.
According to an aspect of the invention, it is possible to provide a system and method for fluid simulation, in which state processing of each cell during restriction of grids is improved and a process of converting a residual value of each cell such as restriction and prolongation operators is improved, when fluid simulation is performed by using a multigrid V-cycle algorithm.
According to an embodiment, a fluid simulation system may be configured to perform fluid simulation using a multigrid V-cycle algorithm.
The fluid simulation system may include: a state processing unit for defining a corresponding cell after restriction as a Dirichlet cell in the case a Dirichlet cell is present among cells before restriction, defining the corresponding cell after restriction as a Neumann cell in the case a Dirichlet cell is not present and a Neumann cell is present among the cells before restriction, and defining the corresponding cell after restriction as an interior cell in the case a Dirichlet cell and a Neumann cell are not present among the cells before restriction; a restriction operating unit for calculating a residual value of a corresponding interior cell after restriction by adding residual values of interior cells before restriction; and a prolongation operating unit for calculating a residual value of corresponding interior cells after prolongation by dividing a residual value of an interior cell before prolongation by the number of the corresponding interior cells after prolongation.
According to an embodiment, a fluid simulation method may be configured to perform fluid simulation using a multigrid V-cycle algorithm.
The fluid simulation method may include: converting a plurality of cells before restriction into a single cell after restriction; defining the cell after restriction as a Dirichlet cell in the case a Dirichlet cell is present among the plurality of cells before restriction, defining the cell after restriction as a Neumann cell in the case a Dirichlet cell is not present and a Neumann cell is present among the plurality of cells before restriction, and defining the cell after restriction as an interior cell in the case a Dirichlet cell and a Neumann cell are not present among the plurality of cells before restriction; calculating a residual value of a corresponding interior cell after restriction by adding residual values of a plurality of interior cells before restriction; converting a single cell before prolongation into a plurality of cells after prolongation; and calculating a residual value of a plurality of corresponding interior cells after prolongation by dividing a residual value of a single interior cell before prolongation by the number of the plurality of corresponding interior cells after prolongation.
If the fluid simulation system and method according to an aspect of the invention is used, when fluid simulation is calculated by using a multigrid V-cycle algorithm, state processing of each cell during restriction of grids and a process of converting a residual value of each cell such as restriction and prolongation operators may be improved.
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings.
A system and method for fluid simulation according to an embodiment may be configured to perform fluid simulation using a multigrid V-cycle algorithm.
Referring to
For this, the fluid simulation system according to an embodiment may include a state processing unit. In the case a Dirichlet is present among cells before restriction, the state processing unit may define the corresponding cell after restriction as a Dirichlet cell. Further, in the case a Dirichlet cell is not present and a Neumann cell is present among the cells before restriction, the state processing unit may define the corresponding cell after restriction as a Neumann cell. Furthermore, in the case a Dirichlet cell and a Neumann cell are not present among the cells before restriction, the state processing unit may define the corresponding cell after restriction as an interior cell.
Referring to
For this, the fluid simulation system according to an embodiment may include a restriction operating unit for calculating a residual value of the corresponding interior cell after restriction by adding residual values of interior cells before restriction. For example, in case of a two-dimensional lattice, a region of a single cell after restriction corresponds to a region of four cells before restriction. At this time, assuming that a residual value at a position xi on the grid before restriction is f(xi) and a residual value at a position X on a grid after restriction is F(X), F(X) may be calculated as in Math Figure 7 below.
In addition, in case of a three-dimensional lattice, since a region of a single cell after restriction corresponds to a region of eight cells before restriction, F(X) may be calculated as in Math Figure 8 below.
Referring to
For this, the fluid simulation system according to an embodiment may include a prolongation operating unit for calculating a residual value of the corresponding interior cells after prolongation by dividing a residual value of an interior cell before prolongation by the number of the corresponding interior cells after prolongation. For example, in case of a two-dimensional lattice, a region of a single cell before prolongation corresponds to a region of four cells after prolongation. At this time, assuming that a residual value at a position X on the grid before prolongation is F(X) and a residual value at a position xi on a grid after restriction is f(xi), f(xi) may be calculated as in Math Figure 9 below.
In addition, in case of a three-dimensional lattice, since a region of a single cell before prolongation corresponds to a region of eight cells after prolongation, f(xi) may be calculated as in Math Figure 10 below.
Though the present disclosure has been described with reference to the embodiments depicted in the drawings, it is just an example, and it should be understood by those skilled in the art that various modifications and equivalents can be made from the disclosure. However, such modifications should be regarded as being within the scope of the present disclosure. Therefore, the true scope of the present disclosure should be defined by the appended claims.
Embodiments relate to a system and method for fluid stimulation using a multigrid, and more particularly, to a system and method for fluid stimulation in which state processing of each cell and a conversion operator of a residual value are improved during conversion among grids.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR2010/008058 | 11/15/2010 | WO | 00 | 7/16/2013 |