![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include "oif_global_forces.hpp"#include "BoxGeometry.hpp"#include "Particle.hpp"#include "bonded_interactions/bonded_interaction_data.hpp"#include "cell_system/CellStructure.hpp"#include "communication.hpp"#include "oif_global_forces_params.hpp"#include "system/System.hpp"#include <utils/Vector.hpp>#include <utils/math/triangle_functions.hpp>#include <boost/mpi/collectives/all_reduce.hpp>#include <boost/serialization/utility.hpp>#include <cassert>#include <cmath>#include <functional>#include <span>#include <variant>
Include dependency graph for oif_global_forces.cpp:Go to the source code of this file.
Functions | |
| static auto | calc_oif_mesh (int molType, BoxGeometry const &box_geo, CellStructure &cs, BondedInteractionsMap const &bonded_ias) |
| Calculate the mesh volume and area. | |
| static void | add_oif_global_forces (double area, double volume, int molType, BoxGeometry const &box_geo, CellStructure &cs, BondedInteractionsMap const &bonded_ias) |
| Distribute the OIF global forces to all particles in the mesh. | |
|
static |
Distribute the OIF global forces to all particles in the mesh.
Definition at line 76 of file oif_global_forces.cpp.
References Utils::area_triangle(), BondedInteractionsMap::at(), CellStructure::bond_loop(), BoxGeometry::get_mi_vector(), Utils::get_n_triangle(), Utils::Vector< T, N >::normalize(), stream, and BoxGeometry::unfolded_position().
|
static |
Calculate the mesh volume and area.
Definition at line 43 of file oif_global_forces.cpp.
References Utils::area_triangle(), BondedInteractionsMap::at(), CellStructure::bond_loop(), BoxGeometry::get_mi_vector(), Utils::get_n_triangle(), stream, and BoxGeometry::unfolded_position().