https://mooseframework.inl.gov
Loading...
Searching...
No Matches
AEFVUpwindInternalSideFlux.h
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#pragma once
11
13
14// Forward Declarations
15
22{
23public:
25
28
29 virtual void calcFlux(unsigned int iside,
30 dof_id_type ielem,
31 dof_id_type ineig,
32 const std::vector<Real> & uvec1,
33 const std::vector<Real> & uvec2,
34 const RealVectorValue & dwave,
35 std::vector<Real> & flux) const override;
36
37 virtual void calcJacobian(unsigned int iside,
38 dof_id_type ielem,
39 dof_id_type ineig,
40 const std::vector<Real> & uvec1,
41 const std::vector<Real> & uvec2,
42 const RealVectorValue & dwave,
43 DenseMatrix<Real> & jac1,
44 DenseMatrix<Real> & jac2) const override;
45
46protected:
48 const Real _velocity;
49};
Upwind numerical flux scheme for the advection equation using a cell-centered finite volume method.
static InputParameters validParams()
const Real _velocity
advective velocity
virtual void calcFlux(unsigned int iside, dof_id_type ielem, dof_id_type ineig, const std::vector< Real > &uvec1, const std::vector< Real > &uvec2, const RealVectorValue &dwave, std::vector< Real > &flux) const override
Solve the Riemann problem.
virtual void calcJacobian(unsigned int iside, dof_id_type ielem, dof_id_type ineig, const std::vector< Real > &uvec1, const std::vector< Real > &uvec2, const RealVectorValue &dwave, DenseMatrix< Real > &jac1, DenseMatrix< Real > &jac2) const override
Compute the Jacobian matrix.
A base class for computing and caching internal side flux.
const InputParameters & parameters() const