Skip to content

fossil_mass_properties ​

Source: src/lib/fossil_mass_properties.f90

Dependencies

Contents ​

Derived Types ​

moments_accumulator_t ​

Components ​

NameTypeAttributesDescription
sreal(kind=R8P)
creal(kind=R8P)

Subroutines ​

add_term ​

Attributes: pure

fortran
subroutine add_term(acc, k, x)

Arguments

NameTypeIntentAttributesDescription
acctype(moments_accumulator_t)inout
kinteger(kind=I4P)in
xreal(kind=R8P)in

Call graph

accumulate_tetrahedron ​

Attributes: pure

fortran
subroutine accumulate_tetrahedron(acc, a, b, c)

Arguments

NameTypeIntentAttributesDescription
acctype(moments_accumulator_t)inout
areal(kind=R8P)in
breal(kind=R8P)in
creal(kind=R8P)in

Call graph

accumulate_segment ​

Attributes: pure

fortran
subroutine accumulate_segment(acc, p, q)

Arguments

NameTypeIntentAttributesDescription
acctype(moments_accumulator_t)inout
preal(kind=R8P)in
qreal(kind=R8P)in

Call graph

moments_to_properties_3d ​

Attributes: pure

fortran
subroutine moments_to_properties_3d(acc, reference, density, about, volume, mass, center, inertia)

Arguments

NameTypeIntentAttributesDescription
acctype(moments_accumulator_t)in
referencereal(kind=R8P)in
densityreal(kind=R8P)in
aboutreal(kind=R8P)inoptional
volumereal(kind=R8P)out
massreal(kind=R8P)out
centerreal(kind=R8P)out
inertiareal(kind=R8P)out

Call graph

moments_to_properties_2d ​

Attributes: pure

fortran
subroutine moments_to_properties_2d(acc, reference, density, about, area, mass, center, second_moments)

Arguments

NameTypeIntentAttributesDescription
acctype(moments_accumulator_t)in
referencereal(kind=R8P)in
densityreal(kind=R8P)in
aboutreal(kind=R8P)inoptional
areareal(kind=R8P)out
massreal(kind=R8P)out
centerreal(kind=R8P)out
second_momentsreal(kind=R8P)out

Call graph

symmetric3_eigen ​

Attributes: pure

fortran
subroutine symmetric3_eigen(a, w, v)

Arguments

NameTypeIntentAttributesDescription
areal(kind=R8P)in
wreal(kind=R8P)out
vreal(kind=R8P)out

Call graph

symmetric2_eigen ​

Attributes: pure

fortran
subroutine symmetric2_eigen(m, w, angle)

Arguments

NameTypeIntentAttributesDescription
mreal(kind=R8P)in
wreal(kind=R8P)out
anglereal(kind=R8P)out

Call graph

Functions ​

accumulator_total ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function accumulator_total(acc) result(m)

Arguments

NameTypeIntentAttributesDescription
acctype(moments_accumulator_t)in

Call graph

inertia_to_world ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function inertia_to_world(inertia, pose) result(inertia_w)

Arguments

NameTypeIntentAttributesDescription
inertiareal(kind=R8P)in
posetype(rigid_pose_t)in

principal_frame ​

Attributes: pure

Returns: type(rigid_pose_t)

fortran
function principal_frame(center, principal_axes) result(pose)

Arguments

NameTypeIntentAttributesDescription
centerreal(kind=R8P)in
principal_axesreal(kind=R8P)in