Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lisa_julia.nebel_at_tu-dresden.de
dune-elasticity
Commits
06384382
Commit
06384382
authored
Apr 17, 2013
by
akbib
Committed by
akbib@FU-BERLIN.DE
Apr 17, 2013
Browse files
bugfix in linearisedDefDet: index was computed wrong
[[Imported from SVN: r11291]]
parent
b8fb1fe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/elasticity/common/elasticityhelpers.hh
View file @
06384382
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
#include <dune/common/fmatrix.hh>
#include <dune/common/fmatrix.hh>
#include <dune/fufem/symmetrictensor.hh>
namespace
Dune
{
namespace
Dune
{
namespace
Elasticity
{
namespace
Elasticity
{
...
@@ -133,7 +135,7 @@ namespace Dune {
...
@@ -133,7 +135,7 @@ namespace Dune {
linDet
=
0
;
linDet
=
0
;
for
(
int
i
=
0
;
i
<
2
;
i
++
)
for
(
int
i
=
0
;
i
<
2
;
i
++
)
for
(
int
j
=
(
i
+
1
)
%
3
;
j
<
3
;
j
++
)
{
for
(
int
j
=
(
i
+
1
)
%
3
;
j
<
3
;
j
++
)
{
int
k
=
(
j
+
1
)
%
3
+
(
j
+
1
)
/
3
;
int
k
=
(
-
(
i
+
j
))
%
3
;
linDet
[
i
][
j
]
=
u
[
j
][
k
]
*
u
[
k
][
i
]
-
u
[
j
][
i
]
*
(
1
+
u
[
k
][
k
]);
linDet
[
i
][
j
]
=
u
[
j
][
k
]
*
u
[
k
][
i
]
-
u
[
j
][
i
]
*
(
1
+
u
[
k
][
k
]);
linDet
[
j
][
i
]
=
u
[
k
][
j
]
*
u
[
i
][
k
]
-
u
[
i
][
j
]
*
(
1
+
u
[
k
][
k
]);
linDet
[
j
][
i
]
=
u
[
k
][
j
]
*
u
[
i
][
k
]
-
u
[
i
][
j
]
*
(
1
+
u
[
k
][
k
]);
}
}
...
@@ -213,7 +215,7 @@ namespace Dune {
...
@@ -213,7 +215,7 @@ namespace Dune {
// 1 1 1 0 --> 0 - 0
// 1 1 1 0 --> 0 - 0
// 1 1 1 1 --> 0 - 0
// 1 1 1 1 --> 0 - 0
}
}
double
det_val
(
const
Dune
::
FieldMatrix
<
double
,
3
,
3
>&
u
)
{
double
det_val
(
const
Dune
::
FieldMatrix
<
double
,
3
,
3
>&
u
)
{
return
(
1
+
u
[
0
][
0
])
*
(
1
+
u
[
1
][
1
])
*
(
1
+
u
[
2
][
2
])
return
(
1
+
u
[
0
][
0
])
*
(
1
+
u
[
1
][
1
])
*
(
1
+
u
[
2
][
2
])
+
u
[
0
][
1
]
*
u
[
1
][
2
]
*
u
[
2
][
0
]
+
u
[
0
][
1
]
*
u
[
1
][
2
]
*
u
[
2
][
0
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment