root/old_code/2015linfty/dune_typedef_heat.hpp

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*********************************************************************
   2  *  dune_typedef_heat.hpp                                            *
   3  *                                                                   *
   4  *  This header just contains lots of typedef by the original author *
   5  *  of heat.cc, heat.hh, etc.                                        *
   6  *                                                                   *
   7  *  Revision history:                                                *
   8  *  none                                                             *
   9  *                                                                   *
  10  *                                                                   *
  11  *  Created by Christian Power on 19.06.14.                          *
  12  *  Copyright (c) 2014 Christian Power. All rights reserved.         *
  13  *                                                                   *
  14  *********************************************************************/
  15 
  16 #ifndef DUNE_TYPEDEF_HEAT_HPP
  17 #define DUNE_TYPEDEF_HEAT_HPP
  18 
  19 #include "deformation.hh"
  20 
  21 typedef Dune::GridSelector::GridType HostGridType;
  22 typedef Dune::GeometryGrid< HostGridType, DeformationCoordFunction > GridType;
  23 
  24 // CAPG: Perhaps this is usefull
  25 // create host grid part consisting of leaf level elements
  26 // typedef Dune::Fem::LeafGridPart< HGridType > HostGridPartType;
  27 // HostGridPartType hostGridPart( grid );
  28 
  29 typedef Dune::Fem::AdaptiveLeafGridPart< GridType, Dune::InteriorBorder_Partition > GridPartType;
  30 typedef Dune::Fem::FunctionSpace< double, double, GridType::dimensionworld, 1 > FunctionSpaceType;
  31 
  32 typedef Dune::Fem::L2Norm< GridPartType > L2NormType;
  33 typedef Dune::Fem::H1Norm< GridPartType > H1NormType;
  34 
  35 typedef Problem::RHSFunction< FunctionSpaceType > RHSFunctionType;
  36 typedef Problem::InitialData< FunctionSpaceType > InitialDataType;
  37 
  38 // choose type of discrete function space
  39 typedef Dune::Fem::LagrangeDiscreteFunctionSpace< FunctionSpaceType, GridPartType, POLORDER > DiscreteFunctionSpaceType;
  40 
  41 // choose type of discrete function
  42 typedef Dune::Fem::AdaptiveDiscreteFunction< DiscreteFunctionSpaceType > DiscreteFunctionType;
  43 
  44 // choose inverse operator
  45 typedef Dune::Fem::CGInverseOperator< DiscreteFunctionType > LinearInverseOperatorType;
  46 
  47 // select Lagrange interpolation
  48 typedef Dune::LagrangeInterpolation< DiscreteFunctionType > InterpolationType;
  49 
  50 // define Laplace operator
  51 typedef Problem::HeatModel< FunctionSpaceType > HeatModelType;
  52 typedef EllipticOperator< DiscreteFunctionType, HeatModelType > EllipticOperatorType;
  53 
  54 // define nonlinear operator
  55 typedef Problem::NonlinearHeatModel<FunctionSpaceType> NonlinearModel;
  56 typedef NonlinearHeatOperator<DiscreteFunctionType, 
  57                               NonlinearModel>              NonlinearOperator;
  58 
  59 // type of input/output
  60 typedef Dune::tuple< DiscreteFunctionType* > IOTupleType;
  61 // type of data writer
  62 typedef Dune::Fem::DataOutput< GridType, IOTupleType > DataOutputType;
  63 
  64 #endif // #ifndef DUNE_TYPEDEF_HEAT_HPP

/* [<][>][^][v][top][bottom][index][help] */