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
88fad907
Commit
88fad907
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
rearrange code that calls the linearized NtD maps
[[Imported from SVN: r6870]]
parent
3dda20ef
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
+40
-86
40 additions, 86 deletions
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
with
40 additions
and
86 deletions
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
+
40
−
86
View file @
88fad907
...
...
@@ -871,9 +871,10 @@ iterate(std::map<std::pair<std::string,std::string>, RigidBodyMotion<3> >& lambd
// Apply the preconditioner
///////////////////////////////////////////////////////////////
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
interfaceCorrection
;
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
continuumCorrection
;
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
rodCorrection
;
if
(
preconditioner_
==
"DirichletNeumann"
)
{
if
(
preconditioner_
==
"DirichletNeumann"
or
preconditioner_
==
"NeumannNeumann"
)
{
////////////////////////////////////////////////////////////////////
// Preconditioner is the linearized Neumann-to-Dirichlet map
...
...
@@ -890,17 +891,19 @@ iterate(std::map<std::pair<std::string,std::string>, RigidBodyMotion<3> >& lambd
residualForceTorque
,
lambda
);
insert
(
interface
Correction
,
continuumInterfaceCorrection
);
insert
(
continuum
Correction
,
continuumInterfaceCorrection
);
}
std
::
cout
<<
"resultant continuum interface corrections: "
<<
std
::
endl
;
for
(
ForceIterator
it
=
interface
Correction
.
begin
();
it
!=
interface
Correction
.
end
();
++
it
)
for
(
ForceIterator
it
=
continuum
Correction
.
begin
();
it
!=
continuum
Correction
.
end
();
++
it
)
std
::
cout
<<
" ["
<<
it
->
first
.
first
<<
", "
<<
it
->
first
.
second
<<
"] -- "
<<
it
->
second
<<
std
::
endl
;
}
else
if
(
preconditioner_
==
"NeumannDirichlet"
)
{
}
if
(
preconditioner_
==
"NeumannDirichlet"
or
preconditioner_
==
"NeumannNeumann"
)
{
////////////////////////////////////////////////////////////////////
// Preconditioner is the linearized Neumann-to-Dirichlet map
...
...
@@ -917,57 +920,29 @@ iterate(std::map<std::pair<std::string,std::string>, RigidBodyMotion<3> >& lambd
residualForceTorque
,
lambda
);
insert
(
interface
Correction
,
rodInterfaceCorrection
);
insert
(
rod
Correction
,
rodInterfaceCorrection
);
}
std
::
cout
<<
"resultant rod interface corrections: "
<<
std
::
endl
;
for
(
ForceIterator
it
=
interface
Correction
.
begin
();
it
!=
interface
Correction
.
end
();
++
it
)
for
(
ForceIterator
it
=
rod
Correction
.
begin
();
it
!=
rod
Correction
.
end
();
++
it
)
std
::
cout
<<
" ["
<<
it
->
first
.
first
<<
", "
<<
it
->
first
.
second
<<
"] -- "
<<
it
->
second
<<
std
::
endl
;
}
else
if
(
preconditioner_
==
"NeumannNeumann"
)
{
////////////////////////////////////////////////////////////////////
// Preconditioner is a convex combination of the linearized
// Neumann-to-Dirichlet map of the continuum and the linearized
// Neumann-to-Dirichlet map of the rod.
////////////////////////////////////////////////////////////////////
// First the rod preconditioners
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
rodCorrection
;
for
(
RodIterator
it
=
rods_
.
begin
();
it
!=
rods_
.
end
();
++
it
)
{
const
std
::
string
&
rodName
=
it
->
first
;
}
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
tmp
=
linearizedRodNeumannToDirichletMap
(
rodName
,
rodSubdomainSolutions_
[
rodName
],
residualForceTorque
,
lambda
);
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
interfaceCorrection
;
insert
(
rodCorrection
,
tmp
);
if
(
preconditioner_
==
"DirichletNeumann"
)
{
}
// Then the continuum preconditioners
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
continuumCorrection
;
interfaceCorrection
=
continuumCorrection
;
for
(
ContinuumIterator
it
=
continua_
.
begin
();
it
!=
continua_
.
end
();
++
it
)
{
}
else
if
(
preconditioner_
==
"NeumannDirichlet"
)
{
const
std
::
string
&
continuumName
=
it
->
first
;
interfaceCorrection
=
rodCorrection
;
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
tmp
=
linearizedContinuumNeumannToDirichletMap
(
continuumName
,
continuumSubdomainSolutions_
[
continuumName
],
residualForceTorque
,
lambda
);
insert
(
continuumCorrection
,
tmp
);
}
}
else
if
(
preconditioner_
==
"NeumannNeumann"
)
{
std
::
cout
<<
"resultant interface corrections: "
<<
std
::
endl
;
for
(
ForceIterator
it
=
rodCorrection
.
begin
();
it
!=
rodCorrection
.
end
();
++
it
)
{
...
...
@@ -1185,9 +1160,10 @@ iterateWithContact(std::map<std::pair<std::string,std::string>, RigidBodyMotion<
// Apply the preconditioner
///////////////////////////////////////////////////////////////
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
interfaceCorrection
;
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
continuumCorrection
;
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
rodCorrection
;
if
(
preconditioner_
==
"DirichletNeumann"
)
{
if
(
preconditioner_
==
"DirichletNeumann"
or
preconditioner_
==
"NeumannNeumann"
)
{
////////////////////////////////////////////////////////////////////
// Preconditioner is the linearized Neumann-to-Dirichlet map
...
...
@@ -1206,17 +1182,19 @@ iterateWithContact(std::map<std::pair<std::string,std::string>, RigidBodyMotion<
residualForceTorque,
lambda);
insert(
interface
Correction, continuumInterfaceCorrection);
insert(
continuum
Correction, continuumInterfaceCorrection);
}
#endif
std
::
cout
<<
"resultant continuum interface corrections: "
<<
std
::
endl
;
for
(
ForceIterator
it
=
interface
Correction
.
begin
();
it
!=
interface
Correction
.
end
();
++
it
)
for
(
ForceIterator
it
=
continuum
Correction
.
begin
();
it
!=
continuum
Correction
.
end
();
++
it
)
std
::
cout
<<
" ["
<<
it
->
first
.
first
<<
", "
<<
it
->
first
.
second
<<
"] -- "
<<
it
->
second
<<
std
::
endl
;
}
else
if
(
preconditioner_
==
"NeumannDirichlet"
)
{
}
if
(
preconditioner_
==
"NeumannDirichlet"
or
preconditioner_
==
"NeumannNeumann"
)
{
////////////////////////////////////////////////////////////////////
// Preconditioner is the linearized Neumann-to-Dirichlet map
...
...
@@ -1233,15 +1211,27 @@ iterateWithContact(std::map<std::pair<std::string,std::string>, RigidBodyMotion<
residualForceTorque
,
lambda
);
insert
(
interface
Correction
,
rodInterfaceCorrection
);
insert
(
rod
Correction
,
rodInterfaceCorrection
);
}
std
::
cout
<<
"resultant rod interface corrections: "
<<
std
::
endl
;
for
(
ForceIterator
it
=
interface
Correction
.
begin
();
it
!=
interface
Correction
.
end
();
++
it
)
for
(
ForceIterator
it
=
rod
Correction
.
begin
();
it
!=
rod
Correction
.
end
();
++
it
)
std
::
cout
<<
" ["
<<
it
->
first
.
first
<<
", "
<<
it
->
first
.
second
<<
"] -- "
<<
it
->
second
<<
std
::
endl
;
}
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
interfaceCorrection
;
if
(
preconditioner_
==
"DirichletNeumann"
)
{
interfaceCorrection
=
continuumCorrection
;
}
else
if
(
preconditioner_
==
"NeumannDirichlet"
)
{
interfaceCorrection
=
rodCorrection
;
}
else
if
(
preconditioner_
==
"NeumannNeumann"
)
{
////////////////////////////////////////////////////////////////////
...
...
@@ -1250,42 +1240,6 @@ iterateWithContact(std::map<std::pair<std::string,std::string>, RigidBodyMotion<
// Neumann-to-Dirichlet map of the rod.
////////////////////////////////////////////////////////////////////
// First the rod preconditioners
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
rodCorrection
;
for
(
RodIterator
it
=
rods_
.
begin
();
it
!=
rods_
.
end
();
++
it
)
{
const
std
::
string
&
rodName
=
it
->
first
;
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
tmp
=
linearizedRodNeumannToDirichletMap
(
rodName
,
rodSubdomainSolutions_
[
rodName
],
residualForceTorque
,
lambda
);
insert
(
rodCorrection
,
tmp
);
}
// Then the continuum preconditioners
std
::
map
<
std
::
pair
<
std
::
string
,
std
::
string
>
,
RigidBodyMotion
<
3
>::
TangentVector
>
continuumCorrection
;
#warning Neumann-to-Dirichlet map not implemented yet
#if 0
for (ContinuumIterator it = continua_.begin(); it != continua_.end(); ++it) {
const std::string& continuumName = it->first;
std::map<std::pair<std::string,std::string>, RigidBodyMotion<3>::TangentVector> tmp
= linearizedContinuumNeumannToDirichletMap(continuumName,
continuumSubdomainSolutions_[continuumName],
residualForceTorque,
lambda);
insert(continuumCorrection,tmp);
}
#endif
std
::
cout
<<
"resultant interface corrections: "
<<
std
::
endl
;
for
(
ForceIterator
it
=
rodCorrection
.
begin
();
it
!=
rodCorrection
.
end
();
++
it
)
{
...
...
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