doc:user:elements:contact:def
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:user:elements:contact:def [2013/07/10 17:55] – [Lois] joris | doc:user:elements:contact:def [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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 | ||
| + | |||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
