ludwig-cf / ludwig

A lattice Boltzmann code for complex fluids
https://ludwig.epcc.ed.ac.uk
Other
52 stars 35 forks source link

Active force exerted on the colloid #294

Closed yehaozju closed 4 months ago

yehaozju commented 7 months ago

Following the study of Foffano et al. (PRL 109,028103 (2012)), I try to output the active force exerted on the colloid when it is pulled by a constant force in active nematics. In their study, the active force is opposite to the direction of the external constant force when the activity parameter is negative, and the magnitude of colloid velocity decreases.

However, as for my output results, the active force is same with external force direction, but velocity also decreases. Thus I think I made some sign mistakes when modifying the code.

One of my confusion is why there is a extra minus sign for the divergence when compute the fluid stress. Could you explain this?

Thank you very much I am looking forward to your reply. 1

ohenrich commented 7 months ago

I believe the '-' sign occurs just generally as the negative gradient of the pressure tensor is the body force density acting on the fluid :F\alpha = -\partical\beta \sigma_{\alpha \beta}. The same '-' sign occurs in other stress calculation routines.

kevinstratford commented 7 months ago

There are a couple of potential sources of confusion here. One is that the liquid crystal literature wants to write the force arising from the divergence of the stress as $f\alpha = + \partial\beta S{\alpha\beta}$ while the code wants to compute $f\alpha = -\partial\beta S{\alpha\beta}$. That accounts for the extra sign at line 1005 above.

The "documented approach" is that discussed at https://ludwig.epcc.ed.ac.uk/inputs/fe.html#liquid-crystals and was not in place in 2012. You would have to set $\zeta_0 = -(1/3) \zeta_1$ in the current input to get back to exactly what was used, I think.

I don't quite remember how exactly the pulling was done there.

I think I would have to see what exactly is being output as the "active force" and how it was computed to say more.

yehaozju commented 7 months ago

Thank you very much for your reply! I will try to set $\zeta_0=-(1/3)\zeta_1$ and compare the result.