https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GlobalStrain.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 "ScalarKernel.h"
15
16// Forward Declarations
18
20{
21public:
23
25
26 virtual void reinit() override {}
27 virtual void computeResidual() override;
28 virtual void computeJacobian() override;
29 virtual void computeOffDiagJacobian(unsigned int) override {}
30
31protected:
32 virtual void assignComponentIndices(Order var_order);
33 virtual Real computeQpResidual() override { mooseError("unused"); }
34 virtual Real computeQpJacobian() override { mooseError("unused"); }
35
39 const VectorValue<bool> & _periodic_dir;
40
41 std::vector<std::pair<unsigned int, unsigned int>> _components;
42 const unsigned int _dim;
43};
This class provides interface for extracting the periodic directions, residual, and jacobian values f...
virtual void reinit() override
virtual void computeResidual() override
static InputParameters validParams()
virtual void computeOffDiagJacobian(unsigned int) override
virtual void computeJacobian() override
const GlobalStrainUserObjectInterface & _pst
const RankFourTensor & _pst_jacobian
std::vector< std::pair< unsigned int, unsigned int > > _components
virtual Real computeQpJacobian() override
virtual void assignComponentIndices(Order var_order)
const VectorValue< bool > & _periodic_dir
virtual Real computeQpResidual() override
const RankTwoTensor & _pst_residual
const unsigned int _dim
const InputParameters & parameters() const
void mooseError(Args &&... args) const