www.mooseframework.org
ExternalForceDensityMaterial.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"
14 
15 // Forward Declarations
16 class Function;
17 
23 {
24 public:
26 
28 
29 protected:
30  virtual void computeQpProperties();
31 
32 private:
33  const Function & _force_x;
34  const Function & _force_y;
35  const Function & _force_z;
36 
38  const VariableValue & _c;
39  VariableName _c_name;
41  const Real _k;
42 
43  const unsigned int _op_num;
44  const std::vector<const VariableValue *> _vals;
45  const std::vector<VariableName> _vals_name;
46 
51 
52  std::vector<MaterialProperty<std::vector<RealGradient>> *> _dFdeta;
53 };
This Material calculates the force density acting on a particle/grain due to interaction between part...
ExternalForceDensityMaterial(const InputParameters &parameters)
const std::vector< const VariableValue * > _vals
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
MaterialProperty< std::vector< RealGradient > > * _dFdc
first order derivative of force density material w.r.t c
OutputTools< Real >::VariableValue VariableValue
const std::vector< VariableName > _vals_name
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const