commit:2018:07_19
This is an old revision of the document!
−Table of Contents
Commit 2018-07-17
1. Description
A center of gravity and mass extractor for interactions
has been implemented in Metafor.
The synthax is the same as other extractors:
valuesmanager = metafor.getValuesManager() someExtractor = InteractionGravityCenterAndMassValueExtractor(gObject) valuesmanager.add(nbr, extractor1, name = "TheNameYouWant") # manages extraction, result storage...
Since the evolution of the density is not directly tracked in Metafor, in order to take into account the density variation for the computation of the center of gravity and for the mass, the mass matrix is directly employed.
To compute the center of gravity and the mass of an interaction a density different from zero is needed. Pay attention, when you define your material properties, to explicitly define a MASSDENSITY different from zero, otherwise a FATALERROR is raised.
2. Tests
3. Minor modifications
Added [a] / deleted [d] / modified [m] / renamed [r] test cases
[a] apps/gps/contThickEvol.py
commit/2018/07_19.1531905541.txt.gz · Last modified: by cerquaglia