Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-elasticity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ansgar Burchardt
dune-elasticity
Commits
804d8b44
Commit
804d8b44
authored
10 years ago
by
Ansgar Burchardt
Browse files
Options
Downloads
Patches
Plain Diff
Use levelGridView() and leafGridView() in all files.
parent
9c6f1aba
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nonlinelast.cc
+3
-3
3 additions, 3 deletions
nonlinelast.cc
test/materialtest.cc
+3
-3
3 additions, 3 deletions
test/materialtest.cc
with
6 additions
and
6 deletions
nonlinelast.cc
+
3
−
3
View file @
804d8b44
...
@@ -77,7 +77,7 @@ int main (int argc, char *argv[]) try
...
@@ -77,7 +77,7 @@ int main (int argc, char *argv[]) try
// Read Dirichlet boundary values
// Read Dirichlet boundary values
std
::
vector
<
LevelBoundaryPatch
>
dirichletBoundary
(
numLevels
);
std
::
vector
<
LevelBoundaryPatch
>
dirichletBoundary
(
numLevels
);
dirichletBoundary
[
0
].
setup
(
grid
.
levelView
(
0
));
dirichletBoundary
[
0
].
setup
(
grid
.
level
Grid
View
(
0
));
readBoundaryPatch
<
GridType
>
(
dirichletBoundary
[
0
],
dnFile
);
readBoundaryPatch
<
GridType
>
(
dirichletBoundary
[
0
],
dnFile
);
std
::
vector
<
VectorType
>
dirichletValues
(
numLevels
);
std
::
vector
<
VectorType
>
dirichletValues
(
numLevels
);
...
@@ -225,7 +225,7 @@ int main (int argc, char *argv[]) try
...
@@ -225,7 +225,7 @@ int main (int argc, char *argv[]) try
typedef
P1NodalBasis
<
GridType
::
LeafGridView
,
double
>
P1Basis
;
typedef
P1NodalBasis
<
GridType
::
LeafGridView
,
double
>
P1Basis
;
typedef
OgdenAssembler
<
P1Basis
,
P1Basis
>
Assembler
;
typedef
OgdenAssembler
<
P1Basis
,
P1Basis
>
Assembler
;
P1Basis
p1Basis
(
grid
.
leafView
());
P1Basis
p1Basis
(
grid
.
leaf
Grid
View
());
Assembler
ogdenAssembler
(
p1Basis
,
p1Basis
);
Assembler
ogdenAssembler
(
p1Basis
,
p1Basis
);
for
(
int
i
=
0
;
i
<
numHomotopySteps
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numHomotopySteps
;
i
++
)
{
...
@@ -288,7 +288,7 @@ int main (int argc, char *argv[]) try
...
@@ -288,7 +288,7 @@ int main (int argc, char *argv[]) try
// Output result
// Output result
LeafAmiraMeshWriter
<
GridType
>
amiramesh
;
LeafAmiraMeshWriter
<
GridType
>
amiramesh
;
amiramesh
.
addLeafGrid
(
grid
,
true
);
amiramesh
.
addLeafGrid
(
grid
,
true
);
amiramesh
.
addVertexData
(
x
,
grid
.
leafView
());
amiramesh
.
addVertexData
(
x
,
grid
.
leaf
Grid
View
());
amiramesh
.
write
(
"resultGrid"
,
true
);
amiramesh
.
write
(
"resultGrid"
,
true
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
This diff is collapsed.
Click to expand it.
test/materialtest.cc
+
3
−
3
View file @
804d8b44
...
@@ -217,7 +217,7 @@ int main (int argc, char *argv[]) try
...
@@ -217,7 +217,7 @@ int main (int argc, char *argv[]) try
// initialize the deformed grids with zero displacements
// initialize the deformed grids with zero displacements
VectorType displace(grid->size(dim));
VectorType displace(grid->size(dim));
displace=0;
displace=0;
DeformationFunction* deformation = new DeformationFunction(grid->leafView(),displace);
DeformationFunction* deformation = new DeformationFunction(grid->leaf
Grid
View(),displace);
DeformedGridType* deformedGrid = new DeformedGridType(grid,deformation);
DeformedGridType* deformedGrid = new DeformedGridType(grid,deformation);
grid->setRefinementType(GridType::COPY);
grid->setRefinementType(GridType::COPY);
...
@@ -233,7 +233,7 @@ int main (int argc, char *argv[]) try
...
@@ -233,7 +233,7 @@ int main (int argc, char *argv[]) try
// Create the materials
// Create the materials
typedef
P1NodalBasis
<
GridType
::
LeafGridView
>
P1Basis
;
typedef
P1NodalBasis
<
GridType
::
LeafGridView
>
P1Basis
;
P1Basis
p1Basis
(
grid
->
leafView
());
P1Basis
p1Basis
(
grid
->
leaf
Grid
View
());
// make a material
// make a material
typedef
NeoHookeMaterial
<
P1Basis
>
MaterialType
;
typedef
NeoHookeMaterial
<
P1Basis
>
MaterialType
;
...
@@ -260,7 +260,7 @@ int main (int argc, char *argv[]) try
...
@@ -260,7 +260,7 @@ int main (int argc, char *argv[]) try
// Create the materials
// Create the materials
typedef
P1NodalBasis
<
GridType2
::
LeafGridView
>
P1Basis2
;
typedef
P1NodalBasis
<
GridType2
::
LeafGridView
>
P1Basis2
;
P1Basis2
p1Basis2
(
grid2
->
leafView
());
P1Basis2
p1Basis2
(
grid2
->
leaf
Grid
View
());
// make a material
// make a material
typedef
NeoHookeMaterial
<
P1Basis2
>
MaterialType2
;
typedef
NeoHookeMaterial
<
P1Basis2
>
MaterialType2
;
...
...
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