Code with me a Geant4 app from scratch!
Автор: John Francis
Загружено: 2024-09-23
Просмотров: 784
No Geant4 installation required! Make use of vscode and the devcontainers extension to develop a Geant4 app completely in docker. See me go through the entire process of setting up a Geant4 app to running a simulation with protons in water!
If this video benefitted you, please consider donating to support me. Thank you. https://ko-fi.com/john9francis
Here is the GitHub repo for the project coded in this video: https://github.com/john9francis/docke...
Chapters:
00:00 Intro
01:30 Setting up Git
02:30 Setting up Devcontainer
04:35 Configuring C/C++ intellisense
06:12 Writing todo list
07:48 Writing the CMakeLists.txt
09:57 Action Initialization class
11:55 Choosing a physics list
12:55 Primary Generator Action class and particle gun
15:50 Detector Construction
22:35 Stepping Action class
24:27 Writing the main file
25:52 Debugging
30:00 Done!
Tips:
07:25 How to look at a function in Geant4 source code
08:55 Gitignore the build directory
09:29 How to speed up compilation with make -j flag
10:30 Why to namespace your classes
12:26 Make sure you compile along the way
14:10 Using G4cout, G4endl, and G4cerr
15:19 Geant4's garbage collector
18:27 Writing the PVPlacement constructor
20:30 When to run cmake vs. just make
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: