votca
2024.2-dev
Loading...
Searching...
No Matches
csg
src
libcsg
topologymap.cc
Go to the documentation of this file.
1
/*
2
* Copyright 2009-2021 The VOTCA Development Team (http://www.votca.org)
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
18
// Local VOTCA includes
19
#include "
votca/csg/topologymap.h
"
20
#include "
votca/csg/boundarycondition.h
"
21
22
namespace
votca
{
23
namespace
csg {
24
25
void
TopologyMap::Apply
() {
26
out_
->
setStep
(
in_
->
getStep
());
27
out_
->
setTime
(
in_
->
getTime
());
28
out_
->
setBox
(
in_
->
getBox
());
29
30
for
(
auto
& map_ :
maps_
) {
31
map_.Apply(
out_
->
getBoundary
());
32
}
33
}
34
35
}
// namespace csg
36
}
// namespace votca
boundarycondition.h
votca::csg::TopologyMap::maps_
MapContainer maps_
Definition
topologymap.h:45
votca::csg::TopologyMap::in_
const Topology * in_
Definition
topologymap.h:41
votca::csg::TopologyMap::out_
Topology * out_
Definition
topologymap.h:42
votca::csg::TopologyMap::Apply
void Apply()
Definition
topologymap.cc:25
votca::csg::Topology::getBoundary
const BoundaryCondition & getBoundary() const
Return the boundary condition object.
Definition
topology.h:303
votca::csg::Topology::getTime
double getTime() const
Definition
topology.h:317
votca::csg::Topology::setBox
void setBox(const Eigen::Matrix3d &box, BoundaryCondition::eBoxtype boxtype=BoundaryCondition::typeAuto)
Definition
topology.h:272
votca::csg::Topology::setTime
void setTime(double t)
Definition
topology.h:311
votca::csg::Topology::getBox
const Eigen::Matrix3d & getBox() const
Definition
topology.h:298
votca::csg::Topology::getStep
Index getStep() const
Definition
topology.h:329
votca::csg::Topology::setStep
void setStep(Index s)
Definition
topology.h:323
votca
base class for all analysis tools
Definition
basebead.h:33
topologymap.h
Generated by
1.12.0