Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-microstructure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Klaus Böhnlein
dune-microstructure
Commits
01ed3fc0
Commit
01ed3fc0
authored
4 years ago
by
Klaus Böhnlein
Browse files
Options
Downloads
Patches
Plain Diff
update Matlab Files
parent
9b0b5bbd
Branches
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
Matlab-Programs/PhaseDiagrams.mlx
+0
-0
0 additions, 0 deletions
Matlab-Programs/PhaseDiagrams.mlx
Matlab-Programs/Task2.mlx
+0
-0
0 additions, 0 deletions
Matlab-Programs/Task2.mlx
Matlab-Programs/classifyMIN.m
+3
-98
3 additions, 98 deletions
Matlab-Programs/classifyMIN.m
with
3 additions
and
98 deletions
Matlab-Programs/PhaseDiagrams.mlx
100755 → 100644
+
0
−
0
View file @
01ed3fc0
No preview for this file type
This diff is collapsed.
Click to expand it.
Matlab-Programs/Task2.mlx
+
0
−
0
View file @
01ed3fc0
No preview for this file type
This diff is collapsed.
Click to expand it.
Matlab-Programs/classifyMIN.m
+
3
−
98
View file @
01ed3fc0
function
[
A
,
angle
,
type
]
=
classifyMIN
(
mu_1
,
rho_1
,
a
,
b
,
t
,
set_mu_gamma
,
print_output
)
function
[
A
,
angle
,
type
]
=
classifyMIN
(
mu_1
,
rho_1
,
a
,
b
,
t
,
set_mu_gamma
,
print_output
)
% returns
% returns
...
@@ -43,7 +44,7 @@ b2 = mu_1.*(rho_1/8).*(1-t.*(1+b.*a));
...
@@ -43,7 +44,7 @@ b2 = mu_1.*(rho_1/8).*(1-t.*(1+b.*a));
% H = [q1 q3; q3 q2];
% right ???
% H = [q1 q3; q3 q2];
%check condition of H first
%check condition of H first
% fprintf('condition number of Matrix H: %d \n', cond(H));
% fprintf('condition number of Matrix H: %d \n', cond(H));
...
@@ -59,21 +60,7 @@ if abs(q1*q2-q3^2) < epsilon
...
@@ -59,21 +60,7 @@ if abs(q1*q2-q3^2) < epsilon
fprintf
(
'determinant equal zero (parabolic case)'
)
fprintf
(
'determinant equal zero (parabolic case)'
)
fprintf
(
'SHOULD NOT HAPPEN'
)
fprintf
(
'SHOULD NOT HAPPEN'
)
% TODO
if
(
(
b1
/
b2
)
-
(
q3
/
q1
)
<
epsilon
*
min
((
b1
/
b2
),(
q3
/
q1
))
)
%Minimizer not unique
type
=
4
;
% pick one arbitrary Minimzer as output...(TODO)
a1
=
1
;
%(TEST)
a2
=
2
;
%(TEST)
else
% TODO Hier weitere Fallunterscheidung nach b1b2 >0 ,< 0 nötig!
type
=
4
;
% (TEST)
a1
=
0
*
b1
;
% (TEST)
a2
=
b2
;
% (TEST)
end
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ELLIPTIC CASE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ELLIPTIC CASE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
@@ -143,73 +130,6 @@ end
...
@@ -143,73 +130,6 @@ end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HYPERBOLIC CASE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% HYPERBOLIC CASE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if
(
q1
*
q2
-
q3
^
2
<
-
1
*
epsilon
)
if
(
q1
*
q2
-
q3
^
2
<
-
1
*
epsilon
)
% fprintf('determinant less than zero (hyperbolic case)');
% fprintf('determinant less than zero (hyperbolic case)');
%
% if (b1*b2 > 0) % (H1)
% % can also be type (I) or (II)
% %Minimizer either A1 = (0,b2) or A2 = (b1,0)
% % needs to be stable
%
%
% % check STABILITY
% %check if A2 = (b1,0) is stable
% if (b1 > 0 && (q3*b1-q2*b2 > 0 ))
% a1 = b1;
% a2 = 0*b2;
% type = 1;
% end
% if (b1 < 0 && (q3*b1-q2*b2 < 0 ) )
% a1 = b1;
% a2 = 0*b2;
% type = 1;
% end
% %check if A1 = (0,b2) is stable
% if (b2 > 0 && (q3*b2-q1*b1 > 0 ) )
% a1 = b1*0;
% a2 = b2;
% type = 2;
% end
% if (b2 < 0 && (q3*b2-q1*b1 < 0 ) )
% a1 = b1*0;
% a2 = b2;
% type = 2;
% end
%
% end
%
%
% if ( abs(b1*b2) < epsilon ) %b1*b2 = 0
%
% if (abs(b1) < epsilon )
% a1 = 0;
% a2 = b2;
% else % b2 = 0
% a1 = b1;
% a2 = 0;
% end
%
% end
%
% if (b1*b2 < 0)
%
%
% if (q2*b2^2 < q1*b1^2) % global Minimizer given by (b1,0)
% a1 = b1;
% a2 = 0*b2;
% type = 1; % Minimizer aligned with x1-axis
% end
% if (q2*b2^2 > q1*b1^2)% global Minimizer given by (0,b2)
% a1 = 0*b1;
% a2 = b2;
% type = 2; % Minimizer aligned with x2-axis
% end
% if abs(q1*b1^2-q2*b2^2) < epsilon * min(q2*b2^2,q1*b1^2) % q1b1^2 = q2b2^2
% % two Minimizers ..pick one
% a1 = b1;
% a2 = 0*b1;
% type = 4;
% end
%
% end
if
(
q2
*
b2
^
2
<
q1
*
b1
^
2
)
% global Minimizer given by (b1,0)
if
(
q2
*
b2
^
2
<
q1
*
b1
^
2
)
% global Minimizer given by (b1,0)
a1
=
b1
;
a1
=
b1
;
...
@@ -228,12 +148,6 @@ if (q1*q2-q3^2 < -1*epsilon)
...
@@ -228,12 +148,6 @@ if (q1*q2-q3^2 < -1*epsilon)
type
=
4
;
type
=
4
;
end
end
% if ( abs(b1*b2) < epsilon) % b1*b2 = 0
% end
% CAN NOT BE TYPE 3!!
% CAN NOT BE TYPE 3!!
...
@@ -241,10 +155,6 @@ end
...
@@ -241,10 +155,6 @@ end
% Compute a3 from a1 % a2
% Compute a3 from a1 % a2
a3
=
sqrt
(
2
*
a1
*
a2
);
a3
=
sqrt
(
2
*
a1
*
a2
);
...
@@ -265,8 +175,6 @@ end
...
@@ -265,8 +175,6 @@ end
k
=
sqrt
(
abs
(
a1
)
+
abs
(
a2
));
% ?
k
=
sqrt
(
abs
(
a1
)
+
abs
(
a2
));
% ?
% Coefficients of minimizer
% Coefficients of minimizer
if
(
print_output
)
if
(
print_output
)
...
@@ -280,7 +188,4 @@ end
...
@@ -280,7 +188,4 @@ end
A
=
[
a1
,
a2
,
a3
];
A
=
[
a1
,
a2
,
a3
];
end
end
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