Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/center wall per layer region #222

Open
wants to merge 27 commits into
base: 3.11
Choose a base branch
from

Conversation

jsampaio
Copy link
Contributor

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.

This change adds the following script functions and flags:

  • ext_centerWallInRegion( region, component)
  • ext_centerWallInLayer( layer, component)

Example script:

c := 4e-9;
SetMesh(256, 32, 2, c, c, c, 0, 0, 0);
defRegion(0, layer(0));
defRegion(1, layer(1));

Msat = 1e6; 
Aex = 10e-12 ;
RKKY := -1e-3 ;
scale := (RKKY * c) / (2 * Aex.Average()) ; 
ext_scaleExchange(0, 1, scale);
anisU = vector(0, 0, 1);
Ku1 = 700000;

alpha = 0.1;
xi = 1;

m.setRegion(0, TwoDomain(0, 0, 1, 1, 0, 0, 0, 0, -1));
m.setRegion(1, TwoDomain(0, 0, -1, -1, 0, 0, 0, 0, 1));
ShiftMagL = vector(0,0,1); ShiftMagR = vector(0, 0,-1);

ext_centerWallInRegion(0, 2);
//ext_centerWallInLayer(0, 2);

snapshot(m); print(TotalShift);
shift(20);
snapshot(m); print(TotalShift);
relax(); 
snapshot(m); print(TotalShift);

tableadd(ext_dwpos);
tableautosave(0.1e-9);
J = vector(1e10, 0, 0);
Run(50e-09);

updating this branch to latest mumax/3
update my fork to match the mumax git
changing stopping criterion
Changed to keep previous relax() behaviour by default. When RelaxTorqueThreshold < 0, relax() will stop when the average torque rises (previous behaviour). The default value for  RelaxTorqueThreshold is now -1.
default behaviour is now exactly the previous one.
adding ext_centerWallInRegion(R,c). Works like ext_centerWall but for one region alone (useful for SAFs, eg)
resetting my fork to mumax's
synchronising  my fork
server page: added collapsible job lists
mumax-server preserves last opened job list opened
updating my fork to match mumax3
add loupe to see details in the image on mumax result page
reset my fork to mumax/3
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.
This change adds the following script functions:
ext_centerWallInRegion( region, component)
ext_centerWallInLayer( layer, component)
@godsic
Copy link
Contributor

godsic commented Jul 4, 2020

@jsampaio Do this one has unit tests?

@JonathanMaes JonathanMaes changed the base branch from master to 3.11 October 4, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants