Skip to content

fossil_cut_cells_3d ​

Source: src/lib/fossil_cut_cells_3d.f90

Dependencies

Contents ​

Derived Types ​

cut_cells_3d_t ​

Components ​

NameTypeAttributesDescription
nxinteger(kind=I4P)
nyinteger(kind=I4P)
nzinteger(kind=I4P)
face_xreal(kind=R8P)allocatable
face_yreal(kind=R8P)allocatable
face_zreal(kind=R8P)allocatable
face_x_centroidreal(kind=R8P)allocatable
face_y_centroidreal(kind=R8P)allocatable
face_z_centroidreal(kind=R8P)allocatable
face_x_piecesinteger(kind=I4P)allocatable
face_y_piecesinteger(kind=I4P)allocatable
face_z_piecesinteger(kind=I4P)allocatable
face_x_closedlogicalallocatable
face_y_closedlogicalallocatable
face_z_closedlogicalallocatable
alphareal(kind=R8P)allocatable
centroidreal(kind=R8P)allocatable
wet_areareal(kind=R8P)allocatable
wet_centroidreal(kind=R8P)allocatable
wet_normalreal(kind=R8P)allocatable
closedlogicalallocatable
piecesinteger(kind=I4P)allocatable
first_pieceinteger(kind=I4P)allocatable
npinteger(kind=I4P)
piece_cellinteger(kind=I4P)allocatable
piece_volumereal(kind=R8P)allocatable
piece_centroidreal(kind=R8P)allocatable
piece_wet_areareal(kind=R8P)allocatable
piece_wet_centroidreal(kind=R8P)allocatable
piece_wet_normalreal(kind=R8P)allocatable
piece_facereal(kind=R8P)allocatable
edge_xreal(kind=R8P)allocatable
edge_yreal(kind=R8P)allocatable
edge_zreal(kind=R8P)allocatable
node_inlogicalallocatable
moments_orderinteger(kind=I4P)
piece_momentsreal(kind=R8P)allocatable
piece_wall_momentsreal(kind=R8P)allocatable
piece_face_momentsreal(kind=R8P)allocatable
face_x_momentsreal(kind=R8P)allocatable
face_y_momentsreal(kind=R8P)allocatable
face_z_momentsreal(kind=R8P)allocatable
quad_startinteger(kind=I4P)allocatable
quad_pointreal(kind=R8P)allocatable
quad_weightreal(kind=R8P)allocatable
quad_statusinteger(kind=I4P)allocatable
wall_quad_startinteger(kind=I4P)allocatable
wall_quad_pointreal(kind=R8P)allocatable
wall_quad_weightreal(kind=R8P)allocatable

pierce_t ​

Components ​

NameTypeAttributesDescription
edgeinteger(kind=I4P)
treal(kind=R8P)
enterlogical
polyinteger(kind=I4P)

Subroutines ​

cut_cells_3d ​

fortran
subroutine cut_cells_3d(surface, x, y, z, cut, status, links, edges, moments_order, quadrature)

Arguments

NameTypeIntentAttributesDescription
surfacetype(surface_stl_object)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(kind=R8P)in
cuttype(cut_cells_3d_t)out
statusinteger(kind=I4P)outoptional
linkstype(cut_links_t)outoptional
edgeslogicalinoptional
moments_orderinteger(kind=I4P)inoptional
quadraturelogicalinoptional

Call graph

cut_pieces_3d ​

fortran
subroutine cut_pieces_3d(surface, x, y, z, cut, mo, qd, piv_piece, piv_edge, piv_lo, piv_hi, px, py, pz)

Arguments

NameTypeIntentAttributesDescription
surfacetype(surface_stl_object)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(kind=R8P)in
cuttype(cut_cells_3d_t)inout
mointeger(kind=I4P)in
qdlogicalin
piv_pieceinteger(kind=I4P)outallocatable, optional
piv_edgeinteger(kind=I4P)outallocatable, optional
piv_loreal(kind=R8P)outallocatable, optional
piv_hireal(kind=R8P)outallocatable, optional
pxtype(cut_cells_2d_t)inoptional
pytype(cut_cells_2d_t)inoptional
pztype(cut_cells_2d_t)inoptional

Call graph

cell_pieces ​

fortran
subroutine cell_pieces(tri, nrm, lst, c0, c1, cs, npieces, pm, want_iv, ivp_o, ive_o, ivl_o, ivh_o, mo, pvw, pwm, pfm, qd, qpt, qw, qst, wpt, wwt, wst, qwn)

Arguments

NameTypeIntentAttributesDescription
trireal(kind=R8P)in
nrmreal(kind=R8P)in
lstinteger(kind=I4P)in
c0real(kind=R8P)in
c1real(kind=R8P)in
csinteger(kind=I4P)in
npiecesinteger(kind=I4P)out
pmreal(kind=R8P)outallocatable
want_ivlogicalin
ivp_ointeger(kind=I4P)outallocatable
ive_ointeger(kind=I4P)outallocatable
ivl_oreal(kind=R8P)outallocatable
ivh_oreal(kind=R8P)outallocatable
mointeger(kind=I4P)in
pvwreal(kind=R8P)outallocatable
pwmreal(kind=R8P)outallocatable
pfmreal(kind=R8P)outallocatable
qdlogicalin
qptreal(kind=R8P)outallocatable
qwreal(kind=R8P)outallocatable
qstinteger(kind=I4P)outallocatable
wptreal(kind=R8P)outallocatable
wwtreal(kind=R8P)outallocatable
wstinteger(kind=I4P)outallocatable
qwninteger(kind=I4P)outallocatable

Call graph

fortran
subroutine links_3d(cut, x, y, z, px, py, pz, piv_piece, piv_edge, piv_lo, piv_hi, links)

Arguments

NameTypeIntentAttributesDescription
cuttype(cut_cells_3d_t)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(kind=R8P)in
pxtype(cut_cells_2d_t)in
pytype(cut_cells_2d_t)in
pztype(cut_cells_2d_t)in
piv_pieceinteger(kind=I4P)in
piv_edgeinteger(kind=I4P)in
piv_loreal(kind=R8P)in
piv_hireal(kind=R8P)in
linkstype(cut_links_t)out

Call graph

edge_fractions ​

fortran
subroutine edge_fractions(surface, x, y, z, cut, all_edges)

Arguments

NameTypeIntentAttributesDescription
surfacetype(surface_stl_object)in
xreal(kind=R8P)in
yreal(kind=R8P)in
zreal(kind=R8P)in
cuttype(cut_cells_3d_t)inout
all_edgeslogicalin

Call graph

line_fractions ​

fortran
subroutine line_fractions(surface, axis, a, b, e, frac, inside)

Arguments

NameTypeIntentAttributesDescription
surfacetype(surface_stl_object)in
axisinteger(kind=I4P)in
areal(kind=R8P)in
breal(kind=R8P)in
ereal(kind=R8P)in
fracreal(kind=R8P)outallocatable
insidelogicaloutallocatable

Call graph

sort_pierce ​

Attributes: pure

fortran
subroutine sort_pierce(pc, n)

Arguments

NameTypeIntentAttributesDescription
pctype(pierce_t)inout
ninteger(kind=I4P)in

Call graph

sort_points ​

fortran
subroutine sort_points(key, idx)

Arguments

NameTypeIntentAttributesDescription
keyreal(kind=R8P)in
idxinteger(kind=I4P)out

Call graph

clip_flags ​

Attributes: pure

fortran
subroutine clip_flags(p, fl, n, ax, level, keep_above, bit)

Arguments

NameTypeIntentAttributesDescription
preal(kind=R8P)inout
flinteger(kind=I4P)inout
ninteger(kind=I4P)inout
axinteger(kind=I4P)in
levelreal(kind=R8P)in
keep_abovelogicalin
bitinteger(kind=I4P)in

Call graph

tri_terms ​

Attributes: pure

fortran
subroutine tri_terms(p1, p2, p3, a)

Arguments

NameTypeIntentAttributesDescription
p1real(kind=R8P)in
p2real(kind=R8P)in
p3real(kind=R8P)in
areal(kind=R8P)inout

Call graph

clip_plane ​

Attributes: pure

fortran
subroutine clip_plane(p, n, ax, level, keep_above)

Arguments

NameTypeIntentAttributesDescription
preal(kind=R8P)inout
ninteger(kind=I4P)inout
axintegerin
levelreal(kind=R8P)in
keep_abovelogicalin

Call graph

Functions ​

section_moments ​

Returns: real(kind=R8P)

fortran
function section_moments(c2, iu, iv, nm2) result(m)

Arguments

NameTypeIntentAttributesDescription
c2type(cut_cells_2d_t)in
iuinteger(kind=I4P)in
ivinteger(kind=I4P)in
nm2integer(kind=I4P)in

Call graph

volume_moments ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function volume_moments(wv, fm, fp, hx, e2, e3) result(m)

Arguments

NameTypeIntentAttributesDescription
wvreal(kind=R8P)in
fmreal(kind=R8P)in
fpreal(kind=R8P)in
hxreal(kind=R8P)in
e2integer(kind=I4P)in
e3integer(kind=I4P)in

Call graph

split_closes ​

Attributes: pure

Returns: logical

fortran
function split_closes(pm, h, alpha, faces) result(ok)

Arguments

NameTypeIntentAttributesDescription
pmreal(kind=R8P)in
hreal(kind=R8P)in
alphareal(kind=R8P)in
facesreal(kind=R8P)in

Call graph

col_index ​

Attributes: pure

Returns: integer(kind=i4p)

fortran
function col_index(w, e) result(k)

Arguments

NameTypeIntentAttributesDescription
wreal(kind=R8P)in
ereal(kind=R8P)in

Call graph

edge_index ​

Attributes: pure

Returns: integer(kind=i4p)

fortran
function edge_index(k, sides)

Arguments

NameTypeIntentAttributesDescription
kinteger(kind=I4P)in
sidesinteger(kind=I4P)in

Call graph

corner_of ​

Attributes: pure

Returns: integer(kind=i4p)

fortran
function corner_of(e, side)

Arguments

NameTypeIntentAttributesDescription
einteger(kind=I4P)in
sideinteger(kind=I4P)in

edge_of ​

Attributes: pure

Returns: integer(kind=i4p)

fortran
function edge_of(fl)

Arguments

NameTypeIntentAttributesDescription
flinteger(kind=I4P)in

Call graph

lexless ​

Attributes: pure

Returns: logical

fortran
function lexless(a, b)

Arguments

NameTypeIntentAttributesDescription
areal(kind=R8P)in
breal(kind=R8P)in

Call graph

cross3 ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function cross3(a, b) result(c)

Arguments

NameTypeIntentAttributesDescription
areal(kind=R8P)in
breal(kind=R8P)in

Call graph

col_of ​

Attributes: pure

Returns: integer(kind=i4p)

fortran
function col_of(w, e)

Arguments

NameTypeIntentAttributesDescription
wreal(kind=R8P)in
ereal(kind=R8P)in

Call graph