Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DG1d.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
DG
DG1d.jl
Commits
04271cac
Verified
Commit
04271cac
authored
11 months ago
by
Florian Atteneder
Browse files
Options
Downloads
Patches
Plain Diff
implement bdry conditions for FV
parent
dfcc2f5e
Branches
fa/followup-euler
No related tags found
1 merge request
!157
EulerEq: More follow ups to !155, !156
Pipeline
#6622
failed
11 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/EulerEq/rhs.jl
+8
-2
8 additions, 2 deletions
src/EulerEq/rhs.jl
with
8 additions
and
2 deletions
src/EulerEq/rhs.jl
+
8
−
2
View file @
04271cac
...
...
@@ -200,7 +200,7 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state)
dv₊
[
k
],
dv₋
[
k
]
=
v₊
-
v₀
,
v₀
-
v₋
end
else
TODO
()
#
TODO
Atm we assume that evolution does not reach bdry
end
# limit slope and compute left (L) and (R) interface values
...
...
@@ -295,7 +295,7 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state)
nflx_E_R
[
k
]
=
LLF
(
nx
*
f₊
,
nx
*
f₋
,
E₊
,
E₋
,
max_v
)
end
else
TODO
()
#
TODO
Atm we assume that evolution does not reach bdry
end
# evaluate rhs
...
...
@@ -305,6 +305,12 @@ function step_fv_muscl!(P::Project, mesh::Mesh1d{FVElement}, state)
rhs_q
[
k
]
=
-
(
nflx_q_R
[
k
]
+
nflx_q_L
[
k
]
)
/
dl
rhs_E
[
k
]
=
-
(
nflx_E_R
[
k
]
+
nflx_E_L
[
k
]
)
/
dl
end
if
!
periodic
# TODO Atm we assume that evolution does not reach bdry
rhs_rho
[
1
]
=
rhs_rho
[
end
]
=
0
rhs_q
[
1
]
=
rhs_q
[
end
]
=
0
rhs_E
[
1
]
=
rhs_E
[
end
]
=
0
end
return
end
...
...
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