https://mooseframework.inl.gov
StrainAdjustedDensity.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"
13 
17 template <bool is_ad>
19 {
20 public:
22 
24 
25 protected:
26  virtual void initQpStatefulProperties() override;
27  virtual void computeQpProperties() override;
28 
31 
32  const std::string _base_name;
34 
35 private:
36  std::vector<const GenericVariableGradient<is_ad> *> _grad_disp;
38 };
39 
virtual void computeQpProperties() override
Compute density depending on strains from deforming mesh.
const GenericVariableValue< is_ad > & _disp_r
StrainAdjustedDensityTempl(const InputParameters &params)
StrainAdjustedDensityTempl< true > ADStrainAdjustedDensity
Moose::GenericType< VariableValue, is_ad > GenericVariableValue
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
GenericMaterialProperty< Real, is_ad > & _density
static InputParameters validParams()
std::vector< const GenericVariableGradient< is_ad > * > _grad_disp
CoordinateSystemType
StrainAdjustedDensityTempl< false > StrainAdjustedDensity
const GenericMaterialProperty< Real, is_ad > & _strain_free_density
const Moose::CoordinateSystemType _coord_system
virtual void initQpStatefulProperties() override