doc:user:elements:specials:mass
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:user:elements:specials:mass [2013/07/12 19:28] – external edit 127.0.0.1 | doc:user:elements:specials:mass [2017/02/24 15:26] (current) – [Interaction] papeleux | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Mass ====== | ====== Mass ====== | ||
| - | ===== Matériaux | + | ===== Materials |
| - | Le comportement d'un élément de masse se définit de la même façon que les [[doc:user: | + | A mass is defined is the same way as volume materials: |
| materialno = materialset.define (number, type) | materialno = materialset.define (number, type) | ||
| materialno = materialset(number) | materialno = materialset(number) | ||
| - | materialno.put(param, | + | materialno.put(param, |
| materialno.depend(param, | materialno.depend(param, | ||
| ... | ... | ||
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| ==== ConstantMassMaterial ==== | ==== ConstantMassMaterial ==== | ||
| Line 20: | Line 20: | ||
| === Description === | === Description === | ||
| - | Masse concentrée, constante. | + | Constant, punctual mass |
| - | === Paramètres | + | === Parameters |
| + | ^ | ||
| + | | Mass | MASS_DENSITY | ||
| - | ^ Nom | + | ===== Element===== |
| - | | Masse | MASS_DENSITY | + | |
| - | ===== Elément===== | + | Once the [[#Materials|material]] is defined, it must be associated to an '' |
| - | + | ||
| - | Une fois la [[#Matériaux|matériau]] définie, il faut l' | + | |
| prp = ElementProperties(typeEl) | prp = ElementProperties(typeEl) | ||
| - | prp.put(param1, | + | prp.put(param1, |
| prp.depend(param1, | prp.depend(param1, | ||
| - | prp.put(param2, | + | prp.put(param2, |
| prp.depend(param2, | prp.depend(param2, | ||
| ... | ... | ||
| - | où | + | where |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| ==== Mass[2|3]DElement ==== | ==== Mass[2|3]DElement ==== | ||
| - | Eléments de masse concentrée. Ils doivent être reliés à une [[# | + | Punctual mass element. They must be associated to a '' |
| - | === Paramètres | + | |
| + | === Parameters | ||
| + | ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | ^ Code Metafor | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| Line 63: | Line 64: | ||
| ===== Interaction ===== | ===== Interaction ===== | ||
| - | Enfin, lorsque l' | + | Finally, once the '' |
| - | app = FieldApplicator(no) | + | app = Mechanism0DInteraction(no) |
| app.push(gObject1) | app.push(gObject1) | ||
| app.push(gObject2) | app.push(gObject2) | ||
| ... | ... | ||
| - | app.addProperty(prp) | + | app.addProperty(prp) |
| - | interactionset.add(app) | + | interactionset.add(app) |
| - | ou selon | + | or |
| - | app = interactionset.add(FieldApplicator(no)) #add renvoie une référence | + | app = interactionset.add(Mechanism0DInteraction(no)) #add returns a reference |
| app.push(gObject1) | app.push(gObject1) | ||
| app.push(gObject2) | app.push(gObject2) | ||
| ... | ... | ||
| - | app.addProperty(prp) | + | app.addProperty(prp) |
| - | où | + | where |
| - | | '' | + | | '' |
| - | |'' | + | |'' |
| - | | '' | + | | '' |
doc/user/elements/specials/mass.1373650080.txt.gz · Last modified: (external edit)
