Closed jsampaio closed 5 years ago
@jsampaio Many thanks for cleaning this up. Could you please consider splitting this pull request in two, i.e., 'center wall' and 'shift'? Its a common practice to have a single feature per pull request and we would like to follow it for the sake of mumax3 maintainability.
@godsic ok! I will separate it into two pull requests
I opened two new pull requests, so I'll close this one
This change adds the possibility to
ext_centerWall
to follow only one region or one layer, which is useful for simulations of SAF (like the RKKY example) or odd-shaped geometries.For the same kind of simulations, this change also introduces a new option for the shift. Instead of filling the new cells introduced by shift with the values of
ShiftMagL
andShiftMagR
, it is now possible to use the current values at the border by settingFudgeShift = true
.This change adds the following script functions and flags:
ext_centerWallInRegion( region, component)
ext_centerWallInLayer( layer, component)
FudgeShift
(bool)Example script: