Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


commit:2018:07_19

This is an old revision of the document!


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 $MASS_DENSITY$ different from zero, otherwise a $FATAL_ERROR$ 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: 2018/07/18 11:19 by cerquaglia

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki