mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updated support for clang-3.1
This commit is contained in:
@ -132,7 +132,7 @@ void Foam::cylindricalInletVelocityFvPatchVectorField::updateCoeffs()
|
||||
vector hatAxis = axis_/mag(axis_);
|
||||
|
||||
const vectorField r(patch().Cf() - centre_);
|
||||
const vectorField d = r - (hatAxis & r)*hatAxis;
|
||||
const vectorField d(r - (hatAxis & r)*hatAxis);
|
||||
|
||||
tmp<vectorField> tangVel
|
||||
(
|
||||
|
||||
@ -136,7 +136,7 @@ void Foam::variableHeightFlowRateFvPatchScalarField::updateCoeffs()
|
||||
const fvsPatchField<scalar>& phip =
|
||||
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_);
|
||||
|
||||
scalarField alphap = this->patchInternalField();
|
||||
scalarField alphap(this->patchInternalField());
|
||||
|
||||
|
||||
forAll(phip, i)
|
||||
|
||||
@ -113,7 +113,7 @@ void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField
|
||||
// a simpler way of doing this would be nice
|
||||
scalar avgU = -flowRate_/gSum(patch().magSf()*alphap);
|
||||
|
||||
vectorField n = patch().nf();
|
||||
vectorField n(patch().nf());
|
||||
|
||||
operator==(n*avgU*alphap);
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ License
|
||||
#include "dictionary.H"
|
||||
#include "fvMesh.H"
|
||||
#include "fvPatchFieldMapper.H"
|
||||
//#include "fvMatrices.H"
|
||||
#include "volMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -138,7 +138,7 @@ void Foam::extendedLeastSquaresVectors::makeLeastSquaresVectors() const
|
||||
const labelUList& faceCells = p.faceCells();
|
||||
|
||||
// Build the d-vectors
|
||||
vectorField pd = p.delta();
|
||||
vectorField pd(p.delta());
|
||||
|
||||
forAll(pd, patchFaceI)
|
||||
{
|
||||
@ -252,7 +252,7 @@ void Foam::extendedLeastSquaresVectors::makeLeastSquaresVectors() const
|
||||
const labelUList& faceCells = p.faceCells();
|
||||
|
||||
// Build the d-vectors
|
||||
vectorField pd = p.delta();
|
||||
vectorField pd(p.delta());
|
||||
|
||||
forAll(p, patchFaceI)
|
||||
{
|
||||
|
||||
@ -126,7 +126,7 @@ Foam::fv::fourthGrad<Type>::calcGrad
|
||||
const labelUList& faceCells = p.faceCells();
|
||||
|
||||
// Build the d-vectors
|
||||
vectorField pd = p.delta();
|
||||
vectorField pd(p.delta());
|
||||
|
||||
const Field<GradType> neighbourSecondfGrad
|
||||
(
|
||||
|
||||
@ -132,7 +132,7 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
|
||||
const labelUList& faceCells = p.patch().faceCells();
|
||||
|
||||
// Build the d-vectors
|
||||
vectorField pd = p.delta();
|
||||
vectorField pd(p.delta());
|
||||
|
||||
if (pw.coupled())
|
||||
{
|
||||
@ -185,7 +185,7 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
|
||||
const labelUList& faceCells = p.faceCells();
|
||||
|
||||
// Build the d-vectors
|
||||
vectorField pd = p.delta();
|
||||
vectorField pd(p.delta());
|
||||
|
||||
if (pw.coupled())
|
||||
{
|
||||
|
||||
@ -122,7 +122,7 @@ Foam::LimitedScheme<Type, Limiter, LimitFunc>::limiter
|
||||
);
|
||||
|
||||
// Build the d-vectors
|
||||
vectorField pd = CDweights.boundaryField()[patchi].patch().delta();
|
||||
vectorField pd(CDweights.boundaryField()[patchi].patch().delta());
|
||||
|
||||
forAll(pLim, face)
|
||||
{
|
||||
|
||||
@ -111,7 +111,7 @@ Foam::linearUpwind<Type>::correction
|
||||
);
|
||||
|
||||
// Build the d-vectors
|
||||
vectorField pd = Cf.boundaryField()[patchi].patch().delta();
|
||||
vectorField pd(Cf.boundaryField()[patchi].patch().delta());
|
||||
|
||||
forAll(pOwner, facei)
|
||||
{
|
||||
|
||||
@ -111,7 +111,7 @@ void Foam::skewCorrectionVectors::makeSkewCorrectionVectors() const
|
||||
const labelUList& faceCells = p.faceCells();
|
||||
const vectorField& patchFaceCentres = Cf.boundaryField()[patchI];
|
||||
const vectorField& patchSf = Sf.boundaryField()[patchI];
|
||||
const vectorField patchD = p.delta();
|
||||
const vectorField patchD(p.delta());
|
||||
|
||||
forAll(p, patchFaceI)
|
||||
{
|
||||
|
||||
@ -294,7 +294,7 @@ void Foam::surfaceInterpolation::makeNonOrthDeltaCoeffs() const
|
||||
|
||||
forAll(nonOrthDeltaCoeffs.boundaryField(), patchi)
|
||||
{
|
||||
vectorField delta = mesh_.boundary()[patchi].delta();
|
||||
vectorField delta(mesh_.boundary()[patchi].delta());
|
||||
|
||||
nonOrthDeltaCoeffs.boundaryField()[patchi] =
|
||||
1.0/max(mesh_.boundary()[patchi].nf() & delta, 0.05*mag(delta));
|
||||
|
||||
@ -108,7 +108,7 @@ void htcConvFvPatchScalarField::updateCoeffs()
|
||||
const label patchI = patch().index();
|
||||
|
||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
||||
const scalarField alphaEffw = rasModel.alphaEff(patchI);
|
||||
const scalarField alphaEffw(rasModel.alphaEff(patchI));
|
||||
const scalarField& muw = rasModel.mu().boundaryField()[patchI];
|
||||
const scalarField& rhow = rasModel.rho().boundaryField()[patchI];
|
||||
const vectorField& Uc = rasModel.U();
|
||||
|
||||
@ -158,7 +158,7 @@ void Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::updateCoeffs()
|
||||
const fvsPatchField<scalar>& phip =
|
||||
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_);
|
||||
|
||||
const scalarField alphap = turbulence.alphaEff(patchI);
|
||||
const scalarField alphap(turbulence.alphaEff(patchI));
|
||||
|
||||
refValue() = 1.0;
|
||||
refGrad() = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user