MaMiCo
1.2
Toggle main menu visibility
Loading...
Searching...
No Matches
coupling
interface
MamicoInterfaceProvider.h
1
// Copyright (C) 2015 Technische Universitaet Muenchen
2
// This file is part of the Mamico project. For conditions of distribution
3
// and use, please see the copyright notice in Mamico's main folder, or at
4
// www5.in.tum.de/mamico
5
#ifndef _MOLECULARDYNAMICS_COUPLING_INTERFACE_MAMICOINTERFACEPROVIDER_H_
6
#define _MOLECULARDYNAMICS_COUPLING_INTERFACE_MAMICOINTERFACEPROVIDER_H_
7
8
#include "coupling/interface/MDSolverInterface.h"
9
#include "coupling/interface/MacroscopicSolverInterface.h"
10
#include "coupling/services/CouplingCellService.h"
11
12
namespace
coupling
{
13
namespace
interface {
14
24
template
<
class
LinkedCell,
int
dim>
class
MamicoInterfaceProvider
{
25
public
:
28
static
MamicoInterfaceProvider
&
getInstance
() {
29
static
MamicoInterfaceProvider
singleton;
30
return
singleton;
31
}
32
36
void
setMacroscopicSolverInterface
(
coupling::interface::MacroscopicSolverInterface<dim>
* macroscopicSolverInterface) {
37
_macroscopicSolverInterface = macroscopicSolverInterface;
38
}
39
43
coupling::interface::MacroscopicSolverInterface<dim>
*
getMacroscopicSolverInterface
() {
return
_macroscopicSolverInterface; }
44
48
void
setMDSolverInterface
(
coupling::interface::MDSolverInterface<LinkedCell, dim>
* mdSolverInterface) { _mdSolverInterface = mdSolverInterface; }
49
53
coupling::interface::MDSolverInterface<LinkedCell, dim>
*
getMDSolverInterface
() {
return
_mdSolverInterface; }
54
58
void
setCouplingCellService
(
coupling::services::CouplingCellService<dim>
* couplingCellService) { _couplingCellService = couplingCellService; }
59
63
coupling::services::CouplingCellService<dim>
*
getCouplingCellService
() {
return
_couplingCellService; }
64
65
private
:
69
MamicoInterfaceProvider
() : _macroscopicSolverInterface(NULL), _mdSolverInterface(NULL), _couplingCellService(NULL) {}
73
~MamicoInterfaceProvider
() {
74
_macroscopicSolverInterface = NULL;
75
_mdSolverInterface = NULL;
76
_couplingCellService = NULL;
77
}
78
79
coupling::interface::MacroscopicSolverInterface<dim>
* _macroscopicSolverInterface;
80
coupling::interface::MDSolverInterface<LinkedCell, dim>
* _mdSolverInterface;
81
coupling::services::CouplingCellService<dim>
* _couplingCellService;
82
};
83
84
}
// namespace interface
85
}
// namespace coupling
86
#endif
// _MOLECULARDYNAMICS_COUPLING_INTERFACE_MAMICOINTERFACEPROVIDER_H_
coupling::interface::MDSolverInterface
interface to the MD simulation
Definition
MDSolverInterface.h:25
coupling::interface::MacroscopicSolverInterface
interface for the macroscopic, i.e. continuum solver
Definition
MacroscopicSolverInterface.h:23
coupling::interface::MamicoInterfaceProvider::setMDSolverInterface
void setMDSolverInterface(coupling::interface::MDSolverInterface< LinkedCell, dim > *mdSolverInterface)
Definition
MamicoInterfaceProvider.h:48
coupling::interface::MamicoInterfaceProvider::setMacroscopicSolverInterface
void setMacroscopicSolverInterface(coupling::interface::MacroscopicSolverInterface< dim > *macroscopicSolverInterface)
Definition
MamicoInterfaceProvider.h:36
coupling::interface::MamicoInterfaceProvider::MamicoInterfaceProvider
MamicoInterfaceProvider()
Definition
MamicoInterfaceProvider.h:69
coupling::interface::MamicoInterfaceProvider::~MamicoInterfaceProvider
~MamicoInterfaceProvider()
Definition
MamicoInterfaceProvider.h:73
coupling::interface::MamicoInterfaceProvider::getMDSolverInterface
coupling::interface::MDSolverInterface< LinkedCell, dim > * getMDSolverInterface()
Definition
MamicoInterfaceProvider.h:53
coupling::interface::MamicoInterfaceProvider::getInstance
static MamicoInterfaceProvider & getInstance()
Definition
MamicoInterfaceProvider.h:28
coupling::interface::MamicoInterfaceProvider::getMacroscopicSolverInterface
coupling::interface::MacroscopicSolverInterface< dim > * getMacroscopicSolverInterface()
Definition
MamicoInterfaceProvider.h:43
coupling::interface::MamicoInterfaceProvider::setCouplingCellService
void setCouplingCellService(coupling::services::CouplingCellService< dim > *couplingCellService)
Definition
MamicoInterfaceProvider.h:58
coupling::interface::MamicoInterfaceProvider::getCouplingCellService
coupling::services::CouplingCellService< dim > * getCouplingCellService()
Definition
MamicoInterfaceProvider.h:63
coupling::services::CouplingCellService
Definition
CouplingCellService.h:50
coupling
everything necessary for coupling operations, is defined in here
Definition
AdditiveMomentumInsertion.h:15
Generated by
1.17.0