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
93610e6e
Commit
93610e6e
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: set proper Dirichlet nodes for the continuum problem
[[Imported from SVN: r6815]]
parent
29563f96
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/coupling/rodcontinuumsteklovpoincarestep.hh
+21
-1
21 additions, 1 deletion
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
with
21 additions
and
1 deletion
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
+
21
−
1
View file @
93610e6e
...
@@ -303,7 +303,22 @@ public:
...
@@ -303,7 +303,22 @@ public:
dirichletValues_
(
dirichletValues
),
dirichletValues_
(
dirichletValues
),
solver_
(
solver
),
solver_
(
solver
),
localAssembler_
(
localAssembler
)
localAssembler_
(
localAssembler
)
{}
{
dirichletAndCouplingNodes_
.
resize
(
complex
.
continuumGrid
(
"continuum"
)
->
size
(
dim
));
const
LeafBoundaryPatch
<
ContinuumGridType
>&
dirichletBoundary
=
complex
.
continuumDirichletBoundary
(
"continuum"
);
for
(
int
i
=
0
;
i
<
dirichletAndCouplingNodes_
.
size
();
i
++
)
dirichletAndCouplingNodes_
[
i
]
=
dirichletBoundary
.
containsVertex
(
i
);
const
LeafBoundaryPatch
<
ContinuumGridType
>&
continuumInterfaceBoundary
=
complex
.
coupling
(
std
::
make_pair
(
"rod"
,
"continuum"
)).
continuumInterfaceBoundary_
;
for
(
int
i
=
0
;
i
<
dirichletAndCouplingNodes_
.
size
();
i
++
)
{
bool
v
=
continuumInterfaceBoundary
.
containsVertex
(
i
);
for
(
int
j
=
0
;
j
<
dim
;
j
++
)
dirichletAndCouplingNodes_
[
i
][
j
]
=
dirichletAndCouplingNodes_
[
i
][
j
]
or
v
;
}
}
...
@@ -359,6 +374,8 @@ private:
...
@@ -359,6 +374,8 @@ private:
const
Dune
::
shared_ptr
<
::
LoopSolver
<
VectorType
>
>
solver_
;
const
Dune
::
shared_ptr
<
::
LoopSolver
<
VectorType
>
>
solver_
;
Dune
::
BitSetVector
<
dim
>
dirichletAndCouplingNodes_
;
/** \todo Hack:
/** \todo Hack:
* - we actually need a base class
* - we actually need a base class
* - we don't need the global ContinuumFEBasis
* - we don't need the global ContinuumFEBasis
...
@@ -436,6 +453,9 @@ continuumDirichletToNeumannMap(const RigidBodyMotion<3>& lambda) const
...
@@ -436,6 +453,9 @@ continuumDirichletToNeumannMap(const RigidBodyMotion<3>& lambda) const
const
LeafBoundaryPatch
<
ContinuumGridType
>&
foo
=
complex_
.
coupling
(
couplingName
).
continuumInterfaceBoundary_
;
const
LeafBoundaryPatch
<
ContinuumGridType
>&
foo
=
complex_
.
coupling
(
couplingName
).
continuumInterfaceBoundary_
;
setRotation
(
foo
,
x3d
,
relativeMovement
);
setRotation
(
foo
,
x3d
,
relativeMovement
);
// Set the correct Dirichlet nodes
dynamic_cast
<
IterationStep
<
VectorType
>*
>
(
solver_
->
iterationStep_
)
->
ignoreNodes_
=
&
dirichletAndCouplingNodes_
;
// Right hand side vector: currently without Neumann and volume terms
// Right hand side vector: currently without Neumann and volume terms
VectorType
rhs3d
(
x3d
.
size
());
VectorType
rhs3d
(
x3d
.
size
());
rhs3d
=
0
;
rhs3d
=
0
;
...
...
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