www.mooseframework.org
AdvectiveFluxCalculatorConstantVelocity.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 
13 
15 
16 template <>
18 
23 {
24 public:
25  AdvectiveFluxCalculatorConstantVelocity(const InputParameters & parameters);
26 
27 protected:
28  virtual Real computeVelocity(unsigned i, unsigned j, unsigned qp) const override;
29 
30  virtual Real computeU(unsigned i) const override;
31 
33  RealVectorValue _velocity;
34 
36  const VariableValue & _u_at_nodes;
37 
39  const VariablePhiValue & _phi;
40 
42  const VariablePhiGradient & _grad_phi;
43 };
44 
AdvectiveFluxCalculatorBase.h
AdvectiveFluxCalculatorConstantVelocity::computeU
virtual Real computeU(unsigned i) const override
Computes the value of u at the local node id of the current element (_current_elem)
Definition: AdvectiveFluxCalculatorConstantVelocity.C:46
AdvectiveFluxCalculatorConstantVelocity::computeVelocity
virtual Real computeVelocity(unsigned i, unsigned j, unsigned qp) const override
Computes the transfer velocity between current node i and current node j at the current qp in the cur...
Definition: AdvectiveFluxCalculatorConstantVelocity.C:40
validParams< AdvectiveFluxCalculatorConstantVelocity >
InputParameters validParams< AdvectiveFluxCalculatorConstantVelocity >()
Definition: AdvectiveFluxCalculatorConstantVelocity.C:17
AdvectiveFluxCalculatorConstantVelocity::_grad_phi
const VariablePhiGradient & _grad_phi
grad(Kuzmin-Turek shape function)
Definition: AdvectiveFluxCalculatorConstantVelocity.h:42
AdvectiveFluxCalculatorConstantVelocity::_u_at_nodes
const VariableValue & _u_at_nodes
the nodal values of u
Definition: AdvectiveFluxCalculatorConstantVelocity.h:36
AdvectiveFluxCalculatorConstantVelocity::_phi
const VariablePhiValue & _phi
Kuzmin-Turek shape function.
Definition: AdvectiveFluxCalculatorConstantVelocity.h:39
AdvectiveFluxCalculatorConstantVelocity
Computes Advective fluxes for a constant velocity.
Definition: AdvectiveFluxCalculatorConstantVelocity.h:22
AdvectiveFluxCalculatorBase
Base class to compute Advective fluxes.
Definition: AdvectiveFluxCalculatorBase.h:33
AdvectiveFluxCalculatorConstantVelocity::AdvectiveFluxCalculatorConstantVelocity
AdvectiveFluxCalculatorConstantVelocity(const InputParameters &parameters)
Definition: AdvectiveFluxCalculatorConstantVelocity.C:29
AdvectiveFluxCalculatorConstantVelocity::_velocity
RealVectorValue _velocity
advection velocity
Definition: AdvectiveFluxCalculatorConstantVelocity.h:33