Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Troubled Cell Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Christine Kühle
Troubled Cell Detection
Commits
c644b003
Commit
c644b003
authored
3 years ago
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Removed showing of plots.
parent
c9a62663
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
DG_Approximation.py
+10
-3
10 additions, 3 deletions
DG_Approximation.py
with
10 additions
and
3 deletions
DG_Approximation.py
+
10
−
3
View file @
c644b003
...
@@ -8,10 +8,19 @@ TODO: Replace loops with list comprehension if feasible
...
@@ -8,10 +8,19 @@ TODO: Replace loops with list comprehension if feasible
TODO: Write documentation for all methods (important)
TODO: Write documentation for all methods (important)
TODO: Discuss adding kwargs to attributes in documentation
TODO: Discuss adding kwargs to attributes in documentation
TODO: Check whether documentation style is correct
TODO: Check whether documentation style is correct
TODO: Check whether all types in doc are correct
TODO: Check whether
'
projection
'
is always a np.array()
TODO: Check whether
'
projection
'
is always a np.array()
TODO: Check whether all instance variables sensible
TODO: Check whether all instance variables sensible
TODO: Use cfl_number for updating, not just time
TODO: Use cfl_number for updating, not just time
TODO: Adjust code to allow classes for all equations (Burger, linear advection, 1D Euler)
TODO: Adjust code to allow classes for all equations (Burger, linear advection, 1D Euler)
TODO: Add documentation to ANN files
TODO: Limit line to 80 characters
TODO: Remove object inheritance from classes
TODO: Rename files according to standard
TODO: Add verbose output
TODO: Adapt TCD from Soraya (Dropbox->...->TEST_troubled-cell-detector->Troubled_Cell_Detector)
TODO: Improve file naming (e.g. use
'
.
'
instead of
'
__
'
)
TODO: Remove showing of plots -> Done
"""
"""
import
os
import
os
...
@@ -105,6 +114,7 @@ class DGScheme(object):
...
@@ -105,6 +114,7 @@ class DGScheme(object):
Additional parameters for quadrature object. Default: {}.
Additional parameters for quadrature object. Default: {}.
update_scheme : str, optional
update_scheme : str, optional
Name of update scheme for evaluation. Default:
'
SSPRK3
'
.
Name of update scheme for evaluation. Default:
'
SSPRK3
'
.
"""
"""
# Unpack keyword arguments
# Unpack keyword arguments
self
.
_wave_speed
=
kwargs
.
pop
(
'
wave_speed
'
,
1
)
self
.
_wave_speed
=
kwargs
.
pop
(
'
wave_speed
'
,
1
)
...
@@ -196,9 +206,6 @@ class DGScheme(object):
...
@@ -196,9 +206,6 @@ class DGScheme(object):
# Plot exact/approximate results, errors, shock tubes and any detector-dependant plots
# Plot exact/approximate results, errors, shock tubes and any detector-dependant plots
self
.
_detector
.
plot_results
(
projection
,
troubled_cell_history
,
time_history
)
self
.
_detector
.
plot_results
(
projection
,
troubled_cell_history
,
time_history
)
if
self
.
_verbose
:
plt
.
show
()
def
save_plots
(
self
):
def
save_plots
(
self
):
"""
Saves plotted results.
"""
Saves plotted results.
...
...
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