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
7071f9ad
Commit
7071f9ad
authored
19 years ago
by
Oliver Sander
Committed by
sander
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
minor cleanup
[[Imported from SVN: r482]]
parent
5c1ceace
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/rodassembler.cc
+0
-4
0 additions, 4 deletions
src/rodassembler.cc
src/rodassembler.hh
+18
-9
18 additions, 9 deletions
src/rodassembler.hh
with
18 additions
and
13 deletions
src/rodassembler.cc
+
0
−
4
View file @
7071f9ad
...
...
@@ -46,12 +46,9 @@ assembleMatrix(const BlockVector<FieldVector<double, blocksize> >& sol,
BCRSMatrix
<
MatrixBlock
>&
matrix
)
{
//int n = grid_->size(grid_->maxlevel(), dim);
MatrixIndexSet
neighborsPerVertex
;
getNeighborsPerVertex
(
neighborsPerVertex
);
//neighborsPerVertex.exportIdx(*matrix_);
matrix
=
0
;
ElementIterator
it
=
grid_
->
template
lbegin
<
0
>(
grid_
->
maxlevel
()
);
...
...
@@ -68,7 +65,6 @@ assembleMatrix(const BlockVector<FieldVector<double, blocksize> >& sol,
// Extract local solution
BlockVector
<
FieldVector
<
double
,
blocksize
>
>
localSolution
(
numOfBaseFct
);
//BlockVector<FieldVector<double, dim> > localRhs(numOfBaseFct);
for
(
int
i
=
0
;
i
<
numOfBaseFct
;
i
++
)
localSolution
[
i
]
=
sol
[
functionSpace_
.
mapToGlobal
(
*
it
,
i
)];
...
...
This diff is collapsed.
Click to expand it.
src/rodassembler.hh
+
18
−
9
View file @
7071f9ad
...
...
@@ -38,8 +38,6 @@ namespace Dune
typedef
typename
FunctionSpaceType
::
RangeField
RangeFieldType
;
typedef
typename
FunctionSpaceType
::
Range
RangeType
;
public
:
/** \todo Does actually belong into the base class */
const
GridType
*
grid_
;
...
...
@@ -51,6 +49,8 @@ namespace Dune
double
A1
;
double
A3
;
public
:
//! ???
RodAssembler
(
const
FunctionSpaceType
&
f
)
:
functionSpace_
(
f
)
...
...
@@ -63,24 +63,33 @@ namespace Dune
~
RodAssembler
()
{}
void
getNeighborsPerVertex
(
MatrixIndexSet
&
nb
)
const
;
void
setParameters
(
double
b
,
double
a1
,
double
a3
)
{
B
=
b
;
A1
=
a1
;
A3
=
a3
;
}
/** \brief Assemble the tangent stiffness matrix and the right hand side
*/
void
assembleMatrix
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
,
BCRSMatrix
<
MatrixBlock
>&
matrix
);
void
assembleGradient
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
,
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
grad
)
const
;
/** \brief Compute the energy of a deformation state */
double
computeEnergy
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
)
const
;
void
getNeighborsPerVertex
(
MatrixIndexSet
&
nb
)
const
;
protected
:
/** \brief Compute the element tangent stiffness matrix */
template
<
class
MatrixType
>
void
getLocalMatrix
(
EntityType
&
entity
,
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
localSolution
,
const
int
matSize
,
MatrixType
&
mat
)
const
;
void
assembleGradient
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
,
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
grad
)
const
;
/** \brief Compute the energy of a deformation state */
double
computeEnergy
(
const
BlockVector
<
FieldVector
<
double
,
blocksize
>
>&
sol
)
const
;
...
...
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