-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 3.14) | ||
PROJECT(LOUIS CXX) | ||
|
||
FILE(GLOB SRCS *.h *.cpp) | ||
|
||
ADD_EXECUTABLE(louis ${SRCS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "ParticleManager.h" | ||
|
||
ParticleManager::ParticleManager() | ||
{ | ||
} | ||
|
||
void | ||
ParticleManager::initialisation() | ||
{ | ||
} | ||
|
||
void | ||
ParticleManager::solver() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef PARTICLEMANAGER_H | ||
#define PARTICLEMANAGER_H | ||
|
||
class ParticleManager | ||
{ | ||
public: | ||
ParticleManager(); | ||
|
||
void initialisation(); | ||
void solver(); | ||
}; | ||
|
||
#endif // PARTICLEMANAGER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// !> SPH simulation | ||
// @n This program is used to solve the Navier-Stokes equations | ||
// using the SPH method. A number of files must be given: | ||
// paths.txt, *.prm, *.fp and *.mp. | ||
// @warning The domain must be cubic! | ||
// @brief Main program to launch a SPH simulation | ||
// @author Louis Goffin | ||
// @date 2013-05-26 | ||
// @version 1.0.0 | ||
|
||
#include "ParticleManager.h" | ||
#include <iostream> | ||
#include <chrono> | ||
|
||
int | ||
main() | ||
{ | ||
std::cout << "============= SPH_simulation (L.Goffin)\n"; | ||
|
||
auto t1 = std::chrono::high_resolution_clock::now(); | ||
|
||
ParticleManager manager; | ||
manager.initialisation(); | ||
manager.solver(); | ||
|
||
auto t2 = std::chrono::high_resolution_clock::now(); | ||
std::cout << "Elapsed real time = " << std::chrono::duration_cast<std::chrono::duration<double>>(t2 - t1).count() << '\n'; | ||
} |