forked from RascalSoftware/python-RAT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalloyDomains.m
More file actions
29 lines (23 loc) · 730 Bytes
/
alloyDomains.m
File metadata and controls
29 lines (23 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function [output,subRough] = alloyDomains(params,bulkIn,bulkOut,contrast,domain)
% Simple custom model for testing incoherent summing...
% Simple two layer of permalloy / gold, with up/down domains..
% Split up the parameters....
subRough = params(1);
alloyThick = params(2);
alloySLDup = params(3);
alloySLDdn = params(4);
alloyRough = params(5);
goldThick = params(6);
goldSLD = params(7);
goldRough = params(8);
% Make the layers....
alloyUp = [alloyThick, alloySLDup, alloyRough];
alloyDn = [alloyThick, alloySLDdn, alloyRough];
gold = [goldThick, goldSLD, goldRough];
% Make the model dependiong on which domain we are looking at..
if domain==1
output = [alloyUp ; gold];
else
output = [alloyDn ; gold];
end
end