ESyS-Particle  2.3.4
WallForcesToFrictionConverter.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
12 
13 
14 #ifndef ESYS_LSMWALLFORCESTOFRICTIONCONVERTER_H
15 #define ESYS_LSMWALLFORCESTOFRICTIONCONVERTER_H
16 
17 #include <string>
18 #include <boost/shared_ptr.hpp>
19 
20 namespace esys
21 {
22  namespace lsm
23  {
25  {
26  public:
28  const std::string &wallForcesFile,
29  const std::string &instFrictionFile,
30  const std::string &avrgFrictionFile,
31  int halfWindowSize,
32  int wallId1,
33  int wallId2,
34  int normalDimIndex,
35  int shearDimIndex
36  );
37 
38  void convert();
39  private:
40  class Impl;
41  typedef boost::shared_ptr<Impl> ImplPtr;
42 
44  };
45  }
46 }
47 
48 #endif
esys::lsm::WallForcesToFrictionConverter::Impl
Definition: WallForcesToFrictionConverter.cpp:27
esys::lsm::MacroFrictionCalculator::getFrictionVector
const FrictionVector & getFrictionVector() const
Definition: MacroFrictionCalculator.h:62
esys::lsm::WallForcesToFrictionConverter::Impl::m_wallId2
int m_wallId2
Definition: WallForcesToFrictionConverter.cpp:86
esys::lsm::LinearWindowAverager
Definition: LinearWindowAverager.h:27
esys::lsm::WallForceReader
Definition: WallForceReader.h:121
esys::lsm::MacroFrictionCalculator::FrictionVector
std::vector< double > FrictionVector
Definition: MacroFrictionCalculator.h:29
esys::lsm::LinearWindowAverager::getAveragedVector
const ValueVector & getAveragedVector()
Definition: LinearWindowAverager.h:48
esys::lsm::WallForcesToFrictionConverter::Impl::convert
void convert()
Definition: WallForcesToFrictionConverter.cpp:67
esys::lsm::MacroFrictionCalculator::add
void add(const WallForcePair &forcePair)
Definition: MacroFrictionCalculator.h:48
esys::lsm::MacroFrictionCalculator
Definition: MacroFrictionCalculator.h:26
esys::lsm::WallForcesToFrictionConverter::Impl::m_instFrictionFile
const std::string m_instFrictionFile
Definition: WallForcesToFrictionConverter.cpp:82
WallForcesToFrictionConverter.h
esys
Definition: CheckPointable.cpp:17
LinearWindowAverager.h
esys::lsm::WallForcesToFrictionConverter::Impl::FrictionVector
MacroFrictionCalculator::FrictionVector FrictionVector
Definition: WallForcesToFrictionConverter.cpp:50
esys::lsm::WallForcesToFrictionConverter::ImplPtr
boost::shared_ptr< Impl > ImplPtr
Definition: WallForcesToFrictionConverter.h:40
MacroFrictionCalculator.h
esys::lsm::WallForcesToFrictionConverter::Impl::writeLines
void writeLines(const std::string &fileName, const FrictionVector &vec)
Definition: WallForcesToFrictionConverter.cpp:52
esys::lsm::WallForcesToFrictionConverter::convert
void convert()
Definition: WallForcesToFrictionConverter.cpp:116
esys::lsm::WallForcesToFrictionConverter::Impl::m_wallForcesFile
const std::string m_wallForcesFile
Definition: WallForcesToFrictionConverter.cpp:81
esys::lsm::WallForcesToFrictionConverter::Impl::m_avrgFrictionFile
const std::string m_avrgFrictionFile
Definition: WallForcesToFrictionConverter.cpp:83
esys::lsm::WallForcesToFrictionConverter::Impl::Impl
Impl(const std::string &wallForcesFile, const std::string &instFrictionFile, const std::string &avrgFrictionFile, int halfWindowSize, int wallId1, int wallId2, int normalDimIndex, int shearDimIndex)
Definition: WallForcesToFrictionConverter.cpp:29
esys::lsm::WallForcesToFrictionConverter::m_implPtr
ImplPtr m_implPtr
Definition: WallForcesToFrictionConverter.h:43
esys::lsm::WallForcesToFrictionConverter
Definition: WallForcesToFrictionConverter.h:25
esys::lsm::WallForcesToFrictionConverter::Impl::m_halfWindowSize
int m_halfWindowSize
Definition: WallForcesToFrictionConverter.cpp:84
esys::lsm::WallForcesToFrictionConverter::Impl::m_normalDimIndex
int m_normalDimIndex
Definition: WallForcesToFrictionConverter.cpp:87
WallForceReader.h
esys::lsm::WallForcesToFrictionConverter::Impl::m_shearDimIndex
int m_shearDimIndex
Definition: WallForcesToFrictionConverter.cpp:88
esys::lsm::WallForcesToFrictionConverter::WallForcesToFrictionConverter
WallForcesToFrictionConverter(const std::string &wallForcesFile, const std::string &instFrictionFile, const std::string &avrgFrictionFile, int halfWindowSize, int wallId1, int wallId2, int normalDimIndex, int shearDimIndex)
Definition: WallForcesToFrictionConverter.cpp:91
esys::lsm::WallForcesToFrictionConverter::Impl::m_wallId1
int m_wallId1
Definition: WallForcesToFrictionConverter.cpp:85