https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
23public:
25
26 ForceDensityMaterial(const InputParameters & parameters);
27
28protected:
29 virtual void computeQpProperties();
30
31private:
34 VariableName _c_name;
36 Real _ceq;
38 Real _cgb;
40 Real _k;
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};
This Material calculates the force density acting on a particle/grain due to interaction between part...
const VariableValue & _c
concentration field considered to be the density of particles
Real _cgb
thresold value for identifying grain boundaries
std::vector< RealGradient > _sum_grad_etas
Real _ceq
equilibrium density at the grain boundaries
static InputParameters validParams()
const std::vector< VariableName > _vals_name
MaterialProperty< std::vector< RealGradient > > & _dF
force density material
std::vector< Real > _product_etas
const std::string _base_name
type of force density material
Real _k
stiffness constant
const std::vector< const VariableValue * > _vals
const std::vector< const VariableGradient * > _grad_vals
MaterialProperty< std::vector< RealGradient > > & _dFdc
first order derivative of force density material w.r.t c
std::vector< MaterialProperty< std::vector< Real > > * > _dFdgradeta
first order derivative of force density material w.r.t etas
virtual void computeQpProperties()
const unsigned int _op_num
VariableValueTempl< false > VariableValue