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
cb045e4e
Commit
cb045e4e
authored
11 years ago
by
Yoann Guilhem
Browse files
Options
Downloads
Patches
Plain Diff
Code formatting only.
Signed-off-by:
Yoann Guilhem
<
yoann.guilhem@esrf.fr
>
parent
c87e199d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_Boundaries/gtReadBoundaryProperties.m
+16
-16
16 additions, 16 deletions
zUtil_Boundaries/gtReadBoundaryProperties.m
with
16 additions
and
16 deletions
zUtil_Boundaries/gtReadBoundaryProperties.m
+
16
−
16
View file @
cb045e4e
function
gtReadBoundaryProperties
(
phaseid
,
boundaries_structure
,
vol_out
,
r_vectors
)
% gtReadBoundaryProperties(phaseid, boundaries_structure, vol_out, r_vectors)
disp
(
'have changed this to axis convention matlab1 // instX , matlab2 // instY, matlab3 // instZ'
)
disp
(
'AK, 11/8/2010'
)
pause
(
3
)
disp
(
'have changed this to axis convention matlab1 // instX , matlab2 // instY, matlab3 // instZ'
)
;
disp
(
'AK, 11/8/2010'
)
;
pause
(
3
)
;
%continue to add to boundaries_structure.mat - orientations,
%disorientation, r-vectors etc.
...
...
@@ -23,9 +23,9 @@ symm = gtCrystGetSymmetryOperators([], spacegroup);
symm
=
{
symm
.
g3
};
% loop through the boundaries
for
ii
=
1
:
size
(
boundaries_structure
,
2
)
for
ii
=
1
:
size
(
boundaries_structure
,
2
)
if
boundaries_structure
(
ii
)
.
count
<
4
%can still be useful to calc index planes where we have only one of the grains
if
(
boundaries_structure
(
ii
)
.
count
<
4
)
%can still be useful to calc index planes where we have only one of the grains
continue
;
else
%Read in the r-vector data for the two grains
...
...
@@ -33,23 +33,23 @@ for ii=1:size(boundaries_structure, 2)
grain2
=
boundaries_structure
(
ii
)
.
grain2
;
if
grain1
==
0
g1
=
[];
g1equiv
=
[];
g1
=
[];
g1equiv
=
[];
elseif
grain1
==-
1
continue
;
else
R1
=
r_vectors
(
grain1
,
2
:
4
);
boundaries_structure
(
ii
)
.
grain1_R_vector
=
R1
;
R1
=
r_vectors
(
grain1
,
2
:
4
);
boundaries_structure
(
ii
)
.
grain1_R_vector
=
R1
;
g1
=
gtMathsRod2OriMat
(
R1
);
end
if
grain2
==
0
g2
=
[];
g2
=
[];
elseif
grain2
==-
1
continue
continue
;
else
R2
=
r_vectors
(
grain2
,
2
:
4
);
boundaries_structure
(
ii
)
.
grain2_R_vector
=
R2
;
R2
=
r_vectors
(
grain2
,
2
:
4
);
boundaries_structure
(
ii
)
.
grain2_R_vector
=
R2
;
g2
=
gtMathsRod2OriMat
(
R2
);
end
...
...
@@ -58,7 +58,7 @@ for ii=1:size(boundaries_structure, 2)
if
~
isempty
(
g1
)
&&
~
isempty
(
g2
)
% If we have both grains
% Need to search symmetry equivalents for the minimum misorientation
rot_offset
=
[];
rot_offset
=
[];
% warning('g*symm maybe should be symm*g')
for
jj
=
1
:
length
(
symm
)
g1equiv
=
g1
*
symm
{
jj
};
...
...
@@ -171,11 +171,11 @@ for ii=1:size(boundaries_structure, 2)
boundaries_structure
(
ii
)
.
misorientation_axis_hex
=
hkil
;
end
else
disp
(
'crystallography not supported!'
)
disp
(
'crystallography not supported!'
)
;
end
end
% skip small boundaries
end
save
(
'boundaries_structure.mat'
,
'boundaries_structure'
)
save
(
'boundaries_structure.mat'
,
'boundaries_structure'
)
;
end
% end of function
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