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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Praetorius, Simon
dune-gfe
Commits
69096174
Commit
69096174
authored
19 years ago
by
Oliver Sander
Committed by
sander
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
.
[[Imported from SVN: r588]]
parent
47270eff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/rodassembler.hh
+4
-4
4 additions, 4 deletions
src/rodassembler.hh
staticrod.cc
+7
-5
7 additions, 5 deletions
staticrod.cc
staticrod.parset
+6
-8
6 additions, 8 deletions
staticrod.parset
with
17 additions
and
17 deletions
src/rodassembler.hh
+
4
−
4
View file @
69096174
...
...
@@ -32,11 +32,11 @@ namespace Dune
typedef
FieldMatrix
<
double
,
blocksize
,
blocksize
>
MatrixBlock
;
//! ???
typedef
typename
FunctionSpaceType
::
JacobianRange
JacobianRange
;
typedef
typename
FunctionSpaceType
::
JacobianRange
Type
JacobianRange
;
//! ???
typedef
typename
FunctionSpaceType
::
RangeField
RangeFieldType
;
typedef
typename
FunctionSpaceType
::
Range
RangeType
;
typedef
typename
FunctionSpaceType
::
RangeField
Type
RangeFieldType
;
typedef
typename
FunctionSpaceType
::
Range
Type
RangeType
;
/** \todo Does actually belong into the base class */
const
GridType
*
grid_
;
...
...
@@ -55,7 +55,7 @@ namespace Dune
RodAssembler
(
const
FunctionSpaceType
&
f
)
:
functionSpace_
(
f
)
{
grid_
=
&
f
.
g
etG
rid
();
grid_
=
&
f
.
grid
();
B
=
1
;
A1
=
1
;
A3
=
1
;
...
...
This diff is collapsed.
Click to expand it.
staticrod.cc
+
7
−
5
View file @
69096174
...
...
@@ -3,6 +3,7 @@
#include
<dune/grid/onedgrid.hh>
#include
<dune/fem/lagrangebase.hh>
#include
<dune/grid/common/gridpart.hh>
#include
<dune/istl/io.hh>
...
...
@@ -94,15 +95,15 @@ int main (int argc, char *argv[]) try
// //////////////////////////////////////////////////////////
typedef
FunctionSpace
<
double
,
double
,
1
,
1
>
RodFuncSpace
;
typedef
DefaultGridIndexSet
<
RodGridType
,
LevelIndex
>
RodIndexSet
;
typedef
LagrangeDiscreteFunctionSpace
<
RodFuncSpace
,
RodGridType
,
RodIndexSet
,
1
>
RodFuncSpaceType
;
typedef
LevelGridPart
<
RodGridType
>
RodGridPartType
;
typedef
LagrangeDiscreteFunctionSpace
<
RodFuncSpace
,
RodGrid
Part
Type
,
1
>
RodFuncSpaceType
;
Array
<
Rod
IndexSet
*>
rodIndexSe
t
(
maxlevel
+
1
);
Array
<
Rod
GridPartType
*>
rodGridPar
t
(
maxlevel
+
1
);
Array
<
const
RodFuncSpaceType
*>
rodFuncSpace
(
maxlevel
+
1
);
for
(
int
i
=
0
;
i
<
maxlevel
+
1
;
i
++
)
{
rod
IndexSe
t
[
i
]
=
new
Rod
IndexSet
(
rod
,
i
);
rodFuncSpace
[
i
]
=
new
RodFuncSpaceType
(
rod
,
*
rodIndexSe
t
[
i
]
,
i
);
rod
GridPar
t
[
i
]
=
new
Rod
GridPartType
(
rod
,
i
);
rodFuncSpace
[
i
]
=
new
RodFuncSpaceType
(
*
rodGridPar
t
[
i
]);
}
...
...
@@ -160,6 +161,7 @@ int main (int argc, char *argv[]) try
for
(
int
i
=
0
;
i
<
obstacles
[
maxlevel
].
size
();
i
++
)
{
obstacles
[
maxlevel
][
i
].
clear
();
obstacles
[
maxlevel
][
i
].
val
[
0
]
=
-
x
[
i
][
0
];
obstacles
[
maxlevel
][
i
].
val
[
1
]
=
0.1
-
x
[
i
][
0
];
}
...
...
This diff is collapsed.
Click to expand it.
staticrod.parset
+
6
−
8
View file @
69096174
# Number of grid levels
minLevel = 0
maxLevel = 0
# Number of uniform grid refinement steps
maxLevel = 4
# Initial load increment
loadIncrement = 1
loadIncrement =
0.0
1
# Max number of steps of the Newton solver
maxNewtonSteps =
1
0
maxNewtonSteps =
3
0
# Number of multigrid iterations per time step
numIt = 100
...
...
@@ -25,7 +23,7 @@ mu = 1
baseIt = 100
# Tolerance of the solver
tolerance = -1
tolerance =
1e
-1
0
# Tolerance of the base grid solver
baseTolerance = -1
...
...
@@ -35,4 +33,4 @@ baseTolerance = -1
############################
# Number of elements of the rod grid
numRodElements =
40
numRod
Base
Elements =
5
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