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
161cc034
Commit
161cc034
authored
1 year ago
by
Florian Atteneder
Browse files
Options
Downloads
Patches
Plain Diff
fix source term in dg and fv rhs computation
parent
fcc1be15
No related branches found
No related tags found
1 merge request
!101
Refactor GRHD project
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dg_rhs.jl
+2
-2
2 additions, 2 deletions
src/dg_rhs.jl
src/fv_rhs.jl
+3
-16
3 additions, 16 deletions
src/fv_rhs.jl
with
5 additions
and
18 deletions
src/dg_rhs.jl
+
2
−
2
View file @
161cc034
...
...
@@ -26,7 +26,7 @@ function compute_rhs_weak_form!(rhs, f, nf, mesh::Mesh1d{SpectralElement})
end
function
compute_rhs_weak_form!
(
rhs
,
f
,
s
,
nf
,
mesh
::
Mesh1d
{
SpectralElement
})
compute_rhs_weak_form!
(
rhs
,
f
,
nf
,
mesh
)
rhs
.
+
=
s
rhs
.
-
=
s
return
end
...
...
@@ -229,6 +229,6 @@ function compute_rhs_weak_form!(rhs, _::Real, fy, nf, mesh::Mesh2d{SpectralEleme
end
function
compute_rhs_weak_form!
(
rhs
,
fx
,
fy
,
s
,
nf
,
mesh
::
Mesh2d
{
SpectralElement
})
compute_rhs_weak_form!
(
rhs
,
fx
,
fy
,
nf
,
mesh
)
rhs
.
+
=
s
rhs
.
-
=
s
return
end
This diff is collapsed.
Click to expand it.
src/fv_rhs.jl
+
3
−
16
View file @
161cc034
...
...
@@ -27,20 +27,7 @@ function fv_update_step!(up1, u, f, bdry_u, bdry_f, dt, mesh::Mesh1d{FVElement})
end
function
fv_update_step!
(
up1
,
u
,
f
,
s
,
bdry_u
,
bdry_f
,
bdry_s
,
dt
,
mesh
::
Mesh1d
{
FVElement
})
TODO
()
@unpack
invjac
=
mesh
@unpack
K
=
mesh
dl
=
widths
(
mesh
)[
1
]
/
K
dtdl
=
dt
/
dl
@turbo
for
j
=
2
:
K
-
1
up1
[
j
]
=
(
u
[
j
+
1
]
+
2
*
u
[
j
]
+
u
[
j
-
1
])
/
4
-
dtdl
/
2
*
(
f
[
j
+
1
]
-
f
[
j
-
1
])
+
s
[
j
]
end
if
mesh
.
tree
.
periodic
[
1
]
up1
[
1
]
=
(
u
[
2
]
+
2
*
u
[
1
]
+
u
[
end
])
/
4
-
dtdl
/
2
*
(
f
[
2
]
-
f
[
end
])
+
s
[
1
]
up1
[
end
]
=
(
u
[
1
]
+
2
*
u
[
end
]
+
u
[
end
-
1
])
/
4
-
dtdl
/
2
*
(
f
[
1
]
-
f
[
end
-
1
])
+
s
[
end
]
else
TODO
()
end
return
function
fv_update_step!
(
up1
,
u
,
f
,
s
,
bdry_u
,
bdry_f
,
dt
,
mesh
::
Mesh1d
{
FVElement
})
fv_update_step!
(
up1
,
u
,
f
,
bdry_u
,
bdry_f
,
dt
,
mesh
)
up1
.-=
s
end
This diff is collapsed.
Click to expand it.
Florian Atteneder
@fatteneder
mentioned in commit
86ea9e81
·
1 year ago
mentioned in commit
86ea9e81
mentioned in commit 86ea9e81cb0ca598e2b39bfd26d868931f65fd0c
Toggle commit list
Florian Atteneder
@fatteneder
mentioned in commit
50ac5d57
·
1 year ago
mentioned in commit
50ac5d57
mentioned in commit 50ac5d5768c62f98296f6531cc9ba42fab99db39
Toggle commit list
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