mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
SchaefferFrictionalStress: Updated with alphaMinFriction
Resolved bug-report http://openfoam.org/mantisbt/view.php?id=1831
This commit is contained in:
@ -115,6 +115,7 @@ Foam::tmp<Foam::volScalarField>
|
|||||||
Foam::kineticTheoryModels::frictionalStressModels::JohnsonJackson::nu
|
Foam::kineticTheoryModels::frictionalStressModels::JohnsonJackson::nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -108,6 +108,7 @@ public:
|
|||||||
virtual tmp<volScalarField> nu
|
virtual tmp<volScalarField> nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -104,6 +104,7 @@ Foam::tmp<Foam::volScalarField>
|
|||||||
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
|
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
@ -133,9 +134,9 @@ Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
|
|||||||
|
|
||||||
volScalarField& nuf = tnu();
|
volScalarField& nuf = tnu();
|
||||||
|
|
||||||
forAll (D, celli)
|
forAll(D, celli)
|
||||||
{
|
{
|
||||||
if (alpha1[celli] > alphaMax.value() - 5e-2)
|
if (alpha1[celli] > alphaMinFriction.value())
|
||||||
{
|
{
|
||||||
nuf[celli] =
|
nuf[celli] =
|
||||||
0.5*pf[celli]*sin(phi_.value())
|
0.5*pf[celli]*sin(phi_.value())
|
||||||
|
|||||||
@ -96,6 +96,7 @@ public:
|
|||||||
virtual tmp<volScalarField> nu
|
virtual tmp<volScalarField> nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -122,6 +122,7 @@ public:
|
|||||||
virtual tmp<volScalarField> nu
|
virtual tmp<volScalarField> nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -519,6 +519,7 @@ void Foam::RASModels::kineticTheoryModel::correct()
|
|||||||
nut_ += frictionalStressModel_->nu
|
nut_ += frictionalStressModel_->nu
|
||||||
(
|
(
|
||||||
alpha,
|
alpha,
|
||||||
|
alphaMinFriction_,
|
||||||
alphaMax_,
|
alphaMax_,
|
||||||
pf/rho,
|
pf/rho,
|
||||||
D
|
D
|
||||||
|
|||||||
@ -115,6 +115,7 @@ Foam::tmp<Foam::volScalarField>
|
|||||||
Foam::kineticTheoryModels::frictionalStressModels::JohnsonJackson::nu
|
Foam::kineticTheoryModels::frictionalStressModels::JohnsonJackson::nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -108,6 +108,7 @@ public:
|
|||||||
virtual tmp<volScalarField> nu
|
virtual tmp<volScalarField> nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -104,6 +104,7 @@ Foam::tmp<Foam::volScalarField>
|
|||||||
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
|
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
@ -133,9 +134,9 @@ Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
|
|||||||
|
|
||||||
volScalarField& nuf = tnu();
|
volScalarField& nuf = tnu();
|
||||||
|
|
||||||
forAll (D, celli)
|
forAll(D, celli)
|
||||||
{
|
{
|
||||||
if (alpha1[celli] > alphaMax.value() - 5e-2)
|
if (alpha1[celli] > alphaMinFriction.value())
|
||||||
{
|
{
|
||||||
nuf[celli] =
|
nuf[celli] =
|
||||||
0.5*pf[celli]*sin(phi_.value())
|
0.5*pf[celli]*sin(phi_.value())
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -96,6 +96,7 @@ public:
|
|||||||
virtual tmp<volScalarField> nu
|
virtual tmp<volScalarField> nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -122,6 +122,7 @@ public:
|
|||||||
virtual tmp<volScalarField> nu
|
virtual tmp<volScalarField> nu
|
||||||
(
|
(
|
||||||
const volScalarField& alpha1,
|
const volScalarField& alpha1,
|
||||||
|
const dimensionedScalar& alphaMinFriction,
|
||||||
const dimensionedScalar& alphaMax,
|
const dimensionedScalar& alphaMax,
|
||||||
const volScalarField& pf,
|
const volScalarField& pf,
|
||||||
const volSymmTensorField& D
|
const volSymmTensorField& D
|
||||||
|
|||||||
@ -515,6 +515,7 @@ void Foam::RASModels::kineticTheoryModel::correct()
|
|||||||
nut_ += frictionalStressModel_->nu
|
nut_ += frictionalStressModel_->nu
|
||||||
(
|
(
|
||||||
alpha,
|
alpha,
|
||||||
|
alphaMinFriction_,
|
||||||
alphaMax_,
|
alphaMax_,
|
||||||
pf/rho,
|
pf/rho,
|
||||||
D
|
D
|
||||||
|
|||||||
Reference in New Issue
Block a user