Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
Mpp
Commits
1688ab70
Commit
1688ab70
authored
Jan 24, 2022
by
jonathan.froehlich
Browse files
[407-fix-deformed-dg-plotting] Fixed deforming grid
parent
e46b4215
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib4_fem/plot/VtuPlot.cpp
View file @
1688ab70
...
...
@@ -614,7 +614,7 @@ void VtuPlot::deformDGGrid(const Vector &displacement) {
DGVectorFieldElement
E
(
displacement
,
c
);
for
(
int
i
=
0
;
i
<
c
.
Corners
();
++
i
)
{
exBuffer
.
Send
(
0
)
<<
c
.
Corner
(
i
);
VectorField
u
=
E
.
VectorValue
(
c
.
Corner
(
i
),
displacement
);
VectorField
u
=
E
.
VectorValue
(
c
.
Local
Corner
(
i
),
displacement
);
for
(
int
j
=
0
;
j
<
dim
;
++
j
)
exBuffer
.
Send
(
0
)
<<
u
[
j
];
}
...
...
@@ -643,7 +643,7 @@ void VtuPlot::deformDGGrid(const Vector &displacement) {
}
// for (auto &p: points) {
for
(
int
i
=
0
;
i
<
points
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
points
[
0.0
]
.
size
();
i
++
)
{
displacements
[
0.0
][
i
]
=
deformationData
[
points
[
0.0
][
i
]]
/
deformationCount
[
points
[
0.0
][
i
]];
}
...
...
@@ -678,7 +678,7 @@ void VtuPlot::deformLagrangeGrid(const Vector &displacement) {
deformationData
->
insert
({
z
,
d
});
}
for
(
int
i
=
0
;
i
<
points
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
points
[
0.0
]
.
size
();
i
++
)
{
displacements
[
0.0
][
i
]
=
deformationData
->
at
(
points
[
0.0
].
at
(
i
));
}
...
...
Write
Preview
Markdown
is supported
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