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
"
27
#include "
cell_system/CellStructure.hpp
"
28
#include "
oif_global_forces_params.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
*/
39
Utils::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. */
43
void
add_oif_global_forces
(
Utils::Vector2d
const
&area_volume,
int
molType,
44
BoxGeometry
const
&box_geo,
CellStructure
&cs);
45
46
extern
int
max_oif_objects
;
47
48
#endif
BoxGeometry.hpp
CellStructure.hpp
Vector.hpp
Vector implementation and trait types for boost qvm interoperability.
BoxGeometry
Definition
BoxGeometry.hpp:98
Utils::Vector
Definition
Vector.hpp:47
add_oif_global_forces
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.
Definition
oif_global_forces.cpp:71
max_oif_objects
int max_oif_objects
Definition
oif_global_forces.cpp:33
calc_oif_global
Utils::Vector2d calc_oif_global(int molType, BoxGeometry const &box_geo, CellStructure &cs)
Calculate the OIF global force.
Definition
oif_global_forces.cpp:35
oif_global_forces_params.hpp
CellStructure
Describes a cell structure / cell system.
Definition
CellStructure.hpp:133
src
core
object-in-fluid
oif_global_forces.hpp
Generated on Sat May 11 2024 01:33:52 for ESPResSo by
1.9.8