Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 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 : 10 : #include "ThreeMaterialPropertyInterface.h" 11 : #include "MaterialData.h" 12 : #include "InputParameters.h" 13 : #include "FEProblemBase.h" 14 : 15 : InputParameters 16 43433 : ThreeMaterialPropertyInterface::validParams() 17 : { 18 : // Objects inheriting from ThreeMaterialPropertyInterface rely on Boundary MaterialData 19 43433 : InputParameters params = TwoMaterialPropertyInterface::validParams(); 20 : // We want the properties returned by getMaterialProperty* to be the volumetric ones 21 43433 : params.set<Moose::MaterialDataType>("_material_data_type") = Moose::BLOCK_MATERIAL_DATA; 22 43433 : return params; 23 0 : } 24 : 25 1637 : ThreeMaterialPropertyInterface::ThreeMaterialPropertyInterface( 26 : const MooseObject * moose_object, 27 : const std::set<SubdomainID> & blocks_ids, 28 1637 : const std::set<BoundaryID> & boundary_ids) 29 : : TwoMaterialPropertyInterface(moose_object, blocks_ids, boundary_ids), 30 1637 : _face_material_data( 31 1637 : _mi_feproblem.getMaterialData(Moose::FACE_MATERIAL_DATA, _mi_params.get<THREAD_ID>("_tid"))) 32 : { 33 1637 : }