doc:user:elements:specials:mass
This is an old revision of the document!
Table of Contents
Mass
Materials
A mass is defined is the same way as volume materials:
materialno = materialset.define (number, type) materialno = materialset(number) materialno.put(param, value) materialno.depend(param, fct, Key(Lock))) ...
number | mass number (must be unique for all element in materialset, not just for mass elements) |
type | type of mass (for example ConstantMassMaterial) |
param | name of the mass parameter (for example MASS_DENSITY) |
value | value of the corresponding parameter |
fct | function which characterizes the dependency of the property (optional: no fct if no dependency) |
Lock | Lock which defines the dependency variable of the property (compulsory if there is a dependency) |
ConstantMassMaterial
Description
Constant, punctual mass
Parameters
| Name | Metafor Code |
|---|---|
| Mass | MASS_DENSITY |
Element
Once the material is defined, it must be associated to an ElementProperties:
prp = ElementProperties(typeEl) prp.put(param1, value1) prp.depend(param1, fct1, Lock1)) #facultatif prp.put(param2, value2) prp.depend(param2, fct2, Lock2) # facultatif ...
where
typeEl | desired element (for example Mass[2|3]DElement for mass elements) |
param1, param2 | |
valeur1, valeur2 | value of the corresponding property |
fct1, fct2 | function which characterizes the dependency of the property (optional: no fct if no dependency) |
Lock1, Lock2 | Lock which defines the dependency variable of the property (compulsory if there is a dependency) |
Mass[2|3]DElement
Punctual mass element. They must be associated to a FieldApplicator interaction.
Parameters
| Name | Metafor Code | Dependency |
|---|---|---|
MATERIAL | Number of the mass material to consider | - |
STIFFMETHOD | Method used to calculate the stiffness matrix = STIFF_ANALYTIC : analytic matrix (default)\\= STIFF_NUMERIC : numerical matrix | - |
OMEGA | Angular speed (°/s) to take into account centrifugal forces. If MDE_IQSI=1 and MDE_NDYN=2, centrifugal forces are calculated during a quasi-static equilibrium phase. Then, they are replaced by the real structural rotation. | time |
OMEGA_PT1 | Number of the first point which defines the rotation axis. Can be moved. | - |
OMEGA_PT2 | Number of the first point which defines the rotation axis. Can be moved. | - |
GRAVITY_X / GRAVITY_Y / GRAVITY_Z | gravity | time |
Interaction
Finally, once the Mass[2|3]DElement ElementProperties is defined, the corresponding interaction is generated with the FieldApplicator. To do so, the corresponding geometric mesh element must be generated using 0D Meshers (Points). Once done, the interaction can be defined and included in the interactionset:
app = FieldApplicator(no) app.push(gObject1) app.push(gObject2) ... app.addProperty(prp) # association of an ElementProperties interactionset.add(app) # the interaction is added in InteractionSet
or
app = interactionset.add(FieldApplicator(no)) #add returns a reference app.push(gObject1) app.push(gObject2) ... app.addProperty(prp) # association of an ElementProperties
where
no | number of the Interaction (which is to say the FieldApplicator) |
gObject1 | mesh geometric entity where the finite elements are applied |
prp | Properties of mass elements to generate. |
doc/user/elements/specials/mass.1412352076.txt.gz · Last modified: (external edit)
