Commit 344fba92 authored by henry's avatar henry
Browse files
parents 3e5c7449 b39a77a9
......@@ -61,7 +61,8 @@ swirlFlowRateInletVelocityFvPatchVectorField
fixedValueFvPatchField<vector>(ptf, p, iF, mapper),
flowRate_(ptf.flowRate_),
phiName_(ptf.phiName_),
rhoName_(ptf.rhoName_)
rhoName_(ptf.rhoName_),
rpm_(ptf.rpm_)
{}
......
......@@ -63,7 +63,7 @@ SourceFiles
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class swirlFlowRateInletVelocityFvPatchVectorField Declaration
Class swirlFlowRateInletVelocityFvPatchVectorField Declaration
\*---------------------------------------------------------------------------*/
class swirlFlowRateInletVelocityFvPatchVectorField
......@@ -73,16 +73,16 @@ class swirlFlowRateInletVelocityFvPatchVectorField
// Private data
//- Inlet integral flow rate
scalar flowRate_;
const scalar flowRate_;
//- Name of the flux transporting the field
word phiName_;
const word phiName_;
//- Name of the density field used to normalize the mass flux
word rhoName_;
const word rhoName_;
//- RPM
scalar rpm_;
const scalar rpm_;
public:
......@@ -164,19 +164,12 @@ public:
return flowRate_;
}
//- Return reference to the flux to allow adjustment
scalar& flowRate()
{
return flowRate_;
}
//- Update the coefficients associated with the patch field
virtual void updateCoeffs();
//- Write
virtual void write(Ostream&) const;
};
......
......@@ -78,19 +78,19 @@ class atmBoundaryLayerInletEpsilonFvPatchScalarField
// Private data
//- Frictional velocity
scalar Ustar_;
const scalar Ustar_;
//- Direction of the z-coordinate
vector z_;
//- Surface roughness lenght
scalar z0_;
//- Surface roughness lenght
const scalar z0_;
//- Von Karman constant
scalar kappa_;
//- Von Karman constant
const scalar kappa_;
//- Minimum corrdinate value in z direction
scalar zGround_;
//- Minimum corrdinate value in z direction
const scalar zGround_;
public:
......@@ -158,13 +158,13 @@ public:
// Member functions
//- Return max value
scalar& Ustar()
scalar Ustar() const
{
return Ustar_;
}
//- Return z direction
vector& z()
const vector& z() const
{
return z_;
}
......
......@@ -101,19 +101,19 @@ class atmBoundaryLayerInletVelocityFvPatchVectorField
vector z_;
//- Surface roughness lenght
scalar z0_;
const scalar z0_;
//- Von Karman constant
scalar kappa_;
const scalar kappa_;
//- Reference velocity
scalar Uref_;
const scalar Uref_;
//- Reference hight
scalar Href_;
const scalar Href_;
//- Minimum corrdinate value in z direction
scalar zGround_;
const scalar zGround_;
public:
......
......@@ -38,8 +38,7 @@ namespace incompressible
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
fixedShearStressFvPatchVectorField::
fixedShearStressFvPatchVectorField
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
......@@ -50,8 +49,7 @@ fixedShearStressFvPatchVectorField
{}
fixedShearStressFvPatchVectorField::
fixedShearStressFvPatchVectorField
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
......@@ -65,8 +63,7 @@ fixedShearStressFvPatchVectorField
}
fixedShearStressFvPatchVectorField::
fixedShearStressFvPatchVectorField
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
(
const fixedShearStressFvPatchVectorField& ptf,
const fvPatch& p,
......@@ -79,8 +76,7 @@ fixedShearStressFvPatchVectorField
{}
fixedShearStressFvPatchVectorField::
fixedShearStressFvPatchVectorField
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
(
const fixedShearStressFvPatchVectorField& ptf
)
......@@ -90,8 +86,7 @@ fixedShearStressFvPatchVectorField
{}
fixedShearStressFvPatchVectorField::
fixedShearStressFvPatchVectorField
fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
(
const fixedShearStressFvPatchVectorField& ptf,
const DimensionedField<vector, volMesh>& iF
......@@ -119,7 +114,7 @@ void fixedShearStressFvPatchVectorField::updateCoeffs()
const vectorField Ui = Uw.patchInternalField();
vector tauHat = tau0_/mag(tau0_);
vector tauHat = tau0_/(mag(tau0_) + ROOTVSMALL);
const scalarField& ry = patch().deltaCoeffs();
......@@ -161,4 +156,5 @@ makePatchTypeField
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //
......@@ -56,7 +56,7 @@ class fixedShearStressFvPatchVectorField
// Private data
//- Constant shear stress
vector tau0_;
const vector tau0_;
public:
......@@ -140,6 +140,7 @@ public:
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment