MaMiCo
1.2
Toggle main menu visibility
Loading...
Searching...
No Matches
coupling
NoMomentumInsertion.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_NOMOMENTUMINSERTION_H_
6
#define _MOLECULARDYNAMICS_COUPLING_NOMOMENTUMINSERTION_H_
7
8
#include "coupling/MomentumInsertion.h"
9
namespace
coupling
{
10
template
<
class
LinkedCell,
unsigned
int
dim>
class
NoMomentumInsertion
;
11
}
12
21
template
<
class
LinkedCell,
unsigned
int
dim>
class
coupling::NoMomentumInsertion
:
public
coupling::MomentumInsertion
<LinkedCell, dim> {
22
public
:
25
NoMomentumInsertion
(
coupling::interface::MDSolverInterface<LinkedCell, dim>
*
const
mdSolverInterface)
26
:
MomentumInsertion
<LinkedCell, dim>(mdSolverInterface) {}
27
28
virtual
~NoMomentumInsertion
() {}
29
34
unsigned
int
getTimeIntervalPerMomentumInsertion
()
const override
{
return
1; }
35
38
void
insertMomentum
(
coupling::datastructures::CouplingCellWithLinkedCells<LinkedCell, dim>
& cell, I02 idx)
const override
{}
39
40
void
setInnerImposition
(
bool
enable)
override
{}
41
};
42
43
#endif
// _MOLECULARDYNAMICS_COUPLING_NOMOMENTUMINSERTION_H_
coupling::MomentumInsertion
used to manipulate the momentum/ velocity of the molecules contained in a coupling cell.
Definition
MomentumInsertion.h:23
coupling::MomentumInsertion::MomentumInsertion
MomentumInsertion(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
a simple constructor
Definition
MomentumInsertion.h:27
coupling::NoMomentumInsertion
dummy class. Empty momentum insertion mechanism. Doesn't change anything.
Definition
NoMomentumInsertion.h:21
coupling::NoMomentumInsertion::NoMomentumInsertion
NoMomentumInsertion(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
a simple constructor
Definition
NoMomentumInsertion.h:25
coupling::NoMomentumInsertion::getTimeIntervalPerMomentumInsertion
unsigned int getTimeIntervalPerMomentumInsertion() const override
returns the number of MD steps between subsequent momentum insertions
Definition
NoMomentumInsertion.h:34
coupling::NoMomentumInsertion::setInnerImposition
void setInnerImposition(bool enable) override
Definition
NoMomentumInsertion.h:40
coupling::NoMomentumInsertion::insertMomentum
void insertMomentum(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, I02 idx) const override
a dummy function, which doesn't do anything
Definition
NoMomentumInsertion.h:38
coupling::NoMomentumInsertion::~NoMomentumInsertion
virtual ~NoMomentumInsertion()
a simple destructor
Definition
NoMomentumInsertion.h:28
coupling::datastructures::CouplingCellWithLinkedCells
defines the cell type with cell-averaged quantities. Derived from the class coupling::datastructures:...
Definition
CouplingCellWithLinkedCells.h:26
coupling::interface::MDSolverInterface
interface to the MD simulation
Definition
MDSolverInterface.h:25
coupling
everything necessary for coupling operations, is defined in here
Definition
AdditiveMomentumInsertion.h:15
Generated by
1.17.0