version 0.6.0
Loading...
Searching...
No Matches

Computational geometry tool to fill a convex polyhedron with a given volume fraction in a given direction More...

Data Types

type  mod_cg3_flood_polyhedron::t_chained_polygon_item
 Single item of the structure that track the state of the current algorithm. This structure contains a polygon stored as a list of point and edges. It also embbed information about neighbor edge, neighbor face, and if the current point is a point of the polyhedron. More...
 
type  mod_cg3_flood_polyhedron::t_chained_polygon
 Structure to track the state of the current algorithm. It stores the status of the cap polygon. More...
 

Functions/Subroutines

pure subroutine, public mod_cg3_flood_polyhedron::cg3_flood_polyhedron (polyhedron, normal, volume, polyhedron_full, polyhedron_empty, polygon)
 Flood algorithm based on Diot & Francois 2016 publication.
 

Detailed Description

Function/Subroutine Documentation

◆ 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]polyhedronany convex polyhedron. Must be fully initialized.
[in]normalflood direction
[in]volumeprescribed volume to flood
[out]polyhedron_fullpart of polyhedron flooded with prescribed volume
[out]polyhedron_emptyempty part of polyhedron
[out]polygoncap polygon