Skip to content

Feature/center wall per layer region#222

Merged
JonathanMaes merged 30 commits intomumax:3.11from
jsampaio:feature/CenterWallPerLayerRegion
Nov 14, 2024
Merged

Feature/center wall per layer region#222
JonathanMaes merged 30 commits intomumax:3.11from
jsampaio:feature/CenterWallPerLayerRegion

Conversation

@jsampaio
Copy link
Copy Markdown
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
Copy Markdown
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
@JonathanMaes
Copy link
Copy Markdown
Contributor

I transformed the provided example script into unit tests.

Thanks for your contribution, this will now be merged.

@JonathanMaes JonathanMaes merged commit 7509d63 into mumax:3.11 Nov 14, 2024
@JonathanMaes JonathanMaes mentioned this pull request Nov 18, 2024
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.

3 participants