Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Sander, Oliver
dune-gfe
Commits
1dd8cc9c
Commit
1dd8cc9c
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove trailing whitespace
[[Imported from SVN: r9754]]
parent
45cbed8d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/cosseratvtkwriter.hh
+14
-14
14 additions, 14 deletions
dune/gfe/cosseratvtkwriter.hh
with
14 additions
and
14 deletions
dune/gfe/cosseratvtkwriter.hh
+
14
−
14
View file @
1dd8cc9c
...
...
@@ -14,7 +14,7 @@
template
<
class
GridType
>
class
CosseratVTKWriter
{
static
const
int
dim
=
GridType
::
dimension
;
/** \brief Encapsulates the grid deformation for the GeometryGrid class */
...
...
@@ -26,7 +26,7 @@ class CosseratVTKWriter
typedef
Dune
::
DiscreteCoordFunction
<
double
,
3
,
This
>
Base
;
static
const
int
dim
=
HostGridView
::
dimension
;
public:
DeformationFunction
(
const
HostGridView
&
gridView
,
...
...
@@ -83,7 +83,7 @@ class CosseratVTKWriter
for
(
size_t
i
=
0
;
i
<
v2
.
size
();
i
++
)
v2
[
i
]
=
RigidBodyMotion
<
double
,
3
>
(
v2Embedded
[
i
]);
}
public
:
/** \brief Write a Cosserat configuration given as vertex data
...
...
@@ -94,9 +94,9 @@ public:
{
typedef
Dune
::
GeometryGrid
<
GridType
,
DeformationFunction
<
typename
GridType
::
LeafGridView
>
>
DeformedGridType
;
DeformationFunction
<
typename
GridType
::
LeafGridView
>
deformationFunction
(
grid
.
leafGridView
(),
configuration
);
// stupid, can't instantiate deformedGrid with a const grid
DeformedGridType
deformedGrid
(
const_cast
<
GridType
&>
(
grid
),
deformationFunction
);
...
...
@@ -104,30 +104,30 @@ public:
P1Basis
p1Basis
(
deformedGrid
.
leafGridView
());
Dune
::
VTKWriter
<
typename
DeformedGridType
::
LeafGridView
>
vtkWriter
(
deformedGrid
.
leafGridView
());
// Make three vector fields containing the directors
typedef
std
::
vector
<
Dune
::
FieldVector
<
double
,
3
>
>
CoefficientType
;
std
::
vector
<
CoefficientType
>
directors
(
3
);
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
directors
[
i
].
resize
(
configuration
.
size
());
for
(
size_t
j
=
0
;
j
<
configuration
.
size
();
j
++
)
directors
[
i
][
j
]
=
configuration
[
j
].
q
.
director
(
i
);
std
::
stringstream
iAsAscii
;
iAsAscii
<<
i
;
Dune
::
shared_ptr
<
VTKBasisGridFunction
<
P1Basis
,
CoefficientType
>
>
vtkDirector
=
Dune
::
make_shared
<
VTKBasisGridFunction
<
P1Basis
,
CoefficientType
>
>
(
p1Basis
,
directors
[
i
],
"director"
+
iAsAscii
.
str
());
vtkWriter
.
addVertexData
(
vtkDirector
);
}
vtkWriter
.
write
(
filename
);
}
}
/** \brief Write a configuration given with respect to a scalar function space basis
*/
...
...
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