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
0f8a4d32
Commit
0f8a4d32
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
store the reference interface orientations in the RodContinuumComplex, where they should be
[[Imported from SVN: r6830]]
parent
8ff14bb4
No related branches found
Branches containing commit
No related tags found
Loading
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dirneucoupling.cc
+1
-1
1 addition, 1 deletion
dirneucoupling.cc
dune/gfe/coupling/rodcontinuumcomplex.hh
+6
-1
6 additions, 1 deletion
dune/gfe/coupling/rodcontinuumcomplex.hh
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
+8
-8
8 additions, 8 deletions
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
with
15 additions
and
10 deletions
dirneucoupling.cc
+
1
−
1
View file @
0f8a4d32
...
...
@@ -344,6 +344,7 @@ int main (int argc, char *argv[]) try
// Init interface value
RigidBodyMotion
<
3
>
referenceInterface
=
rodX
[
0
];
complex
.
couplings_
[
std
::
make_pair
(
"rod"
,
"continuum"
)].
referenceInterface_
=
referenceInterface
;
RigidBodyMotion
<
3
>
lambda
=
referenceInterface
;
FieldVector
<
double
,
3
>
lambdaForce
(
0
);
FieldVector
<
double
,
3
>
lambdaTorque
(
0
);
...
...
@@ -451,7 +452,6 @@ int main (int argc, char *argv[]) try
preconditioner
,
alpha
,
damping
,
referenceInterface
,
&
rodAssembler
,
&
rodLocalStiffness
,
&
rodSolver
,
...
...
This diff is collapsed.
Click to expand it.
dune/gfe/coupling/rodcontinuumcomplex.hh
+
6
−
1
View file @
0f8a4d32
...
...
@@ -16,6 +16,8 @@ template <class RodGrid, class ContinuumGrid>
class
RodContinuumComplex
{
dune_static_assert
(
RodGrid
::
dimension
==
1
,
"The RodGrid has to be one-dimensional!"
);
static
const
int
dim
=
ContinuumGrid
::
dimension
;
typedef
std
::
vector
<
RigidBodyMotion
<
3
>
>
RodConfiguration
;
...
...
@@ -25,8 +27,11 @@ class RodContinuumComplex
struct
Coupling
{
LeafBoundaryPatch
<
RodGrid
>
rodInterfaceBoundary_
;
LeafBoundaryPatch
<
ContinuumGrid
>
continuumInterfaceBoundary_
;
/** \brief The orientation of the interface in the reference configuration */
RigidBodyMotion
<
dim
>
referenceInterface_
;
};
/** \brief Holds all data for a rod subproblem */
...
...
This diff is collapsed.
Click to expand it.
dune/gfe/coupling/rodcontinuumsteklovpoincarestep.hh
+
8
−
8
View file @
0f8a4d32
...
...
@@ -279,7 +279,6 @@ public:
const
std
::
string
&
preconditioner
,
const
Dune
::
array
<
double
,
2
>&
alpha
,
double
richardsonDamping
,
const
RigidBodyMotion
<
3
>&
referenceInterface
,
RodAssembler
<
typename
RodGridType
::
LeafGridView
,
3
>*
rodAssembler
,
RodLocalStiffness
<
typename
RodGridType
::
LeafGridView
,
double
>*
rodLocalStiffness
,
RiemannianTrustRegionSolver
<
RodGridType
,
RigidBodyMotion
<
3
>
>*
rodSolver
,
...
...
@@ -293,8 +292,7 @@ public:
:
complex_
(
complex
),
preconditioner_
(
preconditioner
),
alpha_
(
alpha
),
richardsonDamping_
(
richardsonDamping
),
referenceInterface_
(
referenceInterface
)
richardsonDamping_
(
richardsonDamping
)
{
rods_
[
"rod"
].
assembler_
=
rodAssembler
;
rods_
[
"rod"
].
localStiffness_
=
rodLocalStiffness
;
...
...
@@ -343,7 +341,6 @@ private:
//////////////////////////////////////////////////////////////////
// Data members related to the rod problems
//////////////////////////////////////////////////////////////////
RigidBodyMotion
<
dim
>
referenceInterface_
;
struct
RodData
{
...
...
@@ -536,9 +533,10 @@ continuumDirichletToNeumannMap(const std::string& continuumName,
const
std
::
pair
<
std
::
string
,
std
::
string
>&
couplingName
=
it
->
first
;
// Turn \lambda \in TSE(3) into a Dirichlet value for the continuum
const
LeafBoundaryPatch
<
ContinuumGridType
>&
foo
=
complex_
.
coupling
(
couplingName
).
continuumInterfaceBoundary_
;
#warning ReferenceInterface not properly set
setRotation
(
foo
,
x3d
,
referenceInterface_
,
it
->
second
);
const
LeafBoundaryPatch
<
ContinuumGridType
>&
interfaceBoundary
=
complex_
.
coupling
(
couplingName
).
continuumInterfaceBoundary_
;
const
RigidBodyMotion
<
dim
>&
referenceInterface
=
complex_
.
coupling
(
couplingName
).
referenceInterface_
;
setRotation
(
interfaceBoundary
,
x3d
,
referenceInterface
,
it
->
second
);
}
...
...
@@ -579,9 +577,11 @@ continuumDirichletToNeumannMap(const std::string& continuumName,
const
std
::
pair
<
std
::
string
,
std
::
string
>&
couplingName
=
it
->
first
;
/** \todo Is referenceInterface.r the correct center of rotation? */
const
RigidBodyMotion
<
dim
>&
referenceInterface
=
complex_
.
coupling
(
couplingName
).
referenceInterface_
;
computeTotalForceAndTorque
(
complex_
.
coupling
(
couplingName
).
continuumInterfaceBoundary_
,
residual
,
referenceInterface
_
.
r
,
referenceInterface
.
r
,
continuumForce
,
continuumTorque
);
result
[
couplingName
][
0
]
=
continuumForce
[
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