ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
constraints/initialize.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015-2022 The ESPResSo project
3 *
4 * This file is part of ESPResSo.
5 *
6 * ESPResSo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ESPResSo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19#include "initialize.hpp"
20
21#include "Constraints.hpp"
22
25
26#include "ExternalField.hpp"
27#include "ExternalPotential.hpp"
28
29#include "couplings.hpp"
30#include "fields.hpp"
31
32namespace ScriptInterface {
33namespace Constraints {
34
35using namespace FieldCoupling::Coupling;
36using namespace FieldCoupling::Fields;
37
38/* Generic Fields */
42
43/* Physical Fields */
45
49
53
55 om->register_new<Constraints>("Constraints::Constraints");
56 om->register_new<ShapeBasedConstraint>("Constraints::ShapeBasedConstraint");
58 "Constraints::HomogeneousMagneticField");
59 om->register_new<TabulatedForceField>("Constraints::ForceField");
60 om->register_new<TabulatedPotentialField>("Constraints::PotentialField");
61 om->register_new<Gravity>("Constraints::Gravity");
62 om->register_new<FlowField>("Constraints::FlowField");
63 om->register_new<HomogeneousFlowField>("Constraints::HomogeneousFlowField");
64#ifdef ELECTROSTATICS
65 om->register_new<ElectricPotential>("Constraints::ElectricPotential");
67 "Constraints::LinearElectricPotential");
68 om->register_new<ElectricPlaneWave>("Constraints::ElectricPlaneWave");
69#endif
70}
71} /* namespace Constraints */
72} /* namespace ScriptInterface */
Factory template.
Definition Factory.hpp:78
void register_new(const std::string &name)
Register a new type with the default construction function.
Definition Factory.hpp:113
ScriptInterface implementations for the various couplings provided.
void initialize(Utils::Factory< ObjectHandle > *om)