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
b8caf09a
Commit
b8caf09a
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make the subdomain solutions available in maps
[[Imported from SVN: r6760]]
parent
237cc6bf
No related branches found
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
+11
-4
11 additions, 4 deletions
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
with
11 additions
and
4 deletions
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
+
11
−
4
View file @
b8caf09a
...
...
@@ -252,10 +252,11 @@ class RodContinuumSteklovPoincareStep
static
const
int
dim
=
ContinuumGridType
::
dimension
;
// The type used for rod configurations
typedef
std
::
vector
<
RigidBodyMotion
<
dim
>
>
Rod
Solu
tionType
;
typedef
std
::
vector
<
RigidBodyMotion
<
dim
>
>
Rod
Configura
tionType
;
// The type used for continuum configurations
typedef
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
dim
>
>
VectorType
;
typedef
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
dim
>
>
ContinuumConfigurationType
;
typedef
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
6
>
>
RodCorrectionType
;
...
...
@@ -333,7 +334,9 @@ private:
RodLocalStiffness
<
typename
RodGridType
::
LeafGridView
,
double
>*
rodLocalStiffness_
;
RiemannianTrustRegionSolver
<
RodGridType
,
RigidBodyMotion
<
3
>
>*
rodSolver_
;
public
:
std
::
map
<
std
::
string
,
RodConfigurationType
>
rodSubdomainSolutions_
;
private
:
//////////////////////////////////////////////////////////////////
// Data members related to the continuum problems
//////////////////////////////////////////////////////////////////
...
...
@@ -354,6 +357,9 @@ private:
typename
ContinuumFEBasis
::
LocalFiniteElement
,
typename
ContinuumFEBasis
::
LocalFiniteElement
>*
localAssembler_
;
public
:
std
::
map
<
std
::
string
,
ContinuumConfigurationType
>
continuumSubdomainSolutions_
;
private
:
};
...
...
@@ -371,7 +377,7 @@ void RodContinuumSteklovPoincareStep<RodGridType,ContinuumGridType>::iterate(Rig
RigidBodyMotion
<
3
>
rodDirichletValue
=
complex_
.
rodDirichletValues_
[
"rod"
].
back
();
// Set initial iterate
Rod
Solu
tionType
rodX
;
Rod
Configura
tionType
&
rodX
=
rodSubdomainSolutions_
[
"rod"
]
;
RodFactory
<
typename
RodGridType
::
LeafGridView
>
rodFactory
(
complex_
.
rodGrids_
[
"rod"
]
->
leafView
());
rodFactory
.
create
(
rodX
,
lambda
,
rodDirichletValue
);
...
...
@@ -403,7 +409,8 @@ void RodContinuumSteklovPoincareStep<RodGridType,ContinuumGridType>::iterate(Rig
// Evaluate the Dirichlet-to-Neumann map for the continuum
///////////////////////////////////////////////////////////////////
VectorType
x3d
(
complex_
.
continuumGrids_
[
"continuum"
]
->
size
(
dim
));
VectorType
&
x3d
=
continuumSubdomainSolutions_
[
"continuum"
];
x3d
.
resize
(
complex_
.
continuumGrids_
[
"continuum"
]
->
size
(
dim
));
x3d
=
0
;
// Turn \lambda \in TSE(3) into a Dirichlet value for the continuum
...
...
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