The VOFI (Volume Of Fluid Initializer) library has been developed to initialize the volume fraction field determined by implicitly-defined interfaces. The major conceptual changes in the numerical algorithms of the library are discussed and a few new features, including the computation of the reference phase centroid and of the interface length/area, are presented and applied to grid cells that are cuboids. Several numerical tests are considered to demonstrate both the accuracy of the new features, as the grid resolution and the number of integration points are varied, and the considerably improved efficiency of the library with respect to its previous version. A few of these tests are also included in the software distribution written in C, examples of C++ and Fortran interfaces are also provided. Program summary Program title: VOFI - Volume Of Fluid Initializer CPC Library link to program files: https://doi .org /10 .17632/mbmzpbfxdz.1 Code Ocean capsule: https://codeocean .com /capsule /3817905 Licensing provisions: GPLv3 Programming language: C Journal reference of previous version: Comput. Phys. Commun. 200 (2016) 291-299 Does the new version supersede the previous version?: Yes. Reasons for the new version: Optimization of the library and new features has been added. Summary of revisions: Most of the routines have been rewritten, several numerical algorithms have been revised, as detailed in the paper, added features include the computation of the reference phase centroid and of the interface length in 2D and area in 3D; furthermore heights and triangulation data can now be printed for graphics. Nature of problem: The VOFI library computes the volume fraction of a cuboid cut by an interface described by a user-defined implicit function, and optionally the centroid of the cut volume and the area (length in 2D) of the portion of the interface inside the cell. Solution method: The VOFI library reorders the three Cartesian directions, x, y, z, in ascending order, x3, x2, x1, computes the integration limits along the third and second directions, respectively x3 and x2, and determines the local height function, along x1, that is the integrand of a double Gauss-Legendre integration with a variable number of nodes. Optionally, the same heights are used to compute the centroid of the cut volume and to triangulate the interface. (C) 2022 Elsevier B.V. All rights reserved.
Chierici, A., Chirco, L., Le Chenadec, V., Scardovelli, R., Yecko, P., Zaleski, S. (2022). An optimized VOFI library to initialize the volume fraction field. COMPUTER PHYSICS COMMUNICATIONS, 281, 1-11 [10.1016/j.cpc.2022.108506].
An optimized VOFI library to initialize the volume fraction field
Chierici, A;Scardovelli, R;
2022
Abstract
The VOFI (Volume Of Fluid Initializer) library has been developed to initialize the volume fraction field determined by implicitly-defined interfaces. The major conceptual changes in the numerical algorithms of the library are discussed and a few new features, including the computation of the reference phase centroid and of the interface length/area, are presented and applied to grid cells that are cuboids. Several numerical tests are considered to demonstrate both the accuracy of the new features, as the grid resolution and the number of integration points are varied, and the considerably improved efficiency of the library with respect to its previous version. A few of these tests are also included in the software distribution written in C, examples of C++ and Fortran interfaces are also provided. Program summary Program title: VOFI - Volume Of Fluid Initializer CPC Library link to program files: https://doi .org /10 .17632/mbmzpbfxdz.1 Code Ocean capsule: https://codeocean .com /capsule /3817905 Licensing provisions: GPLv3 Programming language: C Journal reference of previous version: Comput. Phys. Commun. 200 (2016) 291-299 Does the new version supersede the previous version?: Yes. Reasons for the new version: Optimization of the library and new features has been added. Summary of revisions: Most of the routines have been rewritten, several numerical algorithms have been revised, as detailed in the paper, added features include the computation of the reference phase centroid and of the interface length in 2D and area in 3D; furthermore heights and triangulation data can now be printed for graphics. Nature of problem: The VOFI library computes the volume fraction of a cuboid cut by an interface described by a user-defined implicit function, and optionally the centroid of the cut volume and the area (length in 2D) of the portion of the interface inside the cell. Solution method: The VOFI library reorders the three Cartesian directions, x, y, z, in ascending order, x3, x2, x1, computes the integration limits along the third and second directions, respectively x3 and x2, and determines the local height function, along x1, that is the integrand of a double Gauss-Legendre integration with a variable number of nodes. Optionally, the same heights are used to compute the centroid of the cut volume and to triangulate the interface. (C) 2022 Elsevier B.V. All rights reserved.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.