How to get composite force of each particle at each time step?
Hi, All:
Is there a good way to get the composite force of each particle at each time step? (e.g. the total force acting on each particle, this equals accelaration*mass, I want to use this to make sth similar to the hysteretic damping, but not exactly) In BodyForceGroup<
typename ParticleArray:
for (
ParticleIterator it = plh->begin();
it != plh->end();
it++
)
{
cout << tmp_vec << endl;
}
However all outputs are
0 0 0
...
0 0 0
I think this might not be the correct way, so what is the correct way to do this?
Thanks in advance for any suggestions!
Feng
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Feng Chen for more information if necessary.