www.mooseframework.org
StressBasedChemicalPotential.h
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 
10 #pragma once
11 
12 #include "Material.h"
13 #include "DerivativeMaterialInterface.h"
14 #include "RankTwoTensor.h"
15 
17 
18 template <>
20 
26 class StressBasedChemicalPotential : public DerivativeMaterialInterface<Material>
27 {
28 public:
29  static InputParameters validParams();
30 
31  StressBasedChemicalPotential(const InputParameters & parameters);
32 
33 protected:
34  virtual void initQpStatefulProperties();
35  virtual void computeQpProperties();
36 
37  MaterialProperty<Real> & _chemical_potential;
38  MaterialProperty<Real> * _dchemical_potential;
39 
40  const MaterialProperty<RankTwoTensor> & _stress_old;
41  const MaterialProperty<RealTensorValue> & _direction_tensor;
42  const MaterialProperty<Real> & _prefactor;
43  const MaterialProperty<Real> * _dprefactor_dc;
45 };
StressBasedChemicalPotential::_direction_tensor
const MaterialProperty< RealTensorValue > & _direction_tensor
Definition: StressBasedChemicalPotential.h:41
StressBasedChemicalPotential::_stress_old
const MaterialProperty< RankTwoTensor > & _stress_old
Definition: StressBasedChemicalPotential.h:40
StressBasedChemicalPotential::_has_coupled_c
bool _has_coupled_c
Definition: StressBasedChemicalPotential.h:44
StressBasedChemicalPotential::StressBasedChemicalPotential
StressBasedChemicalPotential(const InputParameters &parameters)
Definition: StressBasedChemicalPotential.C:31
StressBasedChemicalPotential::_dprefactor_dc
const MaterialProperty< Real > * _dprefactor_dc
Definition: StressBasedChemicalPotential.h:43
StressBasedChemicalPotential
StressBasedChemicalPotential computes chemical potential based on stress and a direction tensor Fores...
Definition: StressBasedChemicalPotential.h:26
validParams< StressBasedChemicalPotential >
InputParameters validParams< StressBasedChemicalPotential >()
StressBasedChemicalPotential::_prefactor
const MaterialProperty< Real > & _prefactor
Definition: StressBasedChemicalPotential.h:42
StressBasedChemicalPotential::initQpStatefulProperties
virtual void initQpStatefulProperties()
Definition: StressBasedChemicalPotential.C:48
StressBasedChemicalPotential::_dchemical_potential
MaterialProperty< Real > * _dchemical_potential
Definition: StressBasedChemicalPotential.h:38
StressBasedChemicalPotential::computeQpProperties
virtual void computeQpProperties()
Definition: StressBasedChemicalPotential.C:57
StressBasedChemicalPotential::validParams
static InputParameters validParams()
Definition: StressBasedChemicalPotential.C:17
StressBasedChemicalPotential::_chemical_potential
MaterialProperty< Real > & _chemical_potential
Definition: StressBasedChemicalPotential.h:37