ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
oif_global_forces_params.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012-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#ifndef OIF_GLOBAL_FORCES_PARAMS_HPP
20#define OIF_GLOBAL_FORCES_PARAMS_HPP
21
22#include <utils/Vector.hpp>
23
24/** Parameters for OIF global forces
25 *
26 * Characterize the distribution of the force of the global mesh deformation
27 * onto individual vertices of the mesh.
28 */
30 /** Relaxed area of the mesh */
31 double A0_g;
32 /** Area coefficient */
33 double ka_g;
34 /** Relaxed volume of the mesh */
35 double V0;
36 /** Volume coefficient */
37 double kv;
38
39 double cutoff() const { return 0.; }
40
41 static constexpr int num = 2;
42
43 OifGlobalForcesBond(double A0_g, double ka_g, double V0, double kv) {
44 this->ka_g = ka_g;
45 this->A0_g = A0_g;
46 this->V0 = V0;
47 this->kv = kv;
48 }
49
50private:
51 friend boost::serialization::access;
52 template <typename Archive>
53 void serialize(Archive &ar, long int /* version */) {
54 ar & A0_g;
55 ar & ka_g;
56 ar & V0;
57 ar & kv;
58 }
59};
60
61#endif
Vector implementation and trait types for boost qvm interoperability.
Parameters for OIF global forces.
double V0
Relaxed volume of the mesh.
OifGlobalForcesBond(double A0_g, double ka_g, double V0, double kv)
double ka_g
Area coefficient.
double kv
Volume coefficient.
double A0_g
Relaxed area of the mesh.