kavan010/Atoms
소개
Here is the raw code for the atom simulation, includes raytracer version, realtime runner, and 2D version
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- +5
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHydrogen Quantum Orbital Visualizer
Here is the raw code for the atom simulation, includes raytracer version, realtime runner, and 2D version
web version: kavang.com/atom
What the model does:
- Takes the quantum numbers (n, l, m) that describe an orbital's shape
- Using the schrodinger equation, sample r, theta, and phi coordinates from those quantum numbers
- Render those possible positions and color code them relative to their probabilities (brighter areas have higher probability)
Building Requirements:
Build Instructions:
- Clone the repository:
git clone https://github.com/kavan010/Atoms.git
- CD into the newly cloned directory
cd ./Atoms
- Install dependencies with Vcpkg
vcpkg install
- Get the vcpkg cmake toolchain file path
vcpkg integrate install- This will output something like :
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake"
- Create a build directory
mkdir build
- Configure project with CMake
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake- Use the vcpkg cmake toolchain path from above
- Build the project
cmake --build build
- Run the program
- The executables will be located in the build folder
Alternative: Debian/Ubuntu apt workaround
If you don't want to use vcpkg, or you just need a quick way to install the native development packages on Debian/Ubuntu, install these packages and then run the normal CMake steps above:
sudo apt update
sudo apt install build-essential cmake \
libglew-dev libglfw3-dev libglm-dev libgl1-mesa-dev
This provides the GLEW, GLFW, GLM and OpenGL development files so find_package(...) calls in CMakeLists.txt can locate the libraries. After installing, run the cmake -B build -S . and cmake --build build commands as shown in the Build Instructions.
How the code works:
the 2D bohr model works is in atom.cpp, the raytracer and realtime models are right beside
- warning, I would recommend running the realtime model with <100k particles first to be sure, raytracer is super compu-intensive so make sure your system can handle it!
관련 프로젝트 살펴보기
불러오는 중…