www.mooseframework.org
DistributedPower.h
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 #pragma once
11 
12 #include "Kernel.h"
13 
14 // Forward Declarations
15 class DistributedPower;
16 
17 template <>
18 InputParameters validParams<DistributedPower>();
26 class DistributedPower : public Kernel
27 {
28 public:
29  DistributedPower(const InputParameters & parameters);
30 
31 protected:
32  virtual Real computeQpResidual();
33  virtual Real computeQpJacobian();
34  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
35 
36  RealVectorValue _acceleration;
37  unsigned int _rhou_var_number;
38  unsigned int _rhov_var_number;
39  unsigned int _rhow_var_number;
40  const VariableValue & _rho_u;
41  const VariableValue & _rho_v;
42  const VariableValue & _rho_w;
43 };
44 
DistributedPower::DistributedPower
DistributedPower(const InputParameters &parameters)
Definition: DistributedPower.C:34
validParams< DistributedPower >
InputParameters validParams< DistributedPower >()
Definition: DistributedPower.C:16
DistributedPower::_rho_w
const VariableValue & _rho_w
Definition: DistributedPower.h:42
DistributedPower::_rhov_var_number
unsigned int _rhov_var_number
Definition: DistributedPower.h:38
DistributedPower::computeQpJacobian
virtual Real computeQpJacobian()
Definition: DistributedPower.C:58
DistributedPower::_rho_u
const VariableValue & _rho_u
Definition: DistributedPower.h:40
DistributedPower::_rhou_var_number
unsigned int _rhou_var_number
Definition: DistributedPower.h:37
DistributedPower::_rhow_var_number
unsigned int _rhow_var_number
Definition: DistributedPower.h:39
DistributedPower::_acceleration
RealVectorValue _acceleration
Definition: DistributedPower.h:36
DistributedPower::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: DistributedPower.C:64
DistributedPower
The DistributedPower kernel computes the kinetic energy contribution of the body force due to total e...
Definition: DistributedPower.h:26
DistributedPower::_rho_v
const VariableValue & _rho_v
Definition: DistributedPower.h:41
DistributedPower::computeQpResidual
virtual Real computeQpResidual()
Definition: DistributedPower.C:50