ASPECT
compositing.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2017 by the authors of the ASPECT code.
3 
4  This file is part of ASPECT.
5 
6  ASPECT is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)
9  any later version.
10 
11  ASPECT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with ASPECT; see the file LICENSE. If not see
18  <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef _aspect_material_model_compositing_h
22 #define _aspect_material_model_compositing_h
23 
26 
27 #include <map>
28 #include <vector>
29 
30 
31 namespace aspect
32 {
33  namespace MaterialModel
34  {
35  namespace Property
36  {
41  {
51  };
52  }
53 
61  template <int dim>
63  {
64  public:
68  virtual
69  void
70  evaluate (const typename Interface<dim>::MaterialModelInputs &in,
71  typename Interface<dim>::MaterialModelOutputs &out) const;
72 
76  static void
78 
82  virtual void
83  parse_parameters (ParameterHandler &prm);
84 
90  virtual bool is_compressible () const;
91 
97  virtual double reference_viscosity () const;
98 
99 
100 
101  private:
110  void
111  copy_required_properties(const unsigned int model_index,
112  const typename Interface<dim>::MaterialModelOutputs &base_output,
113  typename Interface<dim>::MaterialModelOutputs &out) const;
114 
119  std::map<Property::MaterialProperty, unsigned int> model_property_map;
120 
125  std::vector<std::string> model_names;
126  std::vector<std::shared_ptr<Interface<dim> > > models;
127  };
128  }
129 }
130 
131 #endif
std::vector< std::string > model_names
Definition: compositing.h:125
std::vector< std::shared_ptr< Interface< dim > > > models
Definition: compositing.h:126
std::map< Property::MaterialProperty, unsigned int > model_property_map
Definition: compositing.h:119
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:38
Property