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
6880acd1
Commit
6880acd1
authored
5 months ago
by
Florian Atteneder
Browse files
Options
Downloads
Patches
Plain Diff
gif for heateq output
parent
e6a7b716
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plot/Manifest.toml
+540
-830
540 additions, 830 deletions
plot/Manifest.toml
plot/gif.jl
+42
-0
42 additions, 0 deletions
plot/gif.jl
plot/heateq_gaussian.toml
+18
-0
18 additions, 0 deletions
plot/heateq_gaussian.toml
with
600 additions
and
830 deletions
plot/Manifest.toml
+
540
−
830
View file @
6880acd1
This diff is collapsed.
Click to expand it.
plot/gif.jl
0 → 100644
+
42
−
0
View file @
6880acd1
using
GLMakie
GLMakie
.
activate!
()
using
dg1d
let
MT
=
GLMakie
.
Makie
.
MathTeXEngine
mt_fonts_dir
=
joinpath
(
dirname
(
pathof
(
MT
)),
".."
,
"assets"
,
"fonts"
,
"NewComputerModern"
)
theme
=
Theme
(
fonts
=
(
regular
=
joinpath
(
mt_fonts_dir
,
"NewCM10-Regular.otf"
),
bold
=
joinpath
(
mt_fonts_dir
,
"NewCM10-Bold.otf"
),
bold_italic
=
joinpath
(
mt_fonts_dir
,
"NewCM10-BoldItalic.otf"
),
italic
=
joinpath
(
mt_fonts_dir
,
"NewCM10-Italic.otf"
),
),
fontsize
=
30
)
dir
=
joinpath
(
@__DIR__
,
"heateq_gaussian"
)
# read data
output
=
Output
(
joinpath
(
dir
,
"output1d.h5"
))
variables
=
output
.
variables
varnames
=
[
last
(
split
(
var
,
"."
))
for
var
in
variables
]
nvars
=
length
(
variables
)
ts
=
output
.
times
Nts
=
length
(
ts
)
q
(
t
)
=
read_variable
(
output
,
"q"
,
t
)
obs_y
=
Observable
(
q
(
0.0
))
with_theme
(
theme
)
do
fig
=
Figure
()
ax
=
Axis
(
fig
[
1
,
1
],
xlabel
=
L"x"
,
ylabel
=
"q"
)
lines!
(
ax
,
output
.
x
,
obs_y
)
record
(
fig
,
"heateq.gif"
,
ts
[
2
:
end
])
do
t
obs_y
[]
=
q
(
t
)
end
end
end
This diff is collapsed.
Click to expand it.
plot/heateq_gaussian.toml
0 → 100644
+
18
−
0
View file @
6880acd1
[Evolution]
cfl
=
0.8
tend
=
2.4
[HeatEq]
id
=
"sine"
id_sine_width
=
4.0
[Mesh]
range
=
[
-2.0
,
2.0
]
k
=
20
basis
=
"lgl"
n
=
5
[Output]
variables1d
=
[
"u"
,
"q"
]
aligned_ts
=
"$(collect(range(0.02,10.4,step
=
0.02
)))
"
every_iteration
=
0
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