Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started with trixi #1343

Merged
Merged
Show file tree
Hide file tree
Changes from 249 commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
e658b63
0th tutorial v1
ArseniyKholod Jan 26, 2023
cb61c3a
0th tutorial v2
ArseniyKholod Jan 26, 2023
ded29ff
0th tutorial v3 (topic for developers)
ArseniyKholod Jan 29, 2023
e9e6b81
0th tutorial v4
ArseniyKholod Jan 29, 2023
3103007
0th tutorial v5
ArseniyKholod Feb 7, 2023
4e58472
Merge branch 'main' into Getting_started_with_Trixi
sloede Feb 7, 2023
99e9e70
0th tutorial v6
ArseniyKholod Feb 28, 2023
6c3db43
0th tutorial v6.1
ArseniyKholod Feb 28, 2023
587cfd0
0th tutorial v6.2
ArseniyKholod Feb 28, 2023
6fbf806
0th tutorial v7 (new example)
ArseniyKholod Mar 9, 2023
e5481d2
0th tutorial v8
ArseniyKholod Mar 14, 2023
2fe50f5
0th tutorial v8.1
ArseniyKholod Mar 15, 2023
2a08ee5
0th tutorial v9
ArseniyKholod Mar 18, 2023
a2473ea
0th tutorial v9.1
ArseniyKholod Mar 20, 2023
5e06196
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Mar 24, 2023
e2da5c2
0th tutorial v9.2
ArseniyKholod Mar 24, 2023
2c1189b
Revert "0th tutorial v9.2"
ArseniyKholod Mar 24, 2023
05d3d1c
0th tutorial v9.3 (test)
ArseniyKholod Mar 24, 2023
36fd35b
Revert "0th tutorial v9.3 (test)"
ArseniyKholod Mar 24, 2023
ae7ed4b
0th tutorial v9.3 (test)
ArseniyKholod Mar 28, 2023
2b5e455
0th tutorial v9.3 (test checks without diff. prog.)
ArseniyKholod Mar 28, 2023
413a2e3
0th tutorial v9.3 (test new diff. prog.)
ArseniyKholod Mar 28, 2023
f01e46e
0th tutorial v9.3 (test new diff. prog. v2)
ArseniyKholod Mar 28, 2023
cd786b7
0th tutorial v9.3 (test update of packages)
ArseniyKholod Mar 28, 2023
449b821
0th tutorial v9.3 (test update of packages v2)
ArseniyKholod Mar 28, 2023
624a961
0th tutorial v9.3 (downgrade Measurements.jl)
ArseniyKholod Mar 28, 2023
109147d
0th tutorial v9.4
ArseniyKholod Apr 1, 2023
c720645
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Apr 1, 2023
6c138a9
0th tutorial v9.5
ArseniyKholod Apr 2, 2023
53a0ba6
Merge branch 'Getting_started_with_Trixi' of https://github.com/Arsen…
ArseniyKholod Apr 2, 2023
1861f1d
0th tutorial review
ArseniyKholod Apr 3, 2023
8fa4ae9
0th tutorial review 2
ArseniyKholod Apr 3, 2023
878c952
0th tutorial v9.6
ArseniyKholod Apr 17, 2023
7bded25
delete test files
ArseniyKholod Apr 27, 2023
09e8117
Revert "rename into getting_started.jl"
ArseniyKholod Apr 27, 2023
8bd5e50
Update docs/make.jl
ArseniyKholod Apr 27, 2023
f88178b
Update Project.toml
ArseniyKholod Apr 27, 2023
906eb64
Update Project.toml
ArseniyKholod Apr 27, 2023
5bedcde
Update docs/make.jl
ArseniyKholod Apr 27, 2023
53a5757
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
6605ece
rename into getting_started.jl
ArseniyKholod Apr 27, 2023
1cb1faa
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
59441fb
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
e21dc0c
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
b9e69f5
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
75da706
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
2a5d413
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
db16d27
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
2cd276c
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
550fda8
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
15bcc10
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
a198ae5
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
ad77ae2
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
cb0c631
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
36337ab
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
d768ab1
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
3f6ef84
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
1ce63e0
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
a03f226
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
aab34d5
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
15f9d0b
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
6a0a128
Update docs/literate/src/files/getting_started_with_Trixi.jl
ArseniyKholod Apr 27, 2023
476f069
correction of spelling errors
ArseniyKholod Apr 27, 2023
2853f78
cleaning out directory
ArseniyKholod Apr 27, 2023
6cb0fed
Correction according to the comments above
ArseniyKholod Apr 27, 2023
f72dfc1
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Apr 27, 2023
83e4175
Trixi installation for Linux
ArseniyKholod Apr 27, 2023
b3c4af7
Merge branch 'Getting_started_with_Trixi' of https://github.com/Arsen…
ArseniyKholod Apr 27, 2023
47bc6d8
Update getting_started.jl
ArseniyKholod Apr 27, 2023
a06caea
cross-referencing correction
ArseniyKholod Apr 27, 2023
9c64e69
spelling
ArseniyKholod Apr 27, 2023
9012b77
Update .gitignore
ArseniyKholod Apr 29, 2023
a0b10ad
Update docs/make.jl
ArseniyKholod Apr 29, 2023
1ccac12
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
d36f310
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
b6e1b27
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
49befca
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
b480862
Update .gitignore
ArseniyKholod Apr 29, 2023
d95ac93
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
c6180ab
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
c302f2a
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
5a9c789
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
b133d78
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
15f73fd
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
ed61f73
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
898cce1
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
01c5ab6
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
7484e94
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
c9f0adc
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
5e451ef
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
cc96356
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
50a3d46
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
c1403a7
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
ba559b6
new plot in Modifying an existing setup
ArseniyKholod Apr 29, 2023
40e2748
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
8821a26
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
58188c4
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
d5b8d92
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
4b820a7
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
259259c
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
3197342
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
2e670f1
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
802cd73
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
bbe84b7
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
bcc8681
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
d16fdd5
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Apr 29, 2023
1521487
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Apr 29, 2023
a1c03e2
julia/shell-formatting
ArseniyKholod Apr 29, 2023
6668a6e
Update getting_started.jl
ArseniyKholod Apr 29, 2023
dd6f468
Update getting_started.jl
ArseniyKholod Apr 29, 2023
85254e1
Correction of Modifying part
ArseniyKholod Apr 30, 2023
c7e4920
Usage update
ArseniyKholod May 1, 2023
d09f1a7
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod May 12, 2023
75eb721
Update getting_started.jl
ArseniyKholod Aug 15, 2023
1be47fa
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Aug 15, 2023
808cfbb
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Sep 23, 2023
177f9e5
add Visualize the solution
ArseniyKholod Sep 24, 2023
e2bbc62
spell check
ArseniyKholod Sep 24, 2023
5423be3
correction
ArseniyKholod Oct 1, 2023
9531985
correction
ArseniyKholod Oct 4, 2023
4d98e1c
add picture paraview
ArseniyKholod Oct 8, 2023
9e51e7e
Merge branch 'main' into Getting_started_with_Trixi
SimonCan Oct 18, 2023
acfcec2
divide in two parts & correction
ArseniyKholod Oct 20, 2023
fa6c2c6
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Oct 20, 2023
2e7812c
divide in 3 parts
ArseniyKholod Oct 23, 2023
bce20af
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Oct 23, 2023
847c719
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Oct 30, 2023
48b66c9
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Oct 30, 2023
c5cc3d9
Merge branch 'main' into Getting_started_with_Trixi
sloede Nov 9, 2023
b4f5631
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
3dd71a5
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
67c537c
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
8c11124
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
10d564f
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
a45eedc
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
c090e47
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
71ad131
Update create_first_setup.jl
ArseniyKholod Feb 3, 2024
f55e922
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
80435e1
Merge branch 'main' into Getting_started_with_Trixi
ArseniyKholod Feb 3, 2024
651bced
Update getting_started.jl
ArseniyKholod Feb 3, 2024
735f299
Update getting_started.jl
ArseniyKholod Feb 3, 2024
ad453d2
Update create_first_setup.jl
ArseniyKholod Feb 3, 2024
952e5c5
Update changing_trixi.jl
ArseniyKholod Feb 3, 2024
151e7c4
Update changing_trixi.jl
ArseniyKholod Feb 3, 2024
24c921c
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
79b4882
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
706ad64
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
0c6b2b0
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
6bb982a
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
949b209
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
cb7493c
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
175f676
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
1de1ed8
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
63958e3
Update docs/literate/src/files/getting_started.jl
ArseniyKholod Feb 3, 2024
a7fcc45
Merge branch 'Getting_started_with_Trixi' of https://github.com/Arsen…
ArseniyKholod Feb 3, 2024
a34f238
move files to subfolder
ArseniyKholod Feb 3, 2024
28f0080
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
3247a60
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
2ac17c4
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
8d3ea90
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
1e1c7f1
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
bfdb135
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
3a49ce0
Update create_first_setup.jl
ArseniyKholod Feb 3, 2024
3f536d4
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
1186293
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
8580ee7
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
d82d5f2
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
f5cdc52
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
7acc392
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
0d37a29
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
4830b1b
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
04dc77e
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
f26ace3
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
b5ec319
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
68aebe4
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
e3c93bd
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
8704538
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
ccd2b61
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
ad44c7a
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
ad9c66f
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
6ede28c
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
491caaa
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
730b284
Update docs/literate/src/files/create_first_setup.jl
ArseniyKholod Feb 3, 2024
2f968bf
Merge branch 'Getting_started_with_Trixi' of https://github.com/Arsen…
ArseniyKholod Feb 3, 2024
743be05
Update docs/literate/src/files/changing_trixi.jl
ArseniyKholod Feb 3, 2024
f1f2d5f
Update docs/literate/src/files/changing_trixi.jl
ArseniyKholod Feb 3, 2024
201c7a1
Update docs/literate/src/files/changing_trixi.jl
ArseniyKholod Feb 3, 2024
0940e5e
Update docs/literate/src/files/changing_trixi.jl
ArseniyKholod Feb 3, 2024
e2badb1
Merge branch 'Getting_started_with_Trixi' of https://github.com/Arsen…
ArseniyKholod Feb 3, 2024
42670ee
Update docs/literate/src/files/changing_trixi.jl
ArseniyKholod Feb 3, 2024
4faae87
Merge branch 'Getting_started_with_Trixi' of https://github.com/Arsen…
ArseniyKholod Feb 3, 2024
8a73f2c
add transition between 2nd and 3rd parts
ArseniyKholod Feb 3, 2024
8c49163
Update docs/make.jl
ArseniyKholod Feb 3, 2024
40d8b02
clear out folder
ArseniyKholod Feb 3, 2024
7a7cf49
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
b66d07a
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
e801e8a
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
fbff5ef
Update getting_started.jl
ArseniyKholod Feb 3, 2024
1d61b52
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
d61ba70
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
076e44f
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
7566945
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
505559e
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
ea97b2d
Update docs/literate/src/files/first_steps/getting_started.jl
ArseniyKholod Feb 3, 2024
87ee7ad
Update getting_started.jl
ArseniyKholod Feb 3, 2024
1d03e62
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
554a866
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
1666d30
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
92de625
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
b53ab01
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
11a3cc0
Update create_first_setup.jl
ArseniyKholod Feb 3, 2024
dc81024
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
799db43
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
c1eb2cb
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
ef21cf1
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
e632154
Update create_first_setup.jl
ArseniyKholod Feb 3, 2024
740dee0
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
35735a7
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
4437ec5
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
6def217
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
997288e
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
ce1deab
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
d351324
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
1356e19
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
d20aeaa
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
8cb8f61
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
08acbd2
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
633f6e7
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
9a8f4d6
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
df84d44
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 3, 2024
46c86c8
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 3, 2024
23f75c0
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 3, 2024
9dfb2b6
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 3, 2024
947fcdc
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 3, 2024
3835d66
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 3, 2024
06b8a58
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 3, 2024
2afc25e
spelling
ArseniyKholod Feb 3, 2024
4f51aa5
delete julia, tabs
ArseniyKholod Feb 3, 2024
509147b
add juliaup
ArseniyKholod Feb 4, 2024
a0d9835
add intro
ArseniyKholod Feb 4, 2024
c6c473f
rm
ArseniyKholod Feb 4, 2024
027d419
Apply suggestions from code review
sloede Feb 5, 2024
79d96e8
Apply suggestions from code review
sloede Feb 5, 2024
6b473fa
Update docs/literate/src/files/first_steps/getting_started.jl
sloede Feb 5, 2024
3d3952c
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 5, 2024
8813890
Update docs/literate/src/files/first_steps/changing_trixi.jl
ArseniyKholod Feb 5, 2024
e7b1e53
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 5, 2024
a23bd2b
Update docs/literate/src/files/first_steps/create_first_setup.jl
ArseniyKholod Feb 5, 2024
ea0a7d3
add save solution dt
ArseniyKholod Feb 5, 2024
fe88db4
Merge branch 'main' into Getting_started_with_Trixi
sloede Feb 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions docs/literate/src/files/first_steps/changing_trixi.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#src # Changing Trixi.jl itself

# If you plan on editing Trixi.jl itself, you can download Trixi.jl locally and run it from
# the cloned directory.


# ## Cloning Trixi.jl


# ### Windows

# If you are using Windows, you can clone Trixi.jl by using the GitHub Desktop tool:
# - If you do not have a GitHub account yet, create it on
# the [GitHub website](https://github.com/join).
# - Download and install [GitHub Desktop](https://desktop.github.com/) and then log in to
# your account.
# - Open GitHub Desktop, press `Ctrl+Shift+O`.
# - In the opened window, paste `trixi-framework/Trixi.jl` and choose the path to the folder where
# you want to save Trixi.jl. Then click `Clone` and Trixi.jl will be cloned to your computer.

# Now you cloned Trixi.jl and only need to tell Julia to use the local clone as the package sources:
# - Open a terminal using `Win+r` and `cmd`. Navigate to the folder with the cloned Trixi.jl using `cd`.
# - Create a new directory `run`, enter it, and start Julia with the `--project=.` flag:
# ```shell
# mkdir run
# cd run
# julia --project=.
# ```
# - Now run the following commands to install all relevant packages:
# ```julia
# using Pkg; Pkg.develop(PackageSpec(path="..")) # Tell Julia to use the local Trixi.jl clone
# Pkg.add(["OrdinaryDiffEq", "Plots"]) # Install additional packages
ArseniyKholod marked this conversation as resolved.
Show resolved Hide resolved
# ```

# Now you already installed Trixi.jl from your local clone. Note that if you installed Trixi.jl
# this way, you always have to start Julia with the `--project` flag set to your `run` directory,
# e.g.,
# ```shell
# julia --project=.
# ```
# if already inside the `run` directory.


# ### Linux

# You can clone Trixi.jl to your computer by executing the following commands:
# ```shell
# git clone git@github.com:trixi-framework/Trixi.jl.git
# # If an error occurs, try the following:
# # git clone https://github.com/trixi-framework/Trixi.jl
# cd Trixi.jl
# mkdir run
# cd run
# julia --project=. -e 'using Pkg; Pkg.develop(PackageSpec(path=".."))' # Tell Julia to use the local Trixi.jl clone
# julia --project=. -e 'using Pkg; Pkg.add(["OrdinaryDiffEq", "Plots"])' # Install additional packages
# ```
DanielDoehring marked this conversation as resolved.
Show resolved Hide resolved
# Note that if you installed Trixi.jl this way,
# you always have to start Julia with the `--project` flag set to your `run` directory, e.g.,
# ```shell
# julia --project=.
# ```
# if already inside the `run` directory.


# ## Additional reading

# To further delve into Trixi.jl, you may have a look at the following introductory tutorials.
# - [Introduction to DG methods](@ref scalar_linear_advection_1d) will teach you how to set up a
# simple way to approximate the solution of a hyperbolic partial differential equation. It will
# be especially useful to learn about the
# [Discontinuous Galerkin method](https://en.wikipedia.org/wiki/Discontinuous_Galerkin_method)
# and the way it is implemented in Trixi.jl.
# - [Adding a new scalar conservation law](@ref adding_new_scalar_equations) and
# [Adding a non-conservative equation](@ref adding_nonconservative_equation)
# describe how to add new physics models that are not yet included in Trixi.jl.
# - [Callbacks](@ref callbacks-id) gives an overview of how to regularly execute specific actions
# during a simulation, e.g., to store the solution or adapt the mesh.
268 changes: 268 additions & 0 deletions docs/literate/src/files/first_steps/create_first_setup.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
#src # Create first setup

# In this part of the introductory guide, we will create a first Trixi.jl setup as an extension of
# [`elixir_advection_basic.jl`](https://github.com/trixi-framework/Trixi.jl/blob/main/examples/tree_2d_dgsem/elixir_advection_basic.jl).
# Since Trixi.jl has a common basic structure for the setups, you can create your own by extending
# and modifying the following example.

# Let's consider the linear advection equation for a state ``u = u(x, y, t)`` on the two-dimensional spatial domain
# ``[-1, 1] \times [-1, 1]`` with a source term
# ```math
# \frac{\partial}{\partial t}u + \frac{\partial}{\partial x} (0.2 u) - \frac{\partial}{\partial y} (0.7 u) = - 2 e^{-t}
# \sin\bigl(2 \pi (x - t) \bigr) \sin\bigl(2 \pi (y - t) \bigr),
# ```
# with the initial condition
# ```math
# u(x, y, 0) = \sin\bigl(\pi x \bigr) \sin\bigl(\pi y \bigr),
# ```
# and periodic boundary conditions.

# The first step is to create and open a file with the .jl extension. You can do this with your
# favorite text editor (if you do not have one, we recommend [VS Code](https://code.visualstudio.com/)).
# In this file you will create your setup.

# To be able to use functionalities of Trixi.jl, you always need to load Trixi.jl itself
# and the [OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) package.

using Trixi
using OrdinaryDiffEq

# The next thing to do is to choose an equation that is suitable for your problem. To see all the
# currently implemented equations, take a look at
# [`src/equations`](https://github.com/trixi-framework/Trixi.jl/tree/main/src/equations).
# If you are interested in adding a new physics model that has not yet been implemented in
# Trixi.jl, take a look at the tutorials
# [Adding a new scalar conservation law](@ref adding_new_scalar_equations) or
# [Adding a non-conservative equation](@ref adding_nonconservative_equation).

# The linear scalar advection equation in two spatial dimensions
# ```math
# \frac{\partial}{\partial t}u + \frac{\partial}{\partial x} (a_1 u) + \frac{\partial}{\partial y} (a_2 u) = 0
# ```
# is already implemented in Trixi.jl as
# [`LinearScalarAdvectionEquation2D`](@ref), for which we need to define a two-dimensional parameter
# `advection_velocity` describing the parameters ``a_1`` and ``a_2``. Appropriate for our problem is `(0.2, -0.7)`.

advection_velocity = (0.2, -0.7)
equations = LinearScalarAdvectionEquation2D(advection_velocity)

# To solve our problem numerically using Trixi.jl, we have to discretize the spatial
# domain, for which we set up a mesh. One of the most used meshes in Trixi.jl is the
# [`TreeMesh`](@ref). The spatial domain used is ``[-1, 1] \times [-1, 1]``. We set an initial number
# of elements in the mesh using `initial_refinement_level`, which describes the initial number of
# hierarchical refinements. In this simple case, the total number of elements is `2^initial_refinement_level`
# throughout the simulation. The variable `n_cells_max` is used to limit the number of elements in the mesh,
# which cannot be exceeded when using [adaptive mesh refinement](@ref Adaptive-mesh-refinement).

# All minimum and all maximum coordinates must be combined into `Tuples`.

coordinates_min = (-1.0, -1.0)
coordinates_max = ( 1.0, 1.0)
mesh = TreeMesh(coordinates_min, coordinates_max,
initial_refinement_level = 4,
n_cells_max = 30_000)

# To approximate the solution of the defined model, we create a [`DGSEM`](@ref) solver.
# The solution in each of the recently defined mesh elements will be approximated by a polynomial
# of degree `polydeg`. For more information about discontinuous Galerkin methods,
# check out the [Introduction to DG methods](@ref scalar_linear_advection_1d) tutorial.

solver = DGSEM(polydeg=3)

# Now we need to define an initial condition for our problem. All the already implemented
# initial conditions for [`LinearScalarAdvectionEquation2D`](@ref) can be found in
# [`src/equations/linear_scalar_advection_2d.jl`](https://github.com/trixi-framework/Trixi.jl/blob/main/src/equations/linear_scalar_advection_2d.jl).
# If you want to use, for example, a Gaussian pulse, it can be used as follows:
# ```julia
# initial_conditions = initial_condition_gauss
# ```
# But to show you how an arbitrary initial condition can be implemented in a way suitable for
# Trixi.jl, we define our own initial conditions.
# ```math
# u(x, y, 0) = \sin\bigl(\pi x \bigr) \sin\bigl(\pi y \bigr).
# ```
# The initial conditions function must take spatial coordinates, time and equation as arguments
# and returns an initial condition as a statically sized vector `SVector`. Following the same structure, you
# can define your own initial conditions. The time variable `t` can be unused in the initial
# condition, but might also be used to describe an analytical solution if known. If you use the
# initial condition as analytical solution, you can analyze your numerical solution by computing
# the error, see also the
# [section about analyzing the solution](https://trixi-framework.github.io/Trixi.jl/stable/callbacks/#Analyzing-the-numerical-solution).

function initial_condition_sinpi(x, t, equations::LinearScalarAdvectionEquation2D)
scalar = sinpi(x[1]) * sinpi(x[2])
return SVector(scalar)
end
initial_condition = initial_condition_sinpi

# The next step is to define a function of the source term corresponding to our problem.
# ```math
# f(u, x, y, t) = - 2 e^{-t} \sin\bigl(2 \pi (x - t) \bigr) \sin\bigl(2 \pi (y - t) \bigr)
# ```
# This function must take the state variable, the spatial coordinates, the time and the
# equation itself as arguments and returns the source term as a static vector `SVector`.

function source_term_exp_sinpi(u, x, t, equations::LinearScalarAdvectionEquation2D)
scalar = - 2 * exp(-t) * sinpi(2*(x[1] - t)) * sinpi(2*(x[2] - t))
return SVector(scalar)
end

# Now we collect all the information that is necessary to define a spatial discretization,
# which leaves us with an ODE problem in time with a span from 0.0 to 1.0.
# This approach is commonly referred to as the method of lines.

semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver;
source_terms = source_term_exp_sinpi)
tspan = (0.0, 1.0)
ode = semidiscretize(semi, tspan);

# At this point, our problem is defined. We will use the `solve` function defined in
# [OrdinaryDiffEq.jl](https://github.com/SciML/OrdinaryDiffEq.jl) to get the solution.
# OrdinaryDiffEq.jl gives us the ability to customize the solver
# using callbacks without actually modifying it. Trixi.jl already has some implemented
# [Callbacks](@ref callbacks-id). The most widely used callbacks in Trixi.jl are
# [step control callbacks](https://docs.sciml.ai/DiffEqCallbacks/stable/step_control/) that are
# activated at the end of each time step to perform some actions, e.g. to print statistics.
# We will show you how to use some of the common callbacks.

# To print a summary of the simulation setup at the beginning
# and to reset timers we use the [`SummaryCallback`](@ref).
# When the returned callback is executed directly, the current timer values are shown.

summary_callback = SummaryCallback()

# We also want to analyze the current state of the solution in regular intervals.
# The [`AnalysisCallback`](@ref) outputs some useful statistical information during the solving process
# every `interval` time steps.

analysis_callback = AnalysisCallback(semi, interval = 5)

# It is also possible to control the time step size using the [`StepsizeCallback`](@ref) if the time
# integration method isn't adaptive itself. To get more details, look at
# [CFL based step size control](@ref CFL-based-step-size-control).

stepsize_callback = StepsizeCallback(cfl = 1.6)

# To save the current solution in regular intervals we use the [`SaveSolutionCallback`](@ref).
# We would like to save the initial and final solutions as well. The data
# will be saved as HDF5 files located in the `out` folder. Afterwards it is possible to visualize
# a solution from saved files using Trixi2Vtk.jl and ParaView, which is described below in the
# section [Visualize the solution](@ref Visualize-the-solution).

save_solution = SaveSolutionCallback(interval = 5,
save_initial_solution = true,
save_final_solution = true)
ArseniyKholod marked this conversation as resolved.
Show resolved Hide resolved

# Alternatively, we have the option to print solution files at fixed time intervals.
# ```julua
# save_solution = SaveSolutionCallback(dt = 0.1,
# save_initial_solution = true,
# save_final_solution = true)
# ```

# Another useful callback is the [`SaveRestartCallback`](@ref). It saves information for restarting
# in regular intervals. We are interested in saving a restart file for the final solution as
# well. To perform a restart, you need to configure the restart setup in a special way, which is
# described in the section [Restart simulation](@ref restart).

save_restart = SaveRestartCallback(interval = 100, save_final_restart = true)

# Create a `CallbackSet` to collect all callbacks so that they can be passed to the `solve`
# function.

callbacks = CallbackSet(summary_callback, analysis_callback, stepsize_callback, save_solution,
save_restart)

# The last step is to choose the time integration method. OrdinaryDiffEq.jl defines a wide range of
# [ODE solvers](https://docs.sciml.ai/DiffEqDocs/latest/solvers/ode_solve/), e.g.
# `CarpenterKennedy2N54(williamson_condition = false)`. We will pass the ODE
# problem, the ODE solver and the callbacks to the `solve` function. Also, to use
# `StepsizeCallback`, we must explicitly specify the initial trial time step `dt`, the selected
# value is not important, because it will be overwritten by the `StepsizeCallback`. And there is no
# need to save every step of the solution, we are only interested in the final result.

sol = solve(ode, CarpenterKennedy2N54(williamson_condition = false), dt = 1.0,
save_everystep = false, callback = callbacks);

# Finally, we print the timer summary.

summary_callback()

# Now you can plot the solution as shown below, analyze it and improve the stability, accuracy or
# efficiency of your setup.


# ## Visualize the solution

# In the previous part of the tutorial, we calculated the final solution of the given problem, now we want
# to visualize it. A more detailed explanation of visualization methods can be found in the section
# [Visualization](@ref visualization).


# ### Using Plots.jl

# The first option is to use the [Plots.jl](https://github.com/JuliaPlots/Plots.jl) package
# directly after calculations, when the solution is saved in the `sol` variable. We load the
# package and use the `plot` function.

using Plots
plot(sol)

# To show the mesh on the plot, we need to extract the visualization data from the solution as
# a [`PlotData2D`](@ref) object. Mesh extraction is possible using the [`getmesh`](@ref) function.
# Plots.jl has the `plot!` function that allows you to modify an already built graph.

pd = PlotData2D(sol)
plot!(getmesh(pd))


# ### Using Trixi2Vtk.jl

# Another way to visualize a solution is to extract it from a saved HDF5 file. After we used the
# `solve` function with [`SaveSolutionCallback`](@ref) there is a file with the final solution.
# It is located in the `out` folder and is named as follows: `solution_index.h5`. The `index`
# is the final time step of the solution that is padded to 6 digits with zeros from the beginning.
# With [Trixi2Vtk](@ref) you can convert the HDF5 output file generated by Trixi.jl into a VTK file.
# This can be used in visualization tools such as [ParaView](https://www.paraview.org) or
# [VisIt](https://visit.llnl.gov) to plot the solution. The important thing is that currently
# Trixi2Vtk.jl supports conversion only for solutions in 2D and 3D spatial domains.

# If you haven't added Trixi2Vtk.jl to your project yet, you can add it as follows.
# ```julia
# import Pkg
ArseniyKholod marked this conversation as resolved.
Show resolved Hide resolved
# Pkg.add(["Trixi2Vtk"])
ArseniyKholod marked this conversation as resolved.
Show resolved Hide resolved
# ```
# Now we load the Trixi2Vtk.jl package and convert the file `out/solution_000018.h5` with
# the final solution using the [`trixi2vtk`](@ref) function saving the resulting file in the
# `out` folder.

using Trixi2Vtk
trixi2vtk(joinpath("out", "solution_000018.h5"), output_directory="out")

# Now two files `solution_000018.vtu` and `solution_000018_celldata.vtu` have been generated in the
# `out` folder. The first one contains all the information for visualizing the solution, the
# second one contains all the cell-based or discretization-based information.

# Now let's visualize the solution from the generated files in ParaView. Follow this short
# instruction to get the visualization.
# - Download, install and open [ParaView](https://www.paraview.org/download/).
# - Press `Ctrl+O` and select the generated files `solution_000018.vtu` and
# `solution_000018_celldata.vtu` from the `out` folder.
# - In the upper-left corner in the Pipeline Browser window, left-click on the eye-icon near
# `solution_000018.vtu`.
# - In the lower-left corner in the Properties window, change the Coloring from Solid Color to
# scalar. This already generates the visualization of the final solution.
# - Now let's add the mesh to the visualization. In the upper-left corner in the
# Pipeline Browser window, left-click on the eye-icon near `solution_000018_celldata.vtu`.
# - In the lower-left corner in the Properties window, change the Representation from Surface
# to Wireframe. Then a white grid should appear on the visualization.
# Now, if you followed the instructions exactly, you should get a similar image as shown in the
# section [Using Plots.jl](@ref Using-Plots.jl):

# ![paraview_trixi2vtk_example](https://github.com/trixi-framework/Trixi.jl/assets/119304909/0c29139b-6c5d-4d5c-86e1-f4ebc95aca7e)

# After completing this tutorial you are able to set up your own simulations with
# Trixi.jl. If you have an interest in contributing to Trixi.jl as a developer, refer to the third
# part of the introduction titled [Changing Trixi.jl itself](@ref changing_trixi).

Sys.rm("out"; recursive=true, force=true) #hide #md
Loading
Loading