DistortedSphereDragForce.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2014-2017 OpenFOAM Foundation
9  Copyright (C) 2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
30 
31 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
32 
33 template<class CloudType>
35 (
36  const scalar Re
37 ) const
38 {
39  // (AOB:Eq. 35; LMR:Eq. 9)
40  if (Re > 1000.0)
41  {
42  return 0.424*Re;
43  }
44 
45  return 24.0*(1.0 + (1.0/6.0)*pow(Re, 2.0/3.0));
46 }
47 
48 
49 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
50 
51 template<class CloudType>
53 (
54  CloudType& owner,
55  const fvMesh& mesh,
56  const dictionary& dict
57 )
58 :
59  ParticleForce<CloudType>(owner, mesh, dict, typeName, false)
60 {}
61 
62 
63 template<class CloudType>
65 (
67 )
68 :
70 {}
71 
72 
73 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
74 
75 template<class CloudType>
77 (
78  const typename CloudType::parcelType& p,
79  const typename CloudType::parcelType::trackingData& td,
80  const scalar dt,
81  const scalar mass,
82  const scalar Re,
83  const scalar muc
84 ) const
85 {
86  // Limit the drop distortion to y=0 (sphere) and y=1 (disk)
87  const scalar y = clamp(p.y(), zero_one{});
88 
89  // (LMR:Eq. 10)
90  return
91  forceSuSp
92  (
93  Zero,
94  mass*0.75*muc*CdRe(Re)*(1.0 + 2.632*y)/(p.rho()*sqr(p.d()))
95  );
96 }
97 
98 
99 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
dimensionedSymmTensor sqr(const dimensionedVector &dv)
DistortedSphereDragForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict)
Construct from mesh.
Abstract base class for particle forces.
Definition: ParticleForce.H:54
virtual forceSuSp calcCoupled(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the coupled force.
Helper container for force Su and Sp terms.
Definition: forceSuSp.H:60
Particle-drag model wherein drag forces (per unit carrier-fluid velocity) are dynamically computed by...
scalar y
dynamicFvMesh & mesh
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:290
Represents 0/1 range or concept. Used for tagged dispatch or clamping.
Definition: pTraits.H:65
scalarField Re(const UList< complex > &cmplx)
Extract real component.
Definition: complexField.C:207
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
volScalarField & p
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:67
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
Definition: dimensionSet.C:271
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127