Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
ALEKernel.C
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 #include "ALEKernel.h"
11 
12 // MOOSE includes
13 #include "MooseVariable.h"
14 
17 {
19  params.addClassDescription("Sets up derivatives with respect to initial configuration");
20  return params;
21 }
22 
24  : DerivativeMaterialInterface<Kernel>(parameters),
25  _assembly_undisplaced(_fe_problem.assembly(_tid, _sys.number())),
26  _var_undisplaced(
27  _fe_problem.getStandardVariable(_tid, parameters.get<NonlinearVariableName>("variable"))),
28  _grad_phi_undisplaced(_assembly_undisplaced.gradPhi()),
29  _grad_test_undisplaced(_var_undisplaced.gradPhi())
30 {
31 }
32 
33 void
35 {
36  _fe_problem.prepareShapes(_var.number(), _tid);
38 }
39 
40 void
41 ALEKernel::computeOffDiagJacobian(const unsigned int jvar)
42 {
43  _fe_problem.prepareShapes(jvar, _tid);
45 }
static InputParameters validParams()
ALEKernel(const InputParameters &parameters)
Definition: ALEKernel.C:23
virtual void computeOffDiagJacobian(unsigned int jvar) override
Definition: ALEKernel.C:41
virtual void computeJacobian() override
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Definition: ALEKernel.C:16
virtual void computeOffDiagJacobian(unsigned int jvar) override
const Elem & get(const ElemType type_in)
virtual void computeJacobian() override
Definition: ALEKernel.C:34