Some basic concepts in FrictPhys.cpp
Hi. Now i am studying the source code of FrictPhys.cpp. I am confused about some concepts even after i check the programmer manual. My questions are mainly about these codes,
1. const shared_
1.1 Is the shared_
1.2 The YADE_PTR_CAST will do change the b1 type to FrictMat? But if b1 is not a pointer to FrictMat, like a CohFrictMat, will it cause a material type mismatch between the particle material and the IPhysFunctor?
2. Ra=sphCont-
2.1 The Ra, Rb here are the stiffness related particle size? Why these two values could be negative?
3. interaction->phys = shared_
const shared_
contactPhys
3.1 Also the conversion of interaction->phys to FrictPhy type. Another is that since the reference contactPhysics has decoration of const, why it is able to change the value of its pointing memory?
4. Real Kn = (!kn) ? 2*kna*knb/(kna+knb) : (*kn)(mat1-
4.1 I understand the true part of this expression. What does the false part means? (*kn) is a function?
Thanks for your patience to look through all my questions.
Xuesong
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- gaoxuesong
- Solved:
- Last query:
- Last reply:
This question was reopened
- by gaoxuesong