Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
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
Service Desk
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
dune-fem
dune-fem-dg
Commits
d13014e5
Commit
d13014e5
authored
6 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
Enable Limtier again.
parent
7522677a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Latest features added to dune-fem-dg.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/fem-dg/models/modelwrapper.hh
+0
-4
0 additions, 4 deletions
dune/fem-dg/models/modelwrapper.hh
dune/fem-dg/solver/dg.hh
+1
-1
1 addition, 1 deletion
dune/fem-dg/solver/dg.hh
pydemo/euler/shock_tube.py
+3
-2
3 additions, 2 deletions
pydemo/euler/shock_tube.py
with
4 additions
and
7 deletions
dune/fem-dg/models/modelwrapper.hh
+
0
−
4
View file @
d13014e5
...
...
@@ -374,10 +374,6 @@ namespace Fem
RangeType
&
jump
)
const
{
jump
=
AdditionalType
::
jump
(
it
,
x
,
uLeft
,
uRight
);
// take pressure as shock detection values
//const RangeFieldType pl = pressure( uLeft );
//const RangeFieldType pr = pressure( uRight );
//jump = (pl-pr)/(0.5*(pl+pr));
}
// calculate jump between left and right value
...
...
This diff is collapsed.
Click to expand it.
dune/fem-dg/solver/dg.hh
+
1
−
1
View file @
d13014e5
...
...
@@ -30,7 +30,7 @@ namespace Fem
class
Additional
,
Solver
::
Enum
solverId
=
Solver
::
Enum
::
fem
,
Formulation
::
Enum
formId
=
Formulation
::
Enum
::
primal
,
AdvectionLimiter
::
Enum
limiterId
=
AdvectionLimiter
::
Enum
::
un
limited
,
AdvectionLimiter
::
Enum
limiterId
=
AdvectionLimiter
::
Enum
::
limited
,
AdvectionFlux
::
Enum
advFluxId
=
AdvectionFlux
::
Enum
::
llf
,
DiffusionFlux
::
Enum
diffFluxId
=
DiffusionFlux
::
Enum
::
primal
>
...
...
This diff is collapsed.
Click to expand it.
pydemo/euler/shock_tube.py
+
3
−
2
View file @
d13014e5
...
...
@@ -11,7 +11,7 @@ from euler import Model,Sod
parameter
.
append
({
"
fem.verboserank
"
:
-
1
})
grid
=
structuredGrid
([
-
1
,
0
],
[
1
,
0.1
],
[
20
0
,
10
])
grid
=
structuredGrid
([
-
1
,
0
],
[
1
,
0.1
],
[
20
,
5
])
dimR
=
4
t
=
0
dt
=
1e-5
...
...
@@ -58,7 +58,7 @@ def useGalerkinOp():
def
useODESolver
():
global
count
,
t
,
dt
,
saveTime
spaceName
=
"
dgonb
"
polOrder
=
0
polOrder
=
2
space
=
create
.
space
(
spaceName
,
grid
,
order
=
polOrder
,
dimrange
=
dimR
)
u_h
=
space
.
interpolate
(
Sod
(),
name
=
'
u_h
'
)
u_h_n
=
u_h
.
copy
(
name
=
"
previous
"
)
...
...
@@ -71,6 +71,7 @@ def useODESolver():
u_h_n
.
assign
(
u_h
)
operator
(
u_h_n
,
u_h
)
dt
=
operator
.
deltaT
()
print
(
'
dt =
'
,
dt
)
t
+=
dt
if
t
>
saveTime
:
count
+=
1
...
...
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