https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
33void
35{
36 _fe_problem.prepareShapes(_var.number(), _tid);
38}
39
40void
41ALEKernel::computeOffDiagJacobian(const unsigned int jvar)
42{
43 _fe_problem.prepareShapes(jvar, _tid);
45}
virtual void computeOffDiagJacobian(unsigned int jvar) override
Definition ALEKernel.C:41
static InputParameters validParams()
Definition ALEKernel.C:16
ALEKernel(const InputParameters &parameters)
Definition ALEKernel.C:23
virtual void computeJacobian() override
Definition ALEKernel.C:34
void addClassDescription(const std::string &doc_string)
virtual void computeOffDiagJacobian(unsigned int jvar) override
virtual void computeJacobian() override
static InputParameters validParams()
virtual void prepareShapes(unsigned int var_num)