3 Routines description and usage¶
VOFTools utilizes the ISO_C_BINDING standard to ensure compatibility across Fortran, C, and Python interfaces.
Table 3.1. Data type aliases.
Alias |
Fortran |
C |
Python |
|---|---|---|---|
|
|
double |
float64 |
|
|
int |
int32 |
|
|
short |
int16 |
Table 3.1 defines the aliases for data types used throughout this manual.
To clarify data handling during subroutine calls, the argument intent labels in Table 3.2 are employed [1].
Table 3.2. Argument intent definitions.
Label |
Definition |
Behavior |
|---|---|---|
|
Input |
Read-only upon entry; remains unchanged by the routine |
|
Output |
Set by the routine upon return; entry values are ignored |
|
Input/Output |
Modified in-place; read by the routine and subsequently updated |
Table 3.3. Cell geometries considered in the test programs of Section 4.
Routine name |
Cell geometry |
|---|---|
3D |
|
|
Cube |
|
Irregular hexahedron |
|
Tetrahedron |
|
Dodecahedron |
|
Icosahedron |
|
Complex polyhedron with 32 vertices and 18 faces |
|
Non-convex pentagonal pyramid |
|
Non-convex cell obtained by substracting a pyramid to the cubic cell |
|
Stellated cube |
|
Non-convex hexahedron |
|
Stellated dodecahedron |
|
Stellated icosahedron |
|
Hollowed cube |
|
Drilled cube |
|
Zig zag prism |
|
VOFTools logo |
2D |
|
|
Square |
|
Regular hexagon |
|
Irregular triangle |
|
Irregular quadrangle |
|
Irregular pentagon |
|
Irregular hexagon |
|
Non-convex quadrangle |
|
Non-convex pentagon |
|
Non-convex hexagon |
|
Stellated hexagon |
|
Hollowed square |
|
Non-convex multi-square cell |
Once the installation is complete, the VOFTools routines and functions can subsequently be used in Fortran, C, and Python programs as described below (see the test programs provided in the supplied software).
- 3.1 Module integration and usage
- 3.2 Polyhedron and polygon geometries
- defpol3d
- enforv3d
- enforv3dsz
- enforvppa
- inte3d
- toolv3d
- intv3d
- intc3d
- inte3dface
- areaface
- intpv3dpa
- box3d
- pvfit
- systra
- cppol3d
- dist3d
- initf3d
- polout3d
- voftools_dim3d
- defpol2d
- enforv2d
- enforv2dsz
- inte2d
- toolv2d
- cppol2d
- dist2d
- initf2d
- polout2d
- voftools_dim2d
- voftoolslogo