www.mooseframework.org
ComputePlaneSmallStrain.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 "Compute2DSmallStrain.h"
13 #include "SubblockIndexProvider.h"
14 
16 
17 template <>
18 InputParameters validParams<ComputePlaneSmallStrain>();
19 
26 {
27 public:
28  static InputParameters validParams();
29 
30  ComputePlaneSmallStrain(const InputParameters & parameters);
31 
32 protected:
33  virtual Real computeOutOfPlaneStrain();
34 
36  unsigned int getCurrentSubblockIndex() const
37  {
38  return _subblock_id_provider ? _subblock_id_provider->getSubblockIndex(*_current_elem) : 0;
39  };
40 
42 
43 private:
45 
47  const VariableValue & _out_of_plane_strain;
48  unsigned int _nscalar_strains;
49  std::vector<const VariableValue *> _scalar_out_of_plane_strain;
50 };
Compute2DSmallStrain
Compute2DSmallStrain defines a strain tensor, assuming small strains, in 2D geometries / simulations.
Definition: Compute2DSmallStrain.h:25
SubblockIndexProvider.h
ComputePlaneSmallStrain::_scalar_out_of_plane_strain_coupled
const bool _scalar_out_of_plane_strain_coupled
Definition: ComputePlaneSmallStrain.h:44
ComputePlaneSmallStrain::computeOutOfPlaneStrain
virtual Real computeOutOfPlaneStrain()
Definition: ComputePlaneSmallStrain.C:54
ComputePlaneSmallStrain::validParams
static InputParameters validParams()
Definition: ComputePlaneSmallStrain.C:17
SubblockIndexProvider::getSubblockIndex
virtual unsigned int getSubblockIndex(const Elem &) const =0
The index of subblock this element is on.
SubblockIndexProvider
Abstract base class for user objects that provide an index for a given element that is independent of...
Definition: SubblockIndexProvider.h:24
ComputePlaneSmallStrain::ComputePlaneSmallStrain
ComputePlaneSmallStrain(const InputParameters &parameters)
Definition: ComputePlaneSmallStrain.C:31
ComputePlaneSmallStrain
ComputePlaneSmallStrain defines small strains under generalized plane strain and plane stress assumpt...
Definition: ComputePlaneSmallStrain.h:25
ComputePlaneSmallStrain::getCurrentSubblockIndex
unsigned int getCurrentSubblockIndex() const
gets its subblock index for current element
Definition: ComputePlaneSmallStrain.h:36
ComputePlaneSmallStrain::_nscalar_strains
unsigned int _nscalar_strains
Definition: ComputePlaneSmallStrain.h:48
ComputePlaneSmallStrain::_subblock_id_provider
const SubblockIndexProvider * _subblock_id_provider
Definition: ComputePlaneSmallStrain.h:39
ComputePlaneSmallStrain::_scalar_out_of_plane_strain
std::vector< const VariableValue * > _scalar_out_of_plane_strain
Definition: ComputePlaneSmallStrain.h:49
ComputePlaneSmallStrain::_out_of_plane_strain_coupled
const bool _out_of_plane_strain_coupled
Definition: ComputePlaneSmallStrain.h:46
ComputePlaneSmallStrain::_out_of_plane_strain
const VariableValue & _out_of_plane_strain
Definition: ComputePlaneSmallStrain.h:47
validParams< ComputePlaneSmallStrain >
InputParameters validParams< ComputePlaneSmallStrain >()
Compute2DSmallStrain.h