Skip to content
Snippets Groups Projects
frictionalboundary-writer.hh 942 B
Newer Older
#ifndef SRC_HDF_FRICTIONALBOUNDARY_WRITER_HH
#define SRC_HDF_FRICTIONALBOUNDARY_WRITER_HH


podlesny's avatar
podlesny committed
#include <dune/fufem/boundarypatch.hh>
#include <dune/fufem/hdf5/sequenceio.hh>
podlesny's avatar
podlesny committed
template <class GridView> class FrictionalBoundaryWriter {
public:
  using Patch = BoundaryPatch<GridView>;

podlesny's avatar
podlesny committed
  template <class Vector>
  FrictionalBoundaryWriter(HDF5::Group& group, const Vector& vertexCoordinates,
                           const Patch& frictionalBoundary);
podlesny's avatar
podlesny committed
  template <class Vector, class ScalarVector>
  void write(const size_t timeStep, const Vector& u, const Vector& v, const ScalarVector& alpha, const ScalarVector& frictionCoeff);
podlesny's avatar
podlesny committed
  HDF5::Group& group_;
podlesny's avatar
podlesny committed
  const Patch& frictionalBoundary_;
  HDF5::SequenceIO<2> frictionalBoundaryDisplacementWriter_;
  HDF5::SequenceIO<2> frictionalBoundaryVelocityWriter_;
  HDF5::SequenceIO<1> frictionalBoundaryStateWriter_;
  HDF5::SequenceIO<1> frictionalBoundaryCoefficientWriter_;