Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-pdelab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
EXADUNE
dune-pdelab
Commits
bed8584a
Commit
bed8584a
authored
7 years ago
by
Marian Piatkowski
Browse files
Options
Downloads
Patches
Plain Diff
[CDE] adapt CCFV operator for rediscretization in AMG-DG
... on non axi-parallel hexahedral / quadrilateral meshes.
parent
85ac8c98
Branches
Branches containing commit
Tags
recover
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/pdelab/localoperator/convectiondiffusionccfv.hh
+11
-6
11 additions, 6 deletions
dune/pdelab/localoperator/convectiondiffusionccfv.hh
with
11 additions
and
6 deletions
dune/pdelab/localoperator/convectiondiffusionccfv.hh
+
11
−
6
View file @
bed8584a
...
...
@@ -258,7 +258,8 @@ namespace Dune {
// distance between the two cell centers
global_inside
-=
global_outside
;
auto
distance
=
global_inside
.
two_norm
();
// auto distance = global_inside.two_norm();
auto
distance
=
std
::
min
(
geo_inside
.
volume
(),
geo_outside
.
volume
())
/
geo
.
volume
();
// contribution to jacobians on inside element and outside element for test and trial function
mat_ss
.
accumulate
(
lfsu_s
,
0
,
lfsu_s
,
0
,
k_avg
*
face_volume
/
distance
);
...
...
@@ -442,11 +443,15 @@ namespace Dune {
auto
global_inside
=
geo_inside
.
global
(
local_inside
);
auto
global_outside
=
geo
.
global
(
face_local
);
global_inside
-=
global_outside
;
auto
distance
=
global_inside
.
two_norm
();
// Calculate distance to center of neighbouring boundary cell, to
// be consistent with treatment in DG operator
if
(
use_for_amg4dg_rediscretisation
)
distance
*=
2.0
;
// auto distance = global_inside.two_norm();
// // Calculate distance to center of neighbouring boundary cell, to
// // be consistent with treatment in DG operator
// if (use_for_amg4dg_rediscretisation)
// distance *= 2.0;
auto
distance
=
geo_inside
.
volume
()
/
geo
.
volume
();
if
(
not
use_for_amg4dg_rediscretisation
)
distance
*=
0.5
;
// evaluate diffusion coefficient
auto
tensor_inside
=
param
.
A
(
cell_inside
,
local_inside
);
...
...
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