ubMomentumTransportModel.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2026 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
27 #include "fvMatrix.H"
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33 
35 
36 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37 
39 (
40  const alphaField& alpha,
41  const rhoField& rho,
42  const volVectorField& U,
43  const surfaceScalarField& alphaRhoPhi,
44  const surfaceScalarField& phi,
45  const viscosity& viscosity,
46  const compressible::momentumTransportModel& mixtureMomentumTransport
47 )
48 :
50  (
52  alpha,
53  rho,
54  U,
55  alphaRhoPhi,
56  phi,
57  viscosity
58  ),
59  mixtureMomentumTransport_(mixtureMomentumTransport)
60 {}
61 
62 
63 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
64 
66 {
67  return true;
68 }
69 
70 
72 {
74  return tmp<fvVectorMatrix>(nullptr);
75 }
76 
77 
79 (
80  const volScalarField& rho,
82 ) const
83 {
85  return tmp<fvVectorMatrix>(nullptr);
86 }
87 
88 
90 {}
91 
92 
93 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 
95 } // End namespace Foam
96 
97 // ************************************************************************* //
Generic GeometricField class.
Base class for single-phase compressible momentum transport models.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Templated abstract base class for multiphase compressible momentum transport models.
A class for managing temporary objects.
Definition: tmp.H:55
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the source term for the momentum equation.
ubMomentumTransportModel(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const compressible::momentumTransportModel &mixtureMomentumTransport)
Construct from components.
virtual bool read()
Re-read model coefficients if they have changed.
Abstract base class for all fluid physical properties.
Definition: viscosity.H:50
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:381
U
Definition: pEqn.H:72
rho
Definition: pEqn.H:1
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Namespace for OpenFOAM.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)