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
59682435
Commit
59682435
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Take intersections from the GridView, not from the element
[[Imported from SVN: r10092]]
parent
c1945206
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/stvenantkirchhoffenergy.hh
+7
-7
7 additions, 7 deletions
dune/gfe/stvenantkirchhoffenergy.hh
with
7 additions
and
7 deletions
dune/gfe/stvenantkirchhoffenergy.hh
+
7
−
7
View file @
59682435
...
...
@@ -153,20 +153,20 @@ energy(const Entity& element,
if
(
not
neumannFunction_
)
return
energy
;
for
(
typename
Entity
::
LeafIntersectionIterator
it
=
element
.
ileafbegin
();
it
!=
element
.
ileafend
();
++
it
)
{
if
(
not
neumannBoundary_
or
not
neumannBoundary_
->
contains
(
*
it
))
for
(
auto
&&
it
:
intersections
(
neumannBoundary_
->
gridView
(),
element
)
)
{
if
(
not
neumannBoundary_
or
not
neumannBoundary_
->
contains
(
it
))
continue
;
const
Dune
::
QuadratureRule
<
DT
,
gridDim
-
1
>&
quad
=
Dune
::
QuadratureRules
<
DT
,
gridDim
-
1
>::
rule
(
it
->
type
(),
quadOrder
);
=
Dune
::
QuadratureRules
<
DT
,
gridDim
-
1
>::
rule
(
it
.
type
(),
quadOrder
);
for
(
size_t
pt
=
0
;
pt
<
quad
.
size
();
pt
++
)
{
// Local position of the quadrature point
const
Dune
::
FieldVector
<
DT
,
gridDim
>&
quadPos
=
it
->
geometryInInside
().
global
(
quad
[
pt
].
position
());
const
Dune
::
FieldVector
<
DT
,
gridDim
>&
quadPos
=
it
.
geometryInInside
().
global
(
quad
[
pt
].
position
());
const
DT
integrationElement
=
it
->
geometry
().
integrationElement
(
quad
[
pt
].
position
());
const
DT
integrationElement
=
it
.
geometry
().
integrationElement
(
quad
[
pt
].
position
());
// The value of the local function
//RealTuple<field_type,dim> value = localGeodesicFEFunction.evaluate(quadPos);
...
...
@@ -184,7 +184,7 @@ energy(const Entity& element,
if
(
dynamic_cast
<
const
VirtualGridViewFunction
<
GridView
,
Dune
::
FieldVector
<
double
,
3
>
>*>
(
neumannFunction_
))
dynamic_cast
<
const
VirtualGridViewFunction
<
GridView
,
Dune
::
FieldVector
<
double
,
3
>
>*>
(
neumannFunction_
)
->
evaluateLocal
(
element
,
quadPos
,
neumannValue
);
else
neumannFunction_
->
evaluate
(
it
->
geometry
().
global
(
quad
[
pt
].
position
()),
neumannValue
);
neumannFunction_
->
evaluate
(
it
.
geometry
().
global
(
quad
[
pt
].
position
()),
neumannValue
);
// Only translational dofs are affected by the Neumann force
for
(
size_t
i
=
0
;
i
<
neumannValue
.
size
();
i
++
)
...
...
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