Molecular Dynamics Simulation  1.0
Functions
ForcePicker.cpp File Reference
#include "ForcePicker.h"
#include <numeric>
#include "io/logger/Logger.h"
#include "physics/pairwiseforces/GravitationalForce.h"
#include "physics/pairwiseforces/LennardJonesForce.h"
#include "physics/simpleforces/GlobalDownwardsGravity.h"
Include dependency graph for ForcePicker.cpp:

Go to the source code of this file.

Functions

const std::map< std::string, std::shared_ptr< SimpleForceSource > > get_supported_simple_forces ()
 
const std::map< std::string, std::shared_ptr< PairwiseForceSource > > get_supported_pairwise_forces ()
 

Function Documentation

◆ get_supported_pairwise_forces()

const std::map<std::string, std::shared_ptr<PairwiseForceSource> > get_supported_pairwise_forces ( )

Definition at line 20 of file ForcePicker.cpp.

20  {
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 }

◆ get_supported_simple_forces()

const std::map<std::string, std::shared_ptr<SimpleForceSource> > get_supported_simple_forces ( )

Definition at line 10 of file ForcePicker.cpp.

10  {
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 }