Molecular Dynamics Simulation  1.0
ForcePicker.cpp
Go to the documentation of this file.
1 #include "ForcePicker.h"
2 
3 #include <numeric>
4 
5 #include "io/logger/Logger.h"
9 
10 const std::map<std::string, std::shared_ptr<SimpleForceSource>> get_supported_simple_forces() {
11  std::map<std::string, std::shared_ptr<SimpleForceSource>> force_names;
12 
13  auto global_downwards_gravity = std::make_shared<GlobalDownwardsGravity>(0);
14 
15  force_names.insert({std::string(*global_downwards_gravity), global_downwards_gravity});
16 
17  return force_names;
18 }
19 
20 const std::map<std::string, std::shared_ptr<PairwiseForceSource>> get_supported_pairwise_forces() {
21  std::map<std::string, std::shared_ptr<PairwiseForceSource>> force_names;
22 
23  auto lennardjones = std::make_shared<LennardJonesForce>();
24  auto gravitational = std::make_shared<GravitationalForce>();
25  auto global_downwards_gravity = std::make_shared<GlobalDownwardsGravity>(0);
26 
27  force_names.insert({std::string(*lennardjones), lennardjones});
28  force_names.insert({std::string(*gravitational), gravitational});
29 
30  return force_names;
31 }
const std::map< std::string, std::shared_ptr< SimpleForceSource > > get_supported_simple_forces()
Definition: ForcePicker.cpp:10
const std::map< std::string, std::shared_ptr< PairwiseForceSource > > get_supported_pairwise_forces()
Definition: ForcePicker.cpp:20