template<unsigned int dim>
class coupling::interface::MacroscopicSolverInterface< dim >
interface for the macroscopic, i.e. continuum solver
This class provides
- Template Parameters
-
dim | Number of dimensions; it can be 1, 2 or 3 |
- Author
- Philipp Neumann
template<unsigned int dim>
This function determines all the ranks on which the macroscopic solver holds data of the coupling cell at index idx. By default, this method is used for send/recv operations. However, there are situations where the target and source rank definitions (target rank=rank of macroscopic solver that shall receive data from MD; source rank=rank of macroscopic solver that shall send data to MD) may differ. For example, assume a domain decomposition using ghost layers. You may want to send data from cells inside a process-local domain and want to receive data in all copies of a given coupling cell (incl. ghost cells), but you may not be able to provide valid data on every process for each cell instance (e.g., if this cell is part of a ghost layer). For this case, the method getSourceRanks() and getTargetRanks() can be implemented accordingly.
- Parameters
-
- Returns
- all the ranks on which the macroscopic solver holds data of the coupling cell at index idx.
Implemented in coupling::solvers::CouetteSolverInterface< dim >, and coupling::solvers::LBCouetteSolverInterface.