https://mooseframework.inl.gov
ForceDensityMaterial.h
Go to the documentation of this file.
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 #pragma once
11 
12 #include "Material.h"
14 
15 // Forward Declarations
16 
22 {
23 public:
25 
27 
28 protected:
29  virtual void computeQpProperties();
30 
31 private:
33  const VariableValue & _c;
34  VariableName _c_name;
41 
42  const unsigned int _op_num;
43  const std::vector<const VariableValue *> _vals;
44  const std::vector<const VariableGradient *> _grad_vals;
45  const std::vector<VariableName> _vals_name;
46 
47  std::vector<Real> _product_etas;
48  std::vector<RealGradient> _sum_grad_etas;
49 
51  const std::string _base_name;
52 
58  std::vector<MaterialProperty<std::vector<Real>> *> _dFdgradeta;
59 };
MaterialProperty< std::vector< RealGradient > > & _dFdc
first order derivative of force density material w.r.t c
const std::string _base_name
type of force density material
const std::vector< const VariableValue * > _vals
const std::vector< VariableName > _vals_name
const unsigned int _op_num
This Material calculates the force density acting on a particle/grain due to interaction between part...
std::vector< MaterialProperty< std::vector< Real > > * > _dFdgradeta
first order derivative of force density material w.r.t etas
std::vector< RealGradient > _sum_grad_etas
std::vector< Real > _product_etas
static InputParameters validParams()
const std::vector< const VariableGradient * > _grad_vals
const VariableValue & _c
concentration field considered to be the density of particles
OutputTools< Real >::VariableValue VariableValue
virtual void computeQpProperties()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _k
stiffness constant
const InputParameters & parameters() const
MaterialProperty< std::vector< RealGradient > > & _dF
force density material
ForceDensityMaterial(const InputParameters &parameters)
Real _ceq
equilibrium density at the grain boundaries
Real _cgb
thresold value for identifying grain boundaries