www.mooseframework.org
ALEKernel.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "ALEKernel.h"
9 
10 // MOOSE includes
11 #include "MooseVariable.h"
12 
13 template <>
14 InputParameters
16 {
17  InputParameters params = validParams<Kernel>();
18  params.addClassDescription("Sets up derivetives with respect to initial configuration");
19  return params;
20 }
21 
22 ALEKernel::ALEKernel(const InputParameters & parameters)
23  : DerivativeMaterialInterface<Kernel>(parameters),
24  _assembly_undisplaced(_fe_problem.assembly(_tid)),
25  _var_undisplaced(
26  _fe_problem.getVariable(_tid, parameters.get<NonlinearVariableName>("variable"))),
27  _grad_phi_undisplaced(_assembly_undisplaced.gradPhi()),
28  _grad_test_undisplaced(_var_undisplaced.gradPhi())
29 {
30 }
31 
32 void
34 {
35  _fe_problem.prepareShapes(_var.number(), _tid);
36  Kernel::computeJacobian();
37 }
38 
39 void
41 {
42  _fe_problem.prepareShapes(jvar, _tid);
43  Kernel::computeOffDiagJacobian(jvar);
44 }
virtual void computeOffDiagJacobian(unsigned int jvar)
Definition: ALEKernel.C:40
virtual void computeJacobian()
Definition: ALEKernel.C:33
InputParameters validParams< ALEKernel >()
Definition: ALEKernel.C:15
ALEKernel(const InputParameters &parameters)
Definition: ALEKernel.C:22