Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Container Registry
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
dumux-repositories
dumux
Commits
e05d3291
Commit
e05d3291
authored
2 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[test][angeli] Use fvGeometry.geometry(scvf)
parent
afb7f229
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3469
[test][angeli] Use fvGeometry.geometry(scvf)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/freeflow/navierstokes/angeli/problem.hh
+8
-6
8 additions, 6 deletions
test/freeflow/navierstokes/angeli/problem.hh
with
8 additions
and
6 deletions
test/freeflow/navierstokes/angeli/problem.hh
+
8
−
6
View file @
e05d3291
...
...
@@ -167,7 +167,10 @@ public:
DirichletValues
dirichlet
(
const
Element
&
element
,
const
SubControlVolumeFace
&
scvf
)
const
{
if
(
ParentType
::
isMomentumProblem
()
&&
interpolateExactVelocity_
)
return
velocityDirichlet_
(
scvf
);
{
const
auto
fvGeometry
=
localView
(
this
->
gridGeometry
()).
bindElement
(
element
);
return
velocityDirichlet_
(
fvGeometry
.
geometry
(
scvf
));
}
else
return
analyticalSolution
(
scvf
.
center
(),
time_
);
}
...
...
@@ -275,7 +278,7 @@ public:
for
(
const
auto
&
intersection
:
intersections
(
this
->
gridGeometry
().
gridView
(),
element
))
{
if
(
intersection
.
indexInInside
()
==
scv
.
indexInElement
())
return
velocityDirichlet_
(
intersection
);
return
velocityDirichlet_
(
intersection
.
geometry
()
);
}
DUNE_THROW
(
Dune
::
InvalidStateException
,
"No intersection found"
);
...
...
@@ -301,12 +304,11 @@ public:
}
private
:
template
<
class
Entit
y
>
DirichletValues
velocityDirichlet_
(
const
Entity
&
entity
)
const
template
<
class
Geometr
y
>
DirichletValues
velocityDirichlet_
(
const
Geometry
&
geo
)
const
{
DirichletValues
priVars
(
0.0
);
const
auto
geo
=
entity
.
geometry
();
const
auto
&
quad
=
Dune
::
QuadratureRules
<
Scalar
,
decltype
(
geo
)
::
mydimension
>::
rule
(
geo
.
type
(),
3
);
const
auto
&
quad
=
Dune
::
QuadratureRules
<
Scalar
,
Geometry
::
mydimension
>::
rule
(
geo
.
type
(),
3
);
for
(
auto
&&
qp
:
quad
)
{
const
auto
w
=
qp
.
weight
()
*
geo
.
integrationElement
(
qp
.
position
());
...
...
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