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
c73b1f04
Commit
c73b1f04
authored
4 years ago
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Added some generic class documentation.
parent
4929b918
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
DG_Approximation.py
+8
-5
8 additions, 5 deletions
DG_Approximation.py
Limiter.py
+6
-0
6 additions, 0 deletions
Limiter.py
with
14 additions
and
5 deletions
DG_Approximation.py
+
8
−
5
View file @
c73b1f04
...
...
@@ -3,7 +3,7 @@
@author: Laura C. Kühle
Plotter:
TODO: Contemplate using Seaborn instead of matplotlib
TODO: Contemplate using Seaborn instead of matplotlib
-> Done (used now)
TODO: Double-check everything!
TODO: Replace loops with list comprehension if feasible
...
...
@@ -12,11 +12,8 @@ TODO: Write documentation for all methods
TODO: Restructure Vectors_of_Polynomials -> Done
TODO: Rename Vectors_of_Polynomials -> Done (Basis_Function)
TODO: Ask about Legendre as scaling vector
TODO: Ask whether basis and wavelet should both depend on x (or x and z)
TODO: Ask about renaming ModifiedMinMod to Cockburn-Shu (like Gerhard et al.)
TODO: Contemplate how to make shock tubes comparable
TODO: Implement type check for all kwargs and configs
TODO: Implement type check for all kwargs and configs
-> Done (not recommended for Python)
"""
import
numpy
as
np
...
...
@@ -36,6 +33,12 @@ xi = Symbol('z')
class
DGScheme
(
object
):
"""
Do documentation here.
Here come some parameter.
"""
def
__init__
(
self
,
detector
,
**
kwargs
):
# Unpack keyword arguments
self
.
_wave_speed
=
kwargs
.
pop
(
'
wave_speed
'
,
1
)
...
...
This diff is collapsed.
Click to expand it.
Limiter.py
+
6
−
0
View file @
c73b1f04
...
...
@@ -63,6 +63,12 @@ class MinMod(Limiter):
class
ModifiedMinMod
(
MinMod
):
"""
Do documentation here. Also called Cockburn-Shu limiter.
Here come some parameter.
"""
def
_reset
(
self
,
config
):
super
().
_reset
(
config
)
...
...
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