www.mooseframework.org
ALEKernel.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
16 
17 InputParameters
19 {
20  InputParameters params = Kernel::validParams();
21  params.addClassDescription("Sets up derivatives with respect to initial configuration");
22  return params;
23 }
24 
25 ALEKernel::ALEKernel(const InputParameters & parameters)
26  : DerivativeMaterialInterface<Kernel>(parameters),
27  _assembly_undisplaced(_fe_problem.assembly(_tid)),
28  _var_undisplaced(
29  _fe_problem.getStandardVariable(_tid, parameters.get<NonlinearVariableName>("variable"))),
30  _grad_phi_undisplaced(_assembly_undisplaced.gradPhi()),
31  _grad_test_undisplaced(_var_undisplaced.gradPhi())
32 {
33 }
34 
35 void
37 {
38  _fe_problem.prepareShapes(_var.number(), _tid);
39  Kernel::computeJacobian();
40 }
41 
42 void
43 ALEKernel::computeOffDiagJacobian(MooseVariableFEBase & jvar)
44 {
45  _fe_problem.prepareShapes(jvar.number(), _tid);
46  Kernel::computeOffDiagJacobian(jvar);
47 }
ALEKernel::computeOffDiagJacobian
virtual void computeOffDiagJacobian(MooseVariableFEBase &jvar) override
Definition: ALEKernel.C:43
ALEKernel::validParams
static InputParameters validParams()
Definition: ALEKernel.C:18
ALEKernel::computeJacobian
virtual void computeJacobian() override
Definition: ALEKernel.C:36
ALEKernel
Definition: ALEKernel.h:21
ALEKernel.h
validParams
InputParameters validParams()
defineLegacyParams
defineLegacyParams(ALEKernel)
ALEKernel::ALEKernel
ALEKernel(const InputParameters &parameters)
Definition: ALEKernel.C:25