www.mooseframework.org
Public Member Functions | Public Attributes | List of all members
GeneralizedPlaneStrain Class Reference

#include <GeneralizedPlaneStrain.h>

Inheritance diagram for GeneralizedPlaneStrain:
[legend]

Public Member Functions

 GeneralizedPlaneStrain (const InputParameters &parameters)
 
virtual void reinit ()
 
virtual void computeResidual ()
 
virtual void computeJacobian ()
 method to provide the diagonal jacobian term for scalar variable using value returned from Postprocessor, off diagonal terms are computed by computeOffDiagJacobianScalar in the kernel of nonlinear variables which needs to couple with the scalar variable More...
 

Public Attributes

const GeneralizedPlaneStrainUserObject_gps
 
const unsigned int _scalar_var_id
 

Detailed Description

Definition at line 20 of file GeneralizedPlaneStrain.h.

Constructor & Destructor Documentation

GeneralizedPlaneStrain::GeneralizedPlaneStrain ( const InputParameters &  parameters)

Definition at line 31 of file GeneralizedPlaneStrain.C.

32  : ScalarKernel(parameters),
33  _gps(getUserObject<GeneralizedPlaneStrainUserObject>("generalized_plane_strain")),
34  _scalar_var_id(isParamValid("scalar_out_of_plane_strain_index")
35  ? getParam<unsigned int>("scalar_out_of_plane_strain_index")
36  : 0)
37 {
38 }
const unsigned int _scalar_var_id
const GeneralizedPlaneStrainUserObject & _gps

Member Function Documentation

void GeneralizedPlaneStrain::computeJacobian ( )
virtual

method to provide the diagonal jacobian term for scalar variable using value returned from Postprocessor, off diagonal terms are computed by computeOffDiagJacobianScalar in the kernel of nonlinear variables which needs to couple with the scalar variable

Definition at line 54 of file GeneralizedPlaneStrain.C.

Referenced by reinit().

55 {
56  DenseMatrix<Number> & ke = _assembly.jacobianBlock(_var.number(), _var.number());
57  for (_i = 0; _i < ke.m(); ++_i)
58  ke(_i, _i) += _gps.returnJacobian(_scalar_var_id);
59 }
virtual Real returnJacobian(unsigned int scalar_var_id=0) const
const unsigned int _scalar_var_id
const GeneralizedPlaneStrainUserObject & _gps
void GeneralizedPlaneStrain::computeResidual ( )
virtual

Definition at line 41 of file GeneralizedPlaneStrain.C.

Referenced by reinit().

42 {
43  DenseVector<Number> & re = _assembly.residualBlock(_var.number());
44  for (_i = 0; _i < re.size(); ++_i)
46 }
const unsigned int _scalar_var_id
virtual Real returnResidual(unsigned int scalar_var_id=0) const
const GeneralizedPlaneStrainUserObject & _gps
virtual void GeneralizedPlaneStrain::reinit ( )
inlinevirtual

Definition at line 25 of file GeneralizedPlaneStrain.h.

25 {};

Member Data Documentation

const GeneralizedPlaneStrainUserObject& GeneralizedPlaneStrain::_gps

Definition at line 29 of file GeneralizedPlaneStrain.h.

Referenced by computeJacobian(), and computeResidual().

const unsigned int GeneralizedPlaneStrain::_scalar_var_id

Definition at line 30 of file GeneralizedPlaneStrain.h.

Referenced by computeJacobian(), and computeResidual().


The documentation for this class was generated from the following files: