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
acbd272a
Commit
acbd272a
authored
Jan 10, 2021
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Removed completed TODOs.
parent
6db5f5af
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
ANN_Training_Data_Generator.py
+1
-10
1 addition, 10 deletions
ANN_Training_Data_Generator.py
with
1 addition
and
10 deletions
ANN_Training_Data_Generator.py
+
1
−
10
View file @
acbd272a
...
@@ -3,16 +3,7 @@
...
@@ -3,16 +3,7 @@
@author: Soraya Terrab (sorayaterrab), Laura C. Kühle
@author: Soraya Terrab (sorayaterrab), Laura C. Kühle
TODO: Adjust code to fit style
TODO: Adjust code to fit style
TODO: Replace lambda expressions with InitialCondition -> Done
TODO: Fix NoneType error -> Done (last of three troubled cell functions is used twice)
-> Why? (Problem with samples_per_function I guess)
TODO: Implement option to choose between lambda expressions and InitialCondition -> Done
TODO: Fix might be referenced before assignment error for
"
discontinuous_function
"
-> Done
TODO: Extract initial conditions from
"
generate_[...]_cell_data()
"
-> Done
TODO: Combine
"
generate_smooth_cell_data()
"
and
"
generate_troubled_cell_data()
"
to
"
generate_cell_data()
"
-> Done
TODO: Adapt variable names to fit style
TODO: Adapt variable names to fit style
TODO: Replace
"
num_of_eval_pts
"
with polynomial_degree + 1 -> Done (no need as deleted)
TODO: Replace calculation in
"
cell_centers_leg_basis_coeff()
"
with
"
_do_initial_projection()
"
-> Done
"""
"""
...
@@ -32,6 +23,7 @@ x1 = Symbol('x')
...
@@ -32,6 +23,7 @@ x1 = Symbol('x')
def
cell_centers_leg_basis_coeff
(
num_grid_cells
,
polynomial_degree
,
initial_condition
):
def
cell_centers_leg_basis_coeff
(
num_grid_cells
,
polynomial_degree
,
initial_condition
):
# Create stencil and basis_coefficients for smooth_function mapped onto stencil
# Create stencil and basis_coefficients for smooth_function mapped onto stencil
interval
,
centers
,
h
=
create_3_point_stencil
()
interval
,
centers
,
h
=
create_3_point_stencil
()
centers
=
[
center
[
0
]
for
center
in
centers
]
# print(interval, centers, h)
# print(interval, centers, h)
initial_condition
.
induce_adjustment
(
-
h
[
0
]
/
3
)
initial_condition
.
induce_adjustment
(
-
h
[
0
]
/
3
)
...
@@ -47,7 +39,6 @@ def cell_centers_leg_basis_coeff(num_grid_cells, polynomial_degree, initial_cond
...
@@ -47,7 +39,6 @@ def cell_centers_leg_basis_coeff(num_grid_cells, polynomial_degree, initial_cond
else
:
else
:
coeffs
=
dg_scheme
.
build_training_data
(
centers
[
1
],
initial_condition
)
coeffs
=
dg_scheme
.
build_training_data
(
centers
[
1
],
initial_condition
)
centers
=
[
center
[
0
]
for
center
in
centers
]
return
centers
,
h
,
coeffs
return
centers
,
h
,
coeffs
...
...
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