www.mooseframework.org
ExternalForceDensityMaterial.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef EXTERNALFORCEDENSITYMATERIAL_H
8 #define EXTERNALFORCEDENSITYMATERIAL_H
9 
10 #include "Material.h"
11 #include "DerivativeMaterialInterface.h"
12 
13 // Forward Declarations
15 class Function;
16 
17 template <>
19 
24 class ExternalForceDensityMaterial : public DerivativeMaterialInterface<Material>
25 {
26 public:
27  ExternalForceDensityMaterial(const InputParameters & parameters);
28 
29 protected:
30  virtual void computeQpProperties();
31 
32 private:
33  Function & _force_x;
34  Function & _force_y;
35  Function & _force_z;
36 
38  const VariableValue & _c;
39  VariableName _c_name;
41  const Real _k;
42 
43  unsigned int _op_num;
44  std::vector<const VariableValue *> _vals;
45  std::vector<VariableName> _vals_name;
46 
48  MaterialProperty<std::vector<RealGradient>> & _dF;
50  MaterialProperty<std::vector<RealGradient>> & _dFdc;
51 
52  std::vector<MaterialProperty<std::vector<RealGradient>> *> _dFdeta;
53 };
54 
55 #endif // EXTERNALFORCEDENSITYMATERIAL_H
This Material calculates the force density acting on a particle/grain due to interaction between part...
MaterialProperty< std::vector< RealGradient > > & _dFdc
first order derivative of force density material w.r.t c
std::vector< VariableName > _vals_name
ExternalForceDensityMaterial(const InputParameters &parameters)
const VariableValue & _c
concentration field considered to be the density of particles
const Real _k
stiffness constant
std::vector< MaterialProperty< std::vector< RealGradient > > * > _dFdeta
MaterialProperty< std::vector< RealGradient > > & _dF
force density material
InputParameters validParams< ExternalForceDensityMaterial >()
std::vector< const VariableValue * > _vals