From c42c5645d3735b06e24337bf157373cc8d91b42b Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 10 Jan 2011 11:09:31 +0000 Subject: [PATCH] A container for a set of rods and elastic continua, plus coupling conditions This class should centralize some of the logistics needed for the knee models and similar stuff. Eventually, domain decomposition solvers should be able to work on this data structure. That is still a way off, though. [[Imported from SVN: r6716]] --- dune/gfe/Makefile.am | 1 + dune/gfe/rodcontinuumcomplex.hh | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 dune/gfe/rodcontinuumcomplex.hh diff --git a/dune/gfe/Makefile.am b/dune/gfe/Makefile.am index 5fd2dac2..691111f7 100644 --- a/dune/gfe/Makefile.am +++ b/dune/gfe/Makefile.am @@ -20,6 +20,7 @@ srcinclude_HEADERS = averagedistanceassembler.hh \ riemanniantrsolver.hh \ rigidbodymotion.hh \ rodassembler.hh \ + rodcontinuumcomplex.hh \ rodlocalstiffness.hh \ rodwriter.hh \ rotation.hh \ diff --git a/dune/gfe/rodcontinuumcomplex.hh b/dune/gfe/rodcontinuumcomplex.hh new file mode 100644 index 00000000..2e9aab63 --- /dev/null +++ b/dune/gfe/rodcontinuumcomplex.hh @@ -0,0 +1,24 @@ +#ifndef ROD_CONTINUUM_COMPLEX_HH +#define ROD_CONTINUUM_COMPLEX_HH + +#include <map> +#include <string> + +#include <dune/common/shared_ptr.hh> + +/** \brief A set of rods and a set of continua, all coupled to each other + */ +template <class RodGrid, class ContinuumGrid> +class RodContinuumComplex +{ +public: + + /** \brief The set of rods, accessible by name (string) */ + std::map<std::string, Dune::shared_ptr<RodGrid> > rodGrids_; + + /** \brief The set of rods, accessible by name (string) */ + std::map<std::string, Dune::shared_ptr<ContinuumGrid> > continuumGrids_; + +}; + +#endif // ROD_CONTINUUM_COMPLEX_HH \ No newline at end of file -- GitLab