fossil_mass_properties
Source: src/lib/fossil_mass_properties.f90
Dependencies
Contents
- moments_accumulator_t
- add_term
- accumulate_tetrahedron
- accumulate_segment
- moments_to_properties_3d
- moments_to_properties_2d
- symmetric3_eigen
- symmetric2_eigen
- accumulator_total
- inertia_to_world
- principal_frame
Derived Types
moments_accumulator_t
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
s | real(kind=R8P) | ||
c | real(kind=R8P) |
Subroutines
add_term
Attributes: pure
fortran
subroutine add_term(acc, k, x)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
acc | type(moments_accumulator_t) | inout | ||
k | integer(kind=I4P) | in | ||
x | real(kind=R8P) | in |
Call graph
accumulate_tetrahedron
Attributes: pure
fortran
subroutine accumulate_tetrahedron(acc, a, b, c)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
acc | type(moments_accumulator_t) | inout | ||
a | real(kind=R8P) | in | ||
b | real(kind=R8P) | in | ||
c | real(kind=R8P) | in |
Call graph
accumulate_segment
Attributes: pure
fortran
subroutine accumulate_segment(acc, p, q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
acc | type(moments_accumulator_t) | inout | ||
p | real(kind=R8P) | in | ||
q | real(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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
acc | type(moments_accumulator_t) | in | ||
reference | real(kind=R8P) | in | ||
density | real(kind=R8P) | in | ||
about | real(kind=R8P) | in | optional | |
volume | real(kind=R8P) | out | ||
mass | real(kind=R8P) | out | ||
center | real(kind=R8P) | out | ||
inertia | real(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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
acc | type(moments_accumulator_t) | in | ||
reference | real(kind=R8P) | in | ||
density | real(kind=R8P) | in | ||
about | real(kind=R8P) | in | optional | |
area | real(kind=R8P) | out | ||
mass | real(kind=R8P) | out | ||
center | real(kind=R8P) | out | ||
second_moments | real(kind=R8P) | out |
Call graph
symmetric3_eigen
Attributes: pure
fortran
subroutine symmetric3_eigen(a, w, v)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
a | real(kind=R8P) | in | ||
w | real(kind=R8P) | out | ||
v | real(kind=R8P) | out |
Call graph
symmetric2_eigen
Attributes: pure
fortran
subroutine symmetric2_eigen(m, w, angle)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
m | real(kind=R8P) | in | ||
w | real(kind=R8P) | out | ||
angle | real(kind=R8P) | out |
Call graph
Functions
accumulator_total
Attributes: pure
Returns: real(kind=R8P)
fortran
function accumulator_total(acc) result(m)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
acc | type(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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
inertia | real(kind=R8P) | in | ||
pose | type(rigid_pose_t) | in |
principal_frame
Attributes: pure
Returns: type(rigid_pose_t)
fortran
function principal_frame(center, principal_axes) result(pose)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
center | real(kind=R8P) | in | ||
principal_axes | real(kind=R8P) | in |