|
From: | Rudolf Weeber @ ICP |
Subject: | Fwd: Adding gradient magnetic field to ferrofluid simulation |
Date: | Fri, 6 Oct 2023 17:10:06 +0200 |
User-agent: | Mozilla Thunderbird |
Betreff: | Re: Adding gradient magnetic field to ferrofluid simulation |
---|---|
Datum: | Fri, 6 Oct 2023 17:06:09 +0200 |
Von: | Rudolf Weeber @ ICP <weeber@icp.uni-stuttgart.de> |
An: | debayan dasgupta <debayan.dasgupta@gmail.com> |
Hi,
inhomogenous magnetic fields are currently not implemented.
However, support for other rasterized, interpolated fileds exists:
https://espressomd.github.io/doc/constraints.html#interpolated-force-and-potential-fields
It would be relatively easy to add a magnetic field.
This would involve adding two couplings
* a scalar product of <m,B> for the torque
* a field gradient term for the force
See src/core/field_coupling/ForceField.hpp
If you would like to contribute this freature, I can provide some more details.
Regards, Rudolf
Dear community,
Apologies since I think I am asking a very trivial question.I have gone through the ferrofluid simulation and have played around with it. I would like to change the homogenous magnetic field to a spatially gradient field. I have tried to pass a matrix containing interpolated H_field with dimensions 'boxsize by boxsize', but it did not work for espressomd.constraints.HomogeneousMagneticField.Can someone point me to some documentation or help me with this?
I am new to MD and trying to simulate my experiments here.
Thanks,Debayan
[Prev in Thread] | Current Thread | [Next in Thread] |