mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -61,7 +61,8 @@ swirlFlowRateInletVelocityFvPatchVectorField
|
|||||||
fixedValueFvPatchField<vector>(ptf, p, iF, mapper),
|
fixedValueFvPatchField<vector>(ptf, p, iF, mapper),
|
||||||
flowRate_(ptf.flowRate_),
|
flowRate_(ptf.flowRate_),
|
||||||
phiName_(ptf.phiName_),
|
phiName_(ptf.phiName_),
|
||||||
rhoName_(ptf.rhoName_)
|
rhoName_(ptf.rhoName_),
|
||||||
|
rpm_(ptf.rpm_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ SourceFiles
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class swirlFlowRateInletVelocityFvPatchVectorField Declaration
|
Class swirlFlowRateInletVelocityFvPatchVectorField Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class swirlFlowRateInletVelocityFvPatchVectorField
|
class swirlFlowRateInletVelocityFvPatchVectorField
|
||||||
@ -73,16 +73,16 @@ class swirlFlowRateInletVelocityFvPatchVectorField
|
|||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
//- Inlet integral flow rate
|
//- Inlet integral flow rate
|
||||||
scalar flowRate_;
|
const scalar flowRate_;
|
||||||
|
|
||||||
//- Name of the flux transporting the field
|
//- Name of the flux transporting the field
|
||||||
word phiName_;
|
const word phiName_;
|
||||||
|
|
||||||
//- Name of the density field used to normalize the mass flux
|
//- Name of the density field used to normalize the mass flux
|
||||||
word rhoName_;
|
const word rhoName_;
|
||||||
|
|
||||||
//- RPM
|
//- RPM
|
||||||
scalar rpm_;
|
const scalar rpm_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -164,19 +164,12 @@ public:
|
|||||||
return flowRate_;
|
return flowRate_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return reference to the flux to allow adjustment
|
|
||||||
scalar& flowRate()
|
|
||||||
{
|
|
||||||
return flowRate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//- Update the coefficients associated with the patch field
|
//- Update the coefficients associated with the patch field
|
||||||
virtual void updateCoeffs();
|
virtual void updateCoeffs();
|
||||||
|
|
||||||
//- Write
|
//- Write
|
||||||
virtual void write(Ostream&) const;
|
virtual void write(Ostream&) const;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -78,19 +78,19 @@ class atmBoundaryLayerInletEpsilonFvPatchScalarField
|
|||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
//- Frictional velocity
|
//- Frictional velocity
|
||||||
scalar Ustar_;
|
const scalar Ustar_;
|
||||||
|
|
||||||
//- Direction of the z-coordinate
|
//- Direction of the z-coordinate
|
||||||
vector z_;
|
vector z_;
|
||||||
|
|
||||||
//- Surface roughness lenght
|
//- Surface roughness lenght
|
||||||
scalar z0_;
|
const scalar z0_;
|
||||||
|
|
||||||
//- Von Karman constant
|
//- Von Karman constant
|
||||||
scalar kappa_;
|
const scalar kappa_;
|
||||||
|
|
||||||
//- Minimum corrdinate value in z direction
|
//- Minimum corrdinate value in z direction
|
||||||
scalar zGround_;
|
const scalar zGround_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -158,13 +158,13 @@ public:
|
|||||||
// Member functions
|
// Member functions
|
||||||
|
|
||||||
//- Return max value
|
//- Return max value
|
||||||
scalar& Ustar()
|
scalar Ustar() const
|
||||||
{
|
{
|
||||||
return Ustar_;
|
return Ustar_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return z direction
|
//- Return z direction
|
||||||
vector& z()
|
const vector& z() const
|
||||||
{
|
{
|
||||||
return z_;
|
return z_;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -101,19 +101,19 @@ class atmBoundaryLayerInletVelocityFvPatchVectorField
|
|||||||
vector z_;
|
vector z_;
|
||||||
|
|
||||||
//- Surface roughness lenght
|
//- Surface roughness lenght
|
||||||
scalar z0_;
|
const scalar z0_;
|
||||||
|
|
||||||
//- Von Karman constant
|
//- Von Karman constant
|
||||||
scalar kappa_;
|
const scalar kappa_;
|
||||||
|
|
||||||
//- Reference velocity
|
//- Reference velocity
|
||||||
scalar Uref_;
|
const scalar Uref_;
|
||||||
|
|
||||||
//- Reference hight
|
//- Reference hight
|
||||||
scalar Href_;
|
const scalar Href_;
|
||||||
|
|
||||||
//- Minimum corrdinate value in z direction
|
//- Minimum corrdinate value in z direction
|
||||||
scalar zGround_;
|
const scalar zGround_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -38,8 +38,7 @@ namespace incompressible
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
fixedShearStressFvPatchVectorField::
|
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
|
||||||
fixedShearStressFvPatchVectorField
|
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<vector, volMesh>& iF
|
const DimensionedField<vector, volMesh>& iF
|
||||||
@ -50,8 +49,7 @@ fixedShearStressFvPatchVectorField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedShearStressFvPatchVectorField::
|
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
|
||||||
fixedShearStressFvPatchVectorField
|
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<vector, volMesh>& iF,
|
const DimensionedField<vector, volMesh>& iF,
|
||||||
@ -65,8 +63,7 @@ fixedShearStressFvPatchVectorField
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fixedShearStressFvPatchVectorField::
|
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
|
||||||
fixedShearStressFvPatchVectorField
|
|
||||||
(
|
(
|
||||||
const fixedShearStressFvPatchVectorField& ptf,
|
const fixedShearStressFvPatchVectorField& ptf,
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
@ -79,8 +76,7 @@ fixedShearStressFvPatchVectorField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedShearStressFvPatchVectorField::
|
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
|
||||||
fixedShearStressFvPatchVectorField
|
|
||||||
(
|
(
|
||||||
const fixedShearStressFvPatchVectorField& ptf
|
const fixedShearStressFvPatchVectorField& ptf
|
||||||
)
|
)
|
||||||
@ -90,8 +86,7 @@ fixedShearStressFvPatchVectorField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedShearStressFvPatchVectorField::
|
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
|
||||||
fixedShearStressFvPatchVectorField
|
|
||||||
(
|
(
|
||||||
const fixedShearStressFvPatchVectorField& ptf,
|
const fixedShearStressFvPatchVectorField& ptf,
|
||||||
const DimensionedField<vector, volMesh>& iF
|
const DimensionedField<vector, volMesh>& iF
|
||||||
@ -119,7 +114,7 @@ void fixedShearStressFvPatchVectorField::updateCoeffs()
|
|||||||
|
|
||||||
const vectorField Ui = Uw.patchInternalField();
|
const vectorField Ui = Uw.patchInternalField();
|
||||||
|
|
||||||
vector tauHat = tau0_/mag(tau0_);
|
vector tauHat = tau0_/(mag(tau0_) + ROOTVSMALL);
|
||||||
|
|
||||||
const scalarField& ry = patch().deltaCoeffs();
|
const scalarField& ry = patch().deltaCoeffs();
|
||||||
|
|
||||||
@ -161,4 +156,5 @@ makePatchTypeField
|
|||||||
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -56,7 +56,7 @@ class fixedShearStressFvPatchVectorField
|
|||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
//- Constant shear stress
|
//- Constant shear stress
|
||||||
vector tau0_;
|
const vector tau0_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -140,6 +140,7 @@ public:
|
|||||||
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user