www.mooseframework.org
TwoMaterialPropertyInterface.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 #include "MaterialData.h"
12 #include "InputParameters.h"
13 
14 template <>
17 {
18  // Objects inheriting from TwoMaterialPropertyInterface rely on Boundary MaterialData
20  params.set<Moose::MaterialDataType>("_material_data_type") = Moose::BOUNDARY_MATERIAL_DATA;
21  return params;
22 }
23 
25  const MooseObject * moose_object,
26  const std::set<SubdomainID> & blocks_ids,
27  const std::set<BoundaryID> & boundary_ids)
28  : MaterialPropertyInterface(moose_object, blocks_ids, boundary_ids),
29  _neighbor_material_data(_mi_feproblem.getMaterialData(Moose::NEIGHBOR_MATERIAL_DATA,
30  _mi_params.get<THREAD_ID>("_tid")))
31 {
32 }
InputParameters validParams< MaterialPropertyInterface >()
MaterialDataType
MaterialData types.
Definition: MooseTypes.h:459
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
TwoMaterialPropertyInterface(const MooseObject *moose_object, const std::set< SubdomainID > &blocks_ids, const std::set< BoundaryID > &boundary_ids)
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:42
An interface for accessing Materials.
Definition: Moose.h:112
InputParameters validParams< TwoMaterialPropertyInterface >()
unsigned int THREAD_ID
Definition: MooseTypes.h:161