commit:2018:07_19
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
commit:2018:07_19 [2018/07/18 11:19] – cerquaglia | commit:2018:07_19 [2018/07/18 11:49] – cerquaglia | ||
---|---|---|---|
Line 9: | Line 9: | ||
< | < | ||
valuesmanager = metafor.getValuesManager() | valuesmanager = metafor.getValuesManager() | ||
- | extractor1 = InteractionGravityCenterAndMassValueExtractor(gObject) | + | extractor1 = InteractionGravityCenterAndMassValueExtractor(interaction) |
valuesmanager.add(nbr, | valuesmanager.add(nbr, | ||
</ | </ | ||
- | + | ||
- | 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. | + | At each archiving step the extractor fills a four columns text file, where columns 1-3 contain x, y, and z coordinates of the center of gravity respectively, |
+ | |||
+ | < | ||
+ | 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 mass, the mass matrix is directly employed.</ | ||
<note important> | <note important> | ||
- | 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 $MASS_DENSITY$ different from zero, otherwise a $FATAL_ERROR$ is raised. | + | 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 '' |
</ | </ | ||
===== 2. Tests ===== | ===== 2. Tests ===== | ||
- | ===== 3. Minor modifications ===== | + | For the moment, a gravity center and mass extractor has been added in '' |
Line 27: | Line 30: | ||
< | < | ||
- | [a] apps/gps/contThickEvol.py | + | [m] apps/imp/bounce.py |
+ | [m] apps/ | ||
+ | [m] apps/ | ||
+ | [m] apps/ | ||
+ | [m] apps/ | ||
+ | [m] apps/ | ||
+ | [m] apps/ | ||
+ | [m] apps/ | ||
+ | [m] apps/ | ||
+ | [m] mtThixo/ | ||
+ | [m] mtThixo/ | ||
+ | [m] mtThixo/ | ||
+ | [m] mtThixo/ | ||
</ | </ |
commit/2018/07_19.txt · Last modified: 2018/07/19 09:05 by papeleux