doc:user:elements:specials:mass
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:user:elements:specials:mass [2013/07/09 15:37] – created joris | doc:user:elements:specials:mass [2017/02/24 15:26] (current) – [Interaction] papeleux | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Mass ====== | ||
+ | ===== Materials ===== | ||
+ | A mass is defined is the same way as volume materials: | ||
+ | |||
+ | materialno = materialset.define (number, type) | ||
+ | materialno = materialset(number) | ||
+ | materialno.put(param, | ||
+ | materialno.depend(param, | ||
+ | ... | ||
+ | |||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |||
+ | ==== ConstantMassMaterial ==== | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Constant, punctual mass | ||
+ | |||
+ | === Parameters === | ||
+ | ^ | ||
+ | | Mass | MASS_DENSITY | ||
+ | |||
+ | ===== Element===== | ||
+ | |||
+ | Once the [[# | ||
+ | |||
+ | prp = ElementProperties(typeEl) | ||
+ | prp.put(param1, | ||
+ | prp.depend(param1, | ||
+ | prp.put(param2, | ||
+ | prp.depend(param2, | ||
+ | ... | ||
+ | |||
+ | where | ||
+ | |||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |||
+ | ==== Mass[2|3]DElement ==== | ||
+ | |||
+ | Punctual mass element. They must be associated to a '' | ||
+ | |||
+ | === Parameters === | ||
+ | ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Interaction ===== | ||
+ | |||
+ | Finally, once the '' | ||
+ | |||
+ | app = Mechanism0DInteraction(no) | ||
+ | app.push(gObject1) | ||
+ | app.push(gObject2) | ||
+ | ... | ||
+ | app.addProperty(prp) | ||
+ | interactionset.add(app) | ||
+ | |||
+ | or | ||
+ | |||
+ | app = interactionset.add(Mechanism0DInteraction(no)) #add returns a reference | ||
+ | app.push(gObject1) | ||
+ | app.push(gObject2) | ||
+ | ... | ||
+ | app.addProperty(prp) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | |'' | ||
+ | | '' | ||
+ | |||