www.mooseframework.org
LevelSetBiMaterialRankFour.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 
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<LevelSetBiMaterialBase>();
19  params.addClassDescription(
20  "Compute a RankFourTensor material property for bi-materials problem (consisting of two "
21  "different materials) defined by a level set function.");
22  return params;
23 }
24 
25 LevelSetBiMaterialRankFour::LevelSetBiMaterialRankFour(const InputParameters & parameters)
26  : LevelSetBiMaterialBase(parameters),
27  _bimaterial_material_prop(2),
28  _material_prop(declareProperty<RankFourTensor>(_base_name + _prop_name))
29 {
30  _bimaterial_material_prop[0] = &getMaterialProperty<RankFourTensor>(
31  getParam<std::string>("levelset_positive_base") + "_" + _prop_name);
32  _bimaterial_material_prop[1] = &getMaterialProperty<RankFourTensor>(
33  getParam<std::string>("levelset_negative_base") + "_" + _prop_name);
34 }
35 
36 void
38 {
39  _material_prop[_qp] = (*_bimaterial_material_prop[0])[_qp];
40 }
41 
42 void
44 {
45  _material_prop[_qp] = (*_bimaterial_material_prop[1])[_qp];
46 }
LevelSetBiMaterialRankFour.h
validParams< LevelSetBiMaterialBase >
InputParameters validParams< LevelSetBiMaterialBase >()
Definition: LevelSetBiMaterialBase.C:17
registerMooseObject
registerMooseObject("XFEMApp", LevelSetBiMaterialRankFour)
validParams< LevelSetBiMaterialRankFour >
InputParameters validParams< LevelSetBiMaterialRankFour >()
Definition: LevelSetBiMaterialRankFour.C:16
LevelSetBiMaterialRankFour::assignQpPropertiesForLevelSetPositive
virtual void assignQpPropertiesForLevelSetPositive() override
assign the material properties for the positive level set region.
Definition: LevelSetBiMaterialRankFour.C:37
LevelSetBiMaterialRankFour
Compute a RankFourTensor material property for bi-materials problem (consisting of two different mate...
Definition: LevelSetBiMaterialRankFour.h:26
LevelSetBiMaterialRankFour::LevelSetBiMaterialRankFour
LevelSetBiMaterialRankFour(const InputParameters &parameters)
Definition: LevelSetBiMaterialRankFour.C:25
LevelSetBiMaterialRankFour::_bimaterial_material_prop
std::vector< const MaterialProperty< RankFourTensor > * > _bimaterial_material_prop
RankFourTensor Material properties for the two separate materials in the bi-material system.
Definition: LevelSetBiMaterialRankFour.h:36
LevelSetBiMaterialRankFour::_material_prop
MaterialProperty< RankFourTensor > & _material_prop
Global RankFourTensor material property (switch bi-material diffusion coefficient based on level set ...
Definition: LevelSetBiMaterialRankFour.h:39
RankFourTensorTempl< Real >
LevelSetBiMaterialBase
Base class for switching between materials in a bi-material system where the interface is defined by ...
Definition: LevelSetBiMaterialBase.h:25
LevelSetBiMaterialRankFour::assignQpPropertiesForLevelSetNegative
virtual void assignQpPropertiesForLevelSetNegative() override
assign the material properties for the negative level set region.
Definition: LevelSetBiMaterialRankFour.C:43
LevelSetBiMaterialBase::_prop_name
std::string _prop_name
Property name.
Definition: LevelSetBiMaterialBase.h:48