https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GlobalStrainUserObject.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 "ElementUserObject.h"
14
15#include "RankTwoTensor.h"
16#include "RankFourTensor.h"
17
19{
20public:
22
24
25 void initialize() override;
26 void execute() override;
27 void threadJoin(const UserObject & uo) override;
28 void finalize() override;
29 virtual const RankTwoTensor & getResidual() const override;
30 virtual const RankFourTensor & getJacobian() const override;
31 virtual const VectorValue<bool> & getPeriodicDirections() const override;
32
36 virtual void computeAdditionalStress() {}
37
38protected:
40 const std::string _base_name;
41
43
46
50
51 const unsigned int _dim;
52
54 const std::vector<const MooseVariableFieldBase *> _disp_var;
55
57 VectorValue<bool> _periodic_dir;
58};
This class provides interface for extracting the periodic directions, residual, and jacobian values f...
const MaterialProperty< RankTwoTensor > & _stress
The stress tensor.
static InputParameters validParams()
const std::vector< const MooseVariableFieldBase * > _disp_var
Displacement variables.
const MaterialProperty< RankFourTensor > & _dstress_dstrain
virtual const RankFourTensor & getJacobian() const override
const std::string _base_name
Base name of the material system.
virtual const VectorValue< bool > & getPeriodicDirections() const override
VectorValue< bool > _periodic_dir
Variable numbers of the displacement variables.
virtual const RankTwoTensor & getResidual() const override
virtual void computeAdditionalStress()
Calculate additional applied stresses.
void threadJoin(const UserObject &uo) override
const InputParameters & parameters() const