Modernized Moving Particle Semi-implicit/Simulation method code written in C++.
Note
See Documentation for more information
- Generate build system
If you use cmake 4.0 or later, you need to add
cmake -S . -B build-DCMAKE_POLICY_VERSION_MINIMUM=3.5to the above command. - Execute build
cmake --build build
- Create output directory if not exist
New-Item -ItemType Directory -Path result/dambreak -Force
- Remove old output files if exist
Remove-Item -Path $outputDir/* -Force -Recurse
- Run simulation
./build/mps.exe --setting input/dambreak/settings.yml --output result/dambreak 2> result/dambreak/error.log | Tee-Object -FilePath "result/dambreak/console.log"
- Create output directory if not exist
mkdir -p result/dambreak/
- Remove old output files if exist
rm -rf result/dambreak/* - Run simulation
./build/mps --setting input/dambreak/settings.yml --output result/dambreak 2> result/dambreak/error.log | tee result/dambreak/console.log
Result files will be written in result/dambreak/vtu/***.vtu.
Open these files in ParaView to see the result.
Note
Install dependencies as shown above for the first build
git submodule update --init doxygen-awesome-cssdoxygen Doxyfile- You can see the documents in
doxygen/html/index.html. - If you want PDF files, you can use
makecommand in thedoxygen/latexdirectory (LaTeX is required).
Please ask the authors if you have any questions.
Read CONTRIBUTING.md for details.
MIT License
This project is under development.