Skip to content

fossil_cut_cells_2d ​

Source: src/lib/fossil_cut_cells_2d.f90

Dependencies

Contents ​

Derived Types ​

cut_cells_2d_t ​

Components ​

NameTypeAttributesDescription
nxinteger(kind=I4P)
nyinteger(kind=I4P)
alphareal(kind=R8P)allocatable
aperturereal(kind=R8P)allocatable
centroidreal(kind=R8P)allocatable
wet_lengthreal(kind=R8P)allocatable
wet_centroidreal(kind=R8P)allocatable
wet_normalreal(kind=R8P)allocatable
piecesinteger(kind=I4P)allocatable
first_pieceinteger(kind=I4P)allocatable
closedlogicalallocatable
npinteger(kind=I4P)
piece_cellinteger(kind=I4P)allocatable
piece_areareal(kind=R8P)allocatable
piece_centroidreal(kind=R8P)allocatable
piece_wet_lengthreal(kind=R8P)allocatable
piece_wet_normalreal(kind=R8P)allocatable
piece_aperturereal(kind=R8P)allocatable
piece_iv_startinteger(kind=I4P)allocatable
piece_iv_edgeinteger(kind=I4P)allocatable
piece_iv_loreal(kind=R8P)allocatable
piece_iv_hireal(kind=R8P)allocatable
node_inlogicalallocatable
moments_orderinteger(kind=I4P)
piece_momentsreal(kind=R8P)allocatable
piece_wall_momentsreal(kind=R8P)allocatable
piece_seg_startinteger(kind=I4P)allocatable
piece_segreal(kind=R8P)allocatable
piece_seg_walllogicalallocatable
quad_startinteger(kind=I4P)allocatable
quad_pointreal(kind=R8P)allocatable
quad_weightreal(kind=R8P)allocatable
wall_quad_startinteger(kind=I4P)allocatable
wall_quad_pointreal(kind=R8P)allocatable
wall_quad_weightreal(kind=R8P)allocatable

xing_t ​

Components ​

NameTypeAttributesDescription
edgeinteger(kind=I4P)
posreal(kind=R8P)
seginteger(kind=I4P)
preal(kind=R8P)

piece_t ​

Components ​

NameTypeAttributesDescription
cellinteger(kind=I4P)
seginteger(kind=I4P)
areal(kind=R8P)
breal(kind=R8P)
tainteger(kind=I4P)
tbinteger(kind=I4P)

ctx_t ​

Components ​

NameTypeAttributesDescription
nxinteger(kind=I4P)
nyinteger(kind=I4P)
xreal(kind=R8P)allocatable
yreal(kind=R8P)allocatable
node_inlogicalallocatable
xstype(xing_t)allocatable
pstype(piece_t)allocatable
xstartinteger(kind=I4P)allocatable
xordinteger(kind=I4P)allocatable
pstartinteger(kind=I4P)allocatable
pordinteger(kind=I4P)allocatable
npbinteger(kind=I4P)
pareal(kind=R8P)allocatable
pcxreal(kind=R8P)allocatable
pcyreal(kind=R8P)allocatable
pwlreal(kind=R8P)allocatable
pwxreal(kind=R8P)allocatable
pwyreal(kind=R8P)allocatable
pciinteger(kind=I4P)allocatable
pcjinteger(kind=I4P)allocatable
papreal(kind=R8P)allocatable
nivinteger(kind=I4P)
with_ivlogical
nminteger(kind=I4P)
meinteger(kind=I4P)allocatable
pmomreal(kind=R8P)allocatable
pwmreal(kind=R8P)allocatable
with_bndlogical
nbdinteger(kind=I4P)
bdreal(kind=R8P)allocatable
bdwlogicalallocatable
bdpinteger(kind=I4P)allocatable
ivpinteger(kind=I4P)allocatable
iveinteger(kind=I4P)allocatable
ivlreal(kind=R8P)allocatable
ivhreal(kind=R8P)allocatable

Subroutines ​

compute_cut_cells_2d ​

fortran
subroutine compute_cut_cells_2d(u, v, next, x, y, cc, status, with_iv, order, with_bnd, with_quad)

Arguments

NameTypeIntentAttributesDescription
ureal(kind=R8P)in
vreal(kind=R8P)in
nextinteger(kind=I4P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
cctype(cut_cells_2d_t)out
statusinteger(kind=I4P)out
with_ivlogicalin
orderinteger(kind=I4P)in
with_bndlogicalin
with_quadlogicalin

Call graph

one_cell ​

fortran
subroutine one_cell(cid, cx, cc)

Arguments

NameTypeIntentAttributesDescription
cidinteger(kind=I4P)in
cxtype(ctx_t)inout
cctype(cut_cells_2d_t)inout

Call graph

quiet_cell ​

fortran
subroutine quiet_cell(cid, cx, cc)

Arguments

NameTypeIntentAttributesDescription
cidinteger(kind=I4P)in
cxtype(ctx_t)inout
cctype(cut_cells_2d_t)inout

Call graph

add_bd ​

fortran
subroutine add_bd(cx, ip, a, b, wall)

Arguments

NameTypeIntentAttributesDescription
cxtype(ctx_t)inout
ipinteger(kind=I4P)in
areal(kind=R8P)in
breal(kind=R8P)in
walllogicalin

Call graph

boundaries_out ​

fortran
subroutine boundaries_out(cx, cc)

Arguments

NameTypeIntentAttributesDescription
cxtype(ctx_t)in
cctype(cut_cells_2d_t)inout

Call graph

quadrature_out ​

fortran
subroutine quadrature_out(cc, x, y)

Arguments

NameTypeIntentAttributesDescription
cctype(cut_cells_2d_t)inout
xreal(kind=R8P)in
yreal(kind=R8P)in

Call graph

add_iv ​

fortran
subroutine add_iv(cx, ip, ed, lo, hi)

Arguments

NameTypeIntentAttributesDescription
cxtype(ctx_t)inout
ipinteger(kind=I4P)in
edinteger(kind=I4P)in
loreal(kind=R8P)in
hireal(kind=R8P)in

Call graph

add_piece ​

fortran
subroutine add_piece(cx, ii, jj, ar, mx, my, wl, wnn)

Arguments

NameTypeIntentAttributesDescription
cxtype(ctx_t)inout
iiinteger(kind=I4P)in
jjinteger(kind=I4P)in
arreal(kind=R8P)in
mxreal(kind=R8P)in
myreal(kind=R8P)in
wlreal(kind=R8P)in
wnnreal(kind=R8P)in

Call graph

green ​

Attributes: pure

fortran
subroutine green(a, b, g)

Arguments

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

Call graph

node_flags ​

fortran
subroutine node_flags(u, v, next, x, y, node_in)

Arguments

NameTypeIntentAttributesDescription
ureal(kind=R8P)in
vreal(kind=R8P)in
nextinteger(kind=I4P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
node_inlogicaloutallocatable

Call graph

walk_all ​

fortran
subroutine walk_all(u, v, next, x, y, xs, nxs, ps, nps)

Arguments

NameTypeIntentAttributesDescription
ureal(kind=R8P)in
vreal(kind=R8P)in
nextinteger(kind=I4P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
xstype(xing_t)outallocatable
nxsinteger(kind=I4P)out
pstype(piece_t)outallocatable
npsinteger(kind=I4P)out

Call graph

index_crossings ​

fortran
subroutine index_crossings(xs, n, ne, start, ord)

Arguments

NameTypeIntentAttributesDescription
xstype(xing_t)in
ninteger(kind=I4P)in
neinteger(kind=I4P)in
startinteger(kind=I4P)outallocatable
ordinteger(kind=I4P)outallocatable

Call graph

index_pieces ​

fortran
subroutine index_pieces(ps, n, ncell, start, ord)

Arguments

NameTypeIntentAttributesDescription
pstype(piece_t)in
ninteger(kind=I4P)in
ncellinteger(kind=I4P)in
startinteger(kind=I4P)outallocatable
ordinteger(kind=I4P)outallocatable

Call graph

Functions ​

quiet ​

Returns: logical

fortran
function quiet(cx, cid)

Arguments

NameTypeIntentAttributesDescription
cxtype(ctx_t)in
cidinteger(kind=I4P)in

Call graph

vedge ​

Returns: integer(kind=i4p)

fortran
function vedge(cx, ll, kk)

Arguments

NameTypeIntentAttributesDescription
cxtype(ctx_t)in
llinteger(kind=I4P)in
kkinteger(kind=I4P)in

Call graph

hedge ​

Returns: integer(kind=i4p)

fortran
function hedge(cx, kk, ll)

Arguments

NameTypeIntentAttributesDescription
cxtype(ctx_t)in
kkinteger(kind=I4P)in
llinteger(kind=I4P)in

Call graph

ray_hits ​

Attributes: pure

Returns: logical

fortran
function ray_hits(pt, a, b)

Arguments

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

Call graph

corner_side ​

Attributes: pure

Returns: integer(kind=i4p)

fortran
function corner_side(pu, pv, qu, qv, cu, cv)

Arguments

NameTypeIntentAttributesDescription
pureal(kind=R8P)in
pvreal(kind=R8P)in
qureal(kind=R8P)in
qvreal(kind=R8P)in
cureal(kind=R8P)in
cvreal(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