ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
oif_global_forces.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 CORE_OBJECT_IN_FLUID_OIF_GLOBAL_FORCES_HPP
20#define CORE_OBJECT_IN_FLUID_OIF_GLOBAL_FORCES_HPP
21/** \file
22 * Routines to calculate the OIF global forces energy or/and and force
23 * for a particle triple (triangle from mesh). See @cite dupin07a.
24 */
25
26#include "BoxGeometry.hpp"
29
30#include <utils/Vector.hpp>
31
32/** Calculate the OIF global force.
33 * Called in force_calc() from within forces.cpp
34 * - calculates the global area and global volume for a cell before the forces
35 * are handled
36 * - MPI synchronization with all reduce
37 * - !!! loop over particles from regular_decomposition !!!
38 */
39Utils::Vector2d calc_oif_global(int molType, BoxGeometry const &box_geo,
40 CellStructure &cs);
41
42/** Distribute the OIF global forces to all particles in the mesh. */
43void add_oif_global_forces(Utils::Vector2d const &area_volume, int molType,
44 BoxGeometry const &box_geo, CellStructure &cs);
45
46extern int max_oif_objects;
47
48#endif
Vector implementation and trait types for boost qvm interoperability.
void add_oif_global_forces(Utils::Vector2d const &area_volume, int molType, BoxGeometry const &box_geo, CellStructure &cs)
Distribute the OIF global forces to all particles in the mesh.
int max_oif_objects
Utils::Vector2d calc_oif_global(int molType, BoxGeometry const &box_geo, CellStructure &cs)
Calculate the OIF global force.
Describes a cell structure / cell system.