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
c1e8f31d
Commit
c1e8f31d
authored
6 years ago
by
oliver.sander_at_tu-dresden.de
Browse files
Options
Downloads
Patches
Plain Diff
Move linelast.cc into the 'src' directory
This is where such files should reside nowadays.
parent
30dd39a4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/CMakeLists.txt
+3
-1
3 additions, 1 deletion
src/CMakeLists.txt
src/linear-elasticity.cc
+16
-0
16 additions, 0 deletions
src/linear-elasticity.cc
with
20 additions
and
2 deletions
CMakeLists.txt
+
1
−
1
View file @
c1e8f31d
...
@@ -16,7 +16,7 @@ add_subdirectory("dune")
...
@@ -16,7 +16,7 @@ add_subdirectory("dune")
add_subdirectory
(
"src"
)
add_subdirectory
(
"src"
)
if
(
HAVE_AMIRAMESH AND HAVE_IPOPT AND HAVE_PSURFACE AND HAVE_UG
)
if
(
HAVE_AMIRAMESH AND HAVE_IPOPT AND HAVE_PSURFACE AND HAVE_UG
)
set
(
programs
linelast
viscoelast nonlinelast
)
set
(
programs viscoelast nonlinelast
)
foreach
(
_program
${
programs
}
)
foreach
(
_program
${
programs
}
)
add_executable
(
${
_program
}
${
_program
}
.cc
)
add_executable
(
${
_program
}
${
_program
}
.cc
)
add_dune_amiramesh_flags
(
${
_program
}
)
add_dune_amiramesh_flags
(
${
_program
}
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
3
−
1
View file @
c1e8f31d
if
(
ADOLC_FOUND AND IPOPT_FOUND AND PYTHONLIBS_FOUND AND dune-uggrid_FOUND
)
if
(
ADOLC_FOUND AND IPOPT_FOUND AND PYTHONLIBS_FOUND AND dune-uggrid_FOUND
)
set
(
programs finite-strain-elasticity
)
set
(
programs finite-strain-elasticity
linear-elasticity
)
foreach
(
_program
${
programs
}
)
foreach
(
_program
${
programs
}
)
add_executable
(
${
_program
}
${
_program
}
.cc
)
add_executable
(
${
_program
}
${
_program
}
.cc
)
add_dune_adolc_flags
(
${
_program
}
)
add_dune_adolc_flags
(
${
_program
}
)
...
...
This diff is collapsed.
Click to expand it.
linelast
.cc
→
src/linear-elasticity
.cc
+
16
−
0
View file @
c1e8f31d
...
@@ -89,24 +89,36 @@ int main (int argc, char *argv[]) try
...
@@ -89,24 +89,36 @@ int main (int argc, char *argv[]) try
GridType
*
grid
=
new
GridType
;
GridType
*
grid
=
new
GridType
;
grid
->
setRefinementType
(
GridType
::
COPY
);
grid
->
setRefinementType
(
GridType
::
COPY
);
#if HAVE_AMIRAMESH
if
(
paramBoundaries
)
if
(
paramBoundaries
)
grid
=
AmiraMeshReader
<
GridType
>::
read
(
path
+
gridFile
,
PSurfaceBoundary
<
dim
-
1
>::
read
(
path
+
parFile
));
grid
=
AmiraMeshReader
<
GridType
>::
read
(
path
+
gridFile
,
PSurfaceBoundary
<
dim
-
1
>::
read
(
path
+
parFile
));
else
else
grid
=
AmiraMeshReader
<
GridType
>::
read
(
path
+
gridFile
);
grid
=
AmiraMeshReader
<
GridType
>::
read
(
path
+
gridFile
);
#else
#warning You need libamiramesh for this code!
#endif
LevelBoundaryPatch
coarseDirichletBoundary
;
LevelBoundaryPatch
coarseDirichletBoundary
;
coarseDirichletBoundary
.
setup
(
grid
->
levelGridView
(
0
));
coarseDirichletBoundary
.
setup
(
grid
->
levelGridView
(
0
));
readBoundaryPatch
<
GridType
>
(
coarseDirichletBoundary
,
path
+
dirichletFile
);
readBoundaryPatch
<
GridType
>
(
coarseDirichletBoundary
,
path
+
dirichletFile
);
VectorType
coarseDirichletValues
(
grid
->
size
(
0
,
dim
));
VectorType
coarseDirichletValues
(
grid
->
size
(
0
,
dim
));
#if HAVE_AMIRAMESH
AmiraMeshReader
<
GridType
>::
readFunction
(
coarseDirichletValues
,
path
+
dirichletValuesFile
);
AmiraMeshReader
<
GridType
>::
readFunction
(
coarseDirichletValues
,
path
+
dirichletValuesFile
);
#else
#warning You need libamiramesh for this code!
#endif
LevelBoundaryPatch
coarseNeumannBoundary
;
LevelBoundaryPatch
coarseNeumannBoundary
;
coarseNeumannBoundary
.
setup
(
grid
->
levelGridView
(
0
));
coarseNeumannBoundary
.
setup
(
grid
->
levelGridView
(
0
));
readBoundaryPatch
<
GridType
>
(
coarseNeumannBoundary
,
path
+
neumannFile
);
readBoundaryPatch
<
GridType
>
(
coarseNeumannBoundary
,
path
+
neumannFile
);
VectorType
coarseNeumannValues
(
grid
->
size
(
0
,
dim
));
VectorType
coarseNeumannValues
(
grid
->
size
(
0
,
dim
));
#if HAVE_AMIRAMESH
AmiraMeshReader
<
GridType
>::
readFunction
(
coarseNeumannValues
,
path
+
neumannValuesFile
);
AmiraMeshReader
<
GridType
>::
readFunction
(
coarseNeumannValues
,
path
+
neumannValuesFile
);
#else
#warning You need libamiramesh for this code!
#endif
P1NodalBasis
<
GridType
::
LevelGridView
>
coarseBasis
(
grid
->
levelGridView
(
0
));
P1NodalBasis
<
GridType
::
LevelGridView
>
coarseBasis
(
grid
->
levelGridView
(
0
));
auto
coarseDir
=
::
Functions
::
makeFunction
(
coarseBasis
,
coarseDirichletValues
);
auto
coarseDir
=
::
Functions
::
makeFunction
(
coarseBasis
,
coarseDirichletValues
);
...
@@ -284,10 +296,14 @@ int main (int argc, char *argv[]) try
...
@@ -284,10 +296,14 @@ int main (int argc, char *argv[]) try
}
}
// Output result
// Output result
#if HAVE_AMIRAMESH
LeafAmiraMeshWriter
<
GridType
>
amiramesh
;
LeafAmiraMeshWriter
<
GridType
>
amiramesh
;
amiramesh
.
addLeafGrid
(
*
grid
,
true
);
amiramesh
.
addLeafGrid
(
*
grid
,
true
);
amiramesh
.
addVertexData
(
x
,
grid
->
leafGridView
(),
true
);
amiramesh
.
addVertexData
(
x
,
grid
->
leafGridView
(),
true
);
amiramesh
.
write
(
"resultGrid"
,
1
);
amiramesh
.
write
(
"resultGrid"
,
1
);
#else
#warning You need libamiramesh for this code!
#endif
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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