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
6377fe8f
Commit
6377fe8f
authored
15 years ago
by
Oliver Sander
Committed by
sander@PCPOOL.MI.FU-BERLIN.DE
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
BoundaryPatch --> LevelBoundaryPatch
[[Imported from SVN: r4474]]
parent
c73aa08d
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/averageinterface.hh
+10
-10
10 additions, 10 deletions
src/averageinterface.hh
src/rodassembler.hh
+1
-1
1 addition, 1 deletion
src/rodassembler.hh
with
11 additions
and
11 deletions
src/averageinterface.hh
+
10
−
10
View file @
6377fe8f
...
...
@@ -29,7 +29,7 @@ class PressureAverager : public Ipopt::TNLP
public
:
/** \brief Constructor */
PressureAverager
(
const
BoundaryPatch
<
GridType
>*
patch
,
PressureAverager
(
const
Level
BoundaryPatch
<
GridType
>*
patch
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
dim
>
>*
result
,
const
Dune
::
FieldVector
<
double
,
dim
>&
resultantForce
,
const
Dune
::
FieldVector
<
double
,
dim
>&
resultantTorque
,
...
...
@@ -111,7 +111,7 @@ public:
*/
const
double
jacobianCutoff_
;
const
BoundaryPatch
<
GridType
>*
patch_
;
const
Level
BoundaryPatch
<
GridType
>*
patch_
;
double
patchArea_
;
...
...
@@ -408,11 +408,11 @@ finalize_solution(Ipopt::SolverReturn status,
template
<
class
GridType
>
void
computeAveragePressure
(
const
Dune
::
FieldVector
<
double
,
GridType
::
dimension
>&
resultantForce
,
const
Dune
::
FieldVector
<
double
,
GridType
::
dimension
>&
resultantTorque
,
const
BoundaryPatch
<
GridType
>&
interface
,
const
Level
BoundaryPatch
<
GridType
>&
interface
,
const
RigidBodyMotion
<
3
>&
crossSection
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
GridType
::
dimension
>
>&
pressure
)
{
const
GridType
&
grid
=
interface
.
g
etG
rid
();
const
GridType
&
grid
=
interface
.
g
ridView
().
g
rid
();
const
int
level
=
interface
.
level
();
const
typename
GridType
::
Traits
::
LevelIndexSet
&
indexSet
=
grid
.
levelIndexSet
(
level
);
const
int
dim
=
GridType
::
dimension
;
...
...
@@ -456,8 +456,8 @@ void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>&
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
1
>
>
nodalWeights
(
interface
.
numVertices
());
nodalWeights
=
0
;
typename
BoundaryPatch
<
GridType
>::
iterator
it
=
interface
.
begin
();
typename
BoundaryPatch
<
GridType
>::
iterator
endIt
=
interface
.
end
();
typename
Level
BoundaryPatch
<
GridType
>::
iterator
it
=
interface
.
begin
();
typename
Level
BoundaryPatch
<
GridType
>::
iterator
endIt
=
interface
.
end
();
for
(;
it
!=
endIt
;
++
it
)
{
...
...
@@ -638,7 +638,7 @@ void computeAveragePressure(const Dune::FieldVector<double,GridType::dimension>&
}
template
<
class
GridType
>
void
computeAverageInterface
(
const
BoundaryPatch
<
GridType
>&
interface
,
void
computeAverageInterface
(
const
Level
BoundaryPatch
<
GridType
>&
interface
,
const
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
GridType
::
dimension
>
>
deformation
,
RigidBodyMotion
<
3
>&
average
)
{
...
...
@@ -648,7 +648,7 @@ void computeAverageInterface(const BoundaryPatch<GridType>& interface,
typedef
typename
GridType
::
template
Codim
<
0
>
::
Entity
EntityType
;
typedef
typename
EntityType
::
LevelIntersectionIterator
NeighborIterator
;
const
GridType
&
grid
=
interface
.
g
etG
rid
();
const
GridType
&
grid
=
interface
.
g
ridView
().
g
rid
();
const
int
level
=
interface
.
level
();
const
typename
GridType
::
Traits
::
LevelIndexSet
&
indexSet
=
grid
.
levelIndexSet
(
level
);
const
int
dim
=
GridType
::
dimension
;
...
...
@@ -665,8 +665,8 @@ void computeAverageInterface(const BoundaryPatch<GridType>& interface,
// Loop and integrate over the interface
// ///////////////////////////////////////////
typename
BoundaryPatch
<
GridType
>::
iterator
it
=
interface
.
begin
();
typename
BoundaryPatch
<
GridType
>::
iterator
endIt
=
interface
.
end
();
typename
Level
BoundaryPatch
<
GridType
>::
iterator
it
=
interface
.
begin
();
typename
Level
BoundaryPatch
<
GridType
>::
iterator
endIt
=
interface
.
end
();
for
(;
it
!=
endIt
;
++
it
)
{
...
...
This diff is collapsed.
Click to expand it.
src/rodassembler.hh
+
1
−
1
View file @
6377fe8f
...
...
@@ -82,7 +82,7 @@ class RodAssembler : public GeodesicFEAssembler<typename GridType::LeafGridView,
/** \brief Return resultant force across boundary in canonical coordinates
\note Linear run-time in the size of the grid */
Dune
::
FieldVector
<
double
,
3
>
getResultantForce
(
const
BoundaryPatch
<
GridType
>&
boundary
,
Dune
::
FieldVector
<
double
,
3
>
getResultantForce
(
const
Level
BoundaryPatch
<
GridType
>&
boundary
,
const
std
::
vector
<
RigidBodyMotion
<
3
>
>&
sol
,
Dune
::
FieldVector
<
double
,
3
>&
canonicalTorque
)
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