www.mooseframework.org
Density.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 DENSITY_H
8 #define DENSITY_H
9 
10 #include "Material.h"
11 
15 class Density : public Material
16 {
17 public:
18  Density(const InputParameters & params);
19 
20 protected:
21  virtual void initQpStatefulProperties() override;
22  virtual void computeQpProperties() override;
23 
25  Moose::CoordinateSystemType _coord_system;
26  std::vector<const VariableGradient *> _grad_disp;
27  const VariableValue & _disp_r;
28 
29  const Real _orig_density;
30  MaterialProperty<Real> & _density;
31 };
32 
33 template <>
34 InputParameters validParams<Density>();
35 
36 #endif // DENSITY_H
Density(const InputParameters &params)
Definition: Density.C:31
bool _is_coupled
Definition: Density.h:24
Compute density, which may changed based on a deforming mesh.
Definition: Density.h:15
InputParameters validParams< Density >()
Definition: Density.C:12
virtual void initQpStatefulProperties() override
Definition: Density.C:88
Moose::CoordinateSystemType _coord_system
Definition: Density.h:25
const Real _orig_density
Definition: Density.h:29
MaterialProperty< Real > & _density
Definition: Density.h:30
virtual void computeQpProperties() override
Definition: Density.C:94
std::vector< const VariableGradient * > _grad_disp
Definition: Density.h:26
const VariableValue & _disp_r
Definition: Density.h:27