Newer
Older
#ifndef SRC_SPATIAL_SOLVING_SOLVERFACTORY_HH
#define SRC_SPATIAL_SOLVING_SOLVERFACTORY_HH
#include <dune/common/bitsetvector.hh>
#include <dune/common/parametertree.hh>
#include <dune/solvers/iterationsteps/multigridstep.hh>
#include <dune/solvers/iterationsteps/projectedblockgsstep.hh>
#include <dune/solvers/norms/energynorm.hh>
#include <dune/solvers/solvers/loopsolver.hh>
//#include <dune/solvers/transferoperators/compressedmultigridtransfer.hh>
//#include <dune/tnnmg/iterationsteps/genericnonlineargs.hh>
#include <dune/contact/solvers/nsnewtonmgstep.hh>
#include <dune/contact/solvers/contactobsrestrict.hh>
#include <dune/contact/solvers/contacttransferoperatorassembler.hh>
#include <dune/contact/solvers/nsnewtoncontacttransfer.hh>
template <class DeformedGridTEMPLATE, class NonlinearityTEMPLATE, class MatrixType, class VectorType>
using Vector = VectorType;
using Step = Dune::Contact::NonSmoothNewtonMGStep<MatrixType, VectorType>;
using TransferOperator = Dune::Contact::NonSmoothNewtonContactTransfer<VectorType>;
SolverFactory(Dune::ParameterTree const &parset, const Dune::Contact::NBodyAssembler<DeformedGrid, VectorType>& nBodyAssembler,
const Dune::BitSetVector<DeformedGrid::dimension>& ignoreNodes);
const Dune::Contact::NBodyAssembler<DeformedGrid, VectorType>& getNBodyAssembler() const {
const Dune::Contact::NBodyAssembler<DeformedGrid, VectorType>& nBodyAssembler_;
//ProjectedBlockGSStep<MatrixType, VectorType> baseSolverStep_;
BlockGSStep<MatrixType, VectorType> baseSolverStep_;
EnergyNorm<MatrixType, VectorType> baseEnergyNorm_;
LoopSolver<VectorType> baseSolver_;
ProjectedBlockGSStep<MatrixType, VectorType> presmoother_;
ProjectedBlockGSStep<MatrixType, VectorType> postsmoother_;
std::vector<std::shared_ptr<TransferOperator>> transferOperators_;