Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
898c9ed8
Commit
898c9ed8
authored
7 years ago
by
Wolfgang Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
Signed-off-by:
Wolfgang Ludwig
<
wolfgang.ludwig@esrf.fr
>
parent
2ce367ea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
5_reconstruction/GtAssembleVol3D.m
+4
-4
4 additions, 4 deletions
5_reconstruction/GtAssembleVol3D.m
5_reconstruction/gtReconstructClusters.m
+1
-0
1 addition, 0 deletions
5_reconstruction/gtReconstructClusters.m
zUtil_Cryst/gtCrystGetSigmas.m
+19
-11
19 additions, 11 deletions
zUtil_Cryst/gtCrystGetSigmas.m
with
24 additions
and
15 deletions
5_reconstruction/GtAssembleVol3D.m
+
4
−
4
View file @
898c9ed8
...
...
@@ -858,9 +858,9 @@ classdef GtAssembleVol3D < handle
sample
=
obj
.
getSample
();
% Sample translation
sample_shift
=
obj
.
localPar
.
sample_shift
;
sample_shift
=
obj
.
localPar
.
sample_shift
;
sample_shift_size
=
size
(
sample_shift
);
if
sample_shift_size
(
2
)
<
3
if
isempty
(
sample_shift
)
||
sample_shift_size
(
2
)
<
3
sample_shift
=
[
0
,
0
,
0
];
end
...
...
@@ -922,9 +922,9 @@ classdef GtAssembleVol3D < handle
g_info
{
jj
}
.
frac_shared
=
numel
(
shared_inds
)
/
g_info
{
jj
}
.
size_vol
;
grains_not_related
=
isempty
(
g_info
{
jj
}
.
sigmaAnd
)
...
||
((
numel
(
g_info
{
jj
}
.
sigmaAnd
)
==
1
)
&&
(
g_info
{
jj
}
.
sigmaAnd
=
=
-
1
));
||
((
numel
(
g_info
{
jj
}
.
sigmaAnd
)
==
1
)
&&
(
g_info
{
jj
}
.
sigmaAnd
<
=
0
));
if
(
grains_not_related
)
if
(
g_info
{
jj
}
.
frac_shared
>=
0.5
)
if
(
g_info
{
jj
}
.
frac_shared
>=
0.5
)
&&
(
g_info
{
jj
}
.
sigmaAnd
==
-
1
)
% merge the two grains together; keep the other
% and record this in the merge list
g_info
{
jj
}
.
type
=
'merge'
;
...
...
This diff is collapsed.
Click to expand it.
5_reconstruction/gtReconstructClusters.m
+
1
−
0
View file @
898c9ed8
...
...
@@ -30,6 +30,7 @@ function gtReconstructClusters(first, last, workingdirectory, phase_id, paramete
conf
=
struct
(
...
'list'
,
[],
...
'ospace_resolution'
,
[]
);
conf
=
parse_pv_pairs
(
conf
,
varargin
);
if
(
isempty
(
conf
.
list
))
cluster_list
=
first
:
last
;
...
...
This diff is collapsed.
Click to expand it.
zUtil_Cryst/gtCrystGetSigmas.m
+
19
−
11
View file @
898c9ed8
function
sigmas
=
gtCrystGetSigmas
(
crystal_system
,
latticepar
,
convention
,
material
)
function
sigmas
=
gtCrystGetSigmas
(
crystal_system
,
latticepar
,
convention
,
material
,
tol_angle
)
% GTCRYSTGETSIGMAS Calculates CSL sigmas values for cubic and hexagonal crystal
% sigmas = gtCrystGetSigmas(crystal_system, latticepar, [convention], [material])
% -------------------------------------------------------------------
...
...
@@ -8,6 +8,7 @@ function sigmas = gtCrystGetSigmas(crystal_system, latticepar, convention, mater
% convention = <string> hcp axes convention {'X'}|'Y'
% material = <string> material {'Ti'}|'Mg'
% sigmas for Be, Ti and Zr are the same
% tol_angle = <double> angle used in Brandon criterion {15}
if
~
exist
(
'latticepar'
,
'var'
)
||
isempty
(
latticepar
)
parameters
=
[];
load
(
'parameters.mat'
);
...
...
@@ -21,20 +22,27 @@ end
if
~
exist
(
'material'
,
'var'
)
||
isempty
(
material
)
material
=
'Ti'
;
end
if
~
exist
(
'tol_angle'
,
'var'
)
||
isempty
(
tol_angle
)
tol_angle
=
15
;
end
if
strcmpi
(
crystal_system
,
'cubic'
)
%sigma s: type, angle, axis cart, brandon criteria {, rodrigues}
sigmas
=
[
3
60
1
1
1
0
0.333
0.333
0.333
;
...
5
36.86
1
0
0
0
0.333
0
0
;
...
7
38.21
1
1
1
0
0.199
0.199
0.199
;
...
9
38.94
1
1
0
0
0.25
0.25
0
;
...
11
50.47
1
1
0
0
0.333
0.333
0
;
...
13
22.62
1
0
0
0
0.2
0
0
;
...
13
27.79
1
1
1
0
0.143
0.143
0.143
];
sigmas
=
[
3
60
1
1
1
0
0.333
0.333
0.333
;
...
% 3
5
36.86
1
0
0
0
0.333
0
0
;
...
% 5
7
38.21
1
1
1
0
0.199
0.199
0.199
;
...
% 7
9
38.94
1
1
0
0
0.25
0.25
0
;
...
% 9
11
50.47
1
1
0
0
0.333
0.333
0
;
...
%11
13
22.62
1
0
0
0
0.2
0
0
;
...
%13a
13
27.79
1
1
1
0
0.143
0.143
0.143
;
...
%13b
15
48.19
2
1
0
0
0.4
0.2
0
;
...
%15
21
44.41
2
1
1
0
0.333
0.167
0.167
;
...
%21b
27
35.43
2
1
0
0
0.285
0.143
0
;
...
%27b
];
%add brandon criteria
sigmas
(:,
6
)
=
15
*
sigmas
(:,
1
)
.^
(
-
0.5
);
sigmas
(:,
6
)
=
tol_angle
*
sigmas
(:,
1
)
.^
(
-
0.5
);
sigmaNorms
=
sqrt
(
sum
(
sigmas
(:,
3
:
5
)
.*
sigmas
(:,
3
:
5
),
2
));
%normalise axis
sigmas
(:,
3
:
5
)
=
sigmas
(:,
3
:
5
)
.
/
sigmaNorms
(:,
[
1
1
1
]);
...
...
@@ -107,7 +115,7 @@ elseif strcmpi(crystal_system, 'hexagonal')
end
%add brandon criteria: is it also for hcp? (laura)
sigmas
(:,
7
)
=
15
*
sigmas
(:,
1
)
.^
(
-
0.5
);
sigmas
(:,
7
)
=
tol_angle
*
sigmas
(:,
1
)
.^
(
-
0.5
);
sigmaNorms
=
sqrt
(
sum
(
sigmas
(:,
8
:
10
)
.*
sigmas
(:,
8
:
10
),
2
));
%normalise axis
sigmas
(:,
8
:
10
)
=
sigmas
(:,
8
:
10
)
.
/
sigmaNorms
(:,
[
1
1
1
]);
...
...
@@ -150,7 +158,7 @@ elseif strcmpi(crystal_system, 'tetragonal')
21
79.02
4
4
1
0
1.1
1.1
0.275
;
...
%21d
];
%add brandon criteria
sigmas
(:,
6
)
=
15
*
sigmas
(:,
1
)
.^
(
-
0.5
);
sigmas
(:,
6
)
=
tol_angle
*
sigmas
(:,
1
)
.^
(
-
0.5
);
sigmaNorms
=
sqrt
(
sum
(
sigmas
(:,
3
:
5
)
.*
sigmas
(:,
3
:
5
),
2
));
%normalise axis
sigmas
(:,
3
:
5
)
=
sigmas
(:,
3
:
5
)
.
/
sigmaNorms
(:,
[
1
1
1
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment