https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GeneralizedPlaneStrainUserObject.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"
17
18class Function;
19
22{
23public:
25
27
28 void initialize() override;
29 void execute() override;
30 void threadJoin(const UserObject & uo) override;
31 void finalize() override;
32 virtual Real returnResidual(unsigned int scalar_var_id = 0) const override;
33 virtual Real returnReferenceResidual(unsigned int scalar_var_id = 0) const override;
34 virtual Real returnJacobian(unsigned int scalar_var_id = 0) const override;
35
36protected:
38 const std::string _base_name;
39
41
44
47
53 const Real _pressure_factor;
54
57 std::vector<Real> _residual;
58 std::vector<Real> _reference_residual;
59 std::vector<Real> _jacobian;
60};
Interface class for user objects that interface with the generalized plane strain kernel.
const MaterialProperty< Real > & _out_of_plane_pressure_material
Material property defining applied out-of-plane pressure.
const SubblockIndexProvider * _subblock_id_provider
A Userobject that carries the subblock ID for all elements.
const MaterialProperty< RankFourTensor > & _Jacobian_mult
virtual Real returnReferenceResidual(unsigned int scalar_var_id=0) const override
virtual Real returnJacobian(unsigned int scalar_var_id=0) const override
void threadJoin(const UserObject &uo) override
const Real _pressure_factor
Factor applied to out-of-plane pressure applied by function and material.
const std::string _base_name
Base name of the material system.
virtual Real returnResidual(unsigned int scalar_var_id=0) const override
unsigned int _scalar_out_of_plane_strain_direction
The direction of the out-of-plane strain scalar variable.
const MaterialProperty< RankTwoTensor > & _stress
The stress tensor.
const Function * _out_of_plane_pressure_function
Function defining applied out-of-plane pressure.
const InputParameters & parameters() const
Abstract base class for user objects that provide an index for a given element that is independent of...