doc:user:elements:contact:def
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:user:elements:contact:def [2013/07/10 17:51] – [Eléments] joris | doc:user:elements:contact:def [2014/10/06 10:14] – joris | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Defining contact elements ====== | ||
+ | Defining contact element is done is the same way as volume elements. First, a contact material is defined (without friction, sticking, ...), then the material is included in an '' | ||
+ | |||
+ | ===== Materials ===== | ||
+ | |||
+ | First, a contact material: | ||
+ | |||
+ | materialno = materialset.define (number, type) | ||
+ | materialno = materialset(number) | ||
+ | materialno.put(param, | ||
+ | materialno.depend(param, | ||
+ | ... | ||
+ | |||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |||
+ | All contact materials and corresponding parameters are found page [[doc: | ||
+ | |||
+ | ===== Elements ===== | ||
+ | |||
+ | Second, contact elements are defined with '' | ||
+ | |||
+ | prp = ElementProperties(typeEl) | ||
+ | prp.put(param1, | ||
+ | prp.depend(param1, | ||
+ | ... | ||
+ | | ||
+ | where | ||
+ | |||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |||
+ | Contact elements and their parameters are found page [[doc: | ||
+ | |||
+ | ===== Interactions ===== | ||
+ | |||
+ | Finally, contact elements are generated using '' | ||
+ | |||
+ | For example, to generate rigid-defo contact, '' | ||
+ | |||
+ | ci = RdContactInteraction(number) | ||
+ | ci.setTool(gObject1) | ||
+ | ci.push(gObject2) | ||
+ | ci.setSmoothNormals(bool) | ||
+ | ci.addProperty(prp) | ||
+ | interactionset.add(ci) | ||
+ | |||
+ | where | ||
+ | |||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' |
doc/user/elements/contact/def.txt · Last modified: 2016/03/30 15:23 by 127.0.0.1