File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 🖥️ Building NEXT on Windows (MSVC)
2+
3+ ## Prerequisites
4+
5+ - Git
6+ - CMake ≥ 3.10
7+ - Visual Studio 2022 with C++ workload
8+ - vcpkg
9+ - HDF5 (installed via vcpkg)
10+ - Python 3
11+
12+ ## Steps
13+
14+ 1 . ** Clone the repository**
15+
16+ ``` powershell
17+ git clone https://github.com/TimGoTheCreator/NEXT.git
18+ cd NEXT
19+ ```
20+
21+ 2 . ** Install vcpkg and HDF5**
22+
23+ ``` powershell
24+ git clone https://github.com/microsoft/vcpkg.git C:/vcpkg
25+ C:/vcpkg/bootstrap-vcpkg.bat
26+ C:/vcpkg/vcpkg install hdf5[hl]:x64-windows
27+ ```
28+
29+ 3 . ** Build NEXT**
30+
31+ ``` powershell
32+ mkdir build
33+ cd build
34+ cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ..
35+ cmake --build . --config Release
36+ cd ..
37+ ```
38+
39+ 4 . ** Run a built-in example simulation**
40+
41+ ``` powershell
42+ cd examples/TwoBodies
43+ python two_body.py
44+ ..\..\next.exe two_body.txt 8 0.01 0.1 vtu
45+ ```
46+
47+ 5 . ** View results**
48+
49+ Open the ` .vtu ` output in ParaView.
You can’t perform that action at this time.
0 commit comments