Magnetite 20 C 
Set MaxMeshNumber 1

ReadMesh 1 7grains_120nm_5.pat


!subdomain nonmagnetic
SetSubDomain 2 Ms  0.0
SetSubDomain 2 K1  0.0
SetSubDomain 2 Aex  0.0

External Field Direction 1.01 0.01 0.01 
External Field Strength 0 mT 

Randomize All Moments
Energylog 7grains_120nm_5_X 

Loop field 100 10 -20
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName DECREASING %field
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field 8 -10 -2
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName DECREASING %field
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 


Loop field -11 -20 -1
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName DECREASING  %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field -21 -30 -.1
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName DECREASING %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field -31 -39 -1
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName DECREASING  %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field -40 -100 -20
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName DECREASEING  %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop


Loop field -100 -10 20
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName INCREASING %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field -8 10 2
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName INCREASING %field
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 


Loop field 11 20 1
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName INCREASING %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field 21 30 .1
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName INCREASING %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field 31 39 1
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName INCREASING %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop 

Loop field 40 100 20
    External Field Strength %field mT
    Minimize
    WriteHyst 7grains_120nm_5_X
    ZoneName INCREASING %field 
    AppendTecplotZone 7grains_120nm_5_X
    AppendDemagZone 7grains_120nm_5_X
EndLoop

end
