Computational geometry tool to fill a convex polyhedron with a given volume fraction in a given direction
More...
◆ cg3_flood_polyhedron()
pure subroutine, public mod_cg3_flood_polyhedron::cg3_flood_polyhedron |
( |
type(t_polyhedron), intent(in) | polyhedron, |
|
|
double precision, dimension(3), intent(in) | normal, |
|
|
double precision, intent(in) | volume, |
|
|
type(t_polyhedron), intent(out) | polyhedron_full, |
|
|
type(t_polyhedron), intent(out), optional | polyhedron_empty, |
|
|
type(t_chained_polygon), intent(out), optional | polygon ) |
Reference:
- Diot, S., & François, M. M. (2016). An interface reconstruction method based on an analytical formula for 3D arbitrary convex cells. Journal of Computational Physics, 305, 63-74. doi:10.1016/j.jcp.2015.10.011
- Parameters
-
[in] | polyhedron | any convex polyhedron. Must be fully initialized. |
[in] | normal | flood direction |
[in] | volume | prescribed volume to flood |
[out] | polyhedron_full | part of polyhedron flooded with prescribed volume |
[out] | polyhedron_empty | empty part of polyhedron |
[out] | polygon | cap polygon |