I want to use DEFINE_DPM_BODY_FORCE(particle_body_force, p, i) macro to define electrostatic force acting on a charged particle.
I added the electrostatic field (Laplace equation) using UDS.
The force is F=E*Q.
I think I can get E through C_UDSI_G(c,t,0)[i]
If it is correct, how can I connect the scalar gradient with the particle in DPM?
|All times are GMT -4. The time now is 05:16.|