Hi,
Unfortunately there isn't a way to explicitly set a value in nm. You need to use scale as you are. The default for the radius (defining 'radius' to be mz=0) is
6.6 cellsizes. So you will need to scale it appropriately based on your cellsize. The function that mumax uses internally is given by:
mz := 2 * pol * e^(-r2/w2) - 0.5
where r2 is the radial distance squared (x^2+y^2), and w2 is w squared, where w is defined as 8*cellsize (it uses cellsize in the x-direction for the value of "cellsize")
. mz will be 0 when r=w * (ln(2))^(0.5) . So if your cellsize is 5nm, it would be something like
m=NeelSkyrmion(1, -1).scale(0.63, 0.63, 1)
because 8*5*
(ln(2))^(0.5)
=33.3, and then 17.5/33.3=0.63. But if your cellsize is something like 7nm, something like
m=NeelSkyrmion(1, -1).scale(0.375, 0.375, 1)
Best,
Josh L.