www.mooseframework.org
navier_stokes
include
kernels
DistributedForce.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
DistributedForce
;
16
17
template
<>
18
InputParameters
validParams<DistributedForce>
();
27
class
DistributedForce
:
public
Kernel
28
{
29
public
:
30
DistributedForce
(
const
InputParameters & parameters);
31
32
protected
:
33
virtual
Real
computeQpResidual
();
34
virtual
Real
computeQpJacobian
();
35
virtual
Real
computeQpOffDiagJacobian
(
unsigned
int
jvar);
36
37
unsigned
int
_component
;
38
Real
_acceleration
;
39
unsigned
int
_rho_var_number
;
40
const
VariableValue &
_rho
;
41
};
42
validParams< DistributedForce >
InputParameters validParams< DistributedForce >()
Definition:
DistributedForce.C:16
DistributedForce::_component
unsigned int _component
Definition:
DistributedForce.h:37
DistributedForce::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition:
DistributedForce.C:56
DistributedForce::DistributedForce
DistributedForce(const InputParameters ¶meters)
Definition:
DistributedForce.C:33
DistributedForce::_acceleration
Real _acceleration
Definition:
DistributedForce.h:38
DistributedForce::computeQpResidual
virtual Real computeQpResidual()
Definition:
DistributedForce.C:43
DistributedForce::computeQpJacobian
virtual Real computeQpJacobian()
Definition:
DistributedForce.C:50
DistributedForce::_rho
const VariableValue & _rho
Definition:
DistributedForce.h:40
DistributedForce
The DistributedForce kernel computes the body force due to the acceleration of mass in an element.
Definition:
DistributedForce.h:27
DistributedForce::_rho_var_number
unsigned int _rho_var_number
Definition:
DistributedForce.h:39
Generated on Sat Jan 25 2020 12:04:37 for www.mooseframework.org by
1.8.16