mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge remote-tracking branch 'origin/master' into feature/procAgglom
This commit is contained in:
@ -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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -108,9 +108,8 @@ public:
|
|||||||
// and a coefficient to multiply alphal for the vaporisation rate
|
// and a coefficient to multiply alphal for the vaporisation rate
|
||||||
virtual Pair<tmp<volScalarField> > mDotAlphal() const;
|
virtual Pair<tmp<volScalarField> > mDotAlphal() const;
|
||||||
|
|
||||||
//- Return the mass condensation and vaporisation rates as an
|
//- Return the mass condensation and vaporisation rates as coefficients
|
||||||
// explicit term for the condensation rate and a coefficient to
|
// to multiply (p - pSat)
|
||||||
// multiply (p - pSat) for the vaporisation rate
|
|
||||||
virtual Pair<tmp<volScalarField> > mDotP() const;
|
virtual Pair<tmp<volScalarField> > mDotP() const;
|
||||||
|
|
||||||
//- Correct the Kunz phaseChange model
|
//- Correct the Kunz phaseChange model
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
========Merkle= |
|
========= |
|
||||||
\\ / 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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -102,9 +102,8 @@ public:
|
|||||||
// and a coefficient to multiply alphal for the vaporisation rate
|
// and a coefficient to multiply alphal for the vaporisation rate
|
||||||
virtual Pair<tmp<volScalarField> > mDotAlphal() const;
|
virtual Pair<tmp<volScalarField> > mDotAlphal() const;
|
||||||
|
|
||||||
//- Return the mass condensation and vaporisation rates as an
|
//- Return the mass condensation and vaporisation rates as coefficients
|
||||||
// explicit term for the condensation rate and a coefficient to
|
// to multiply (p - pSat)
|
||||||
// multiply (p - pSat) for the vaporisation rate
|
|
||||||
virtual Pair<tmp<volScalarField> > mDotP() const;
|
virtual Pair<tmp<volScalarField> > mDotP() const;
|
||||||
|
|
||||||
//- Correct the Merkle phaseChange model
|
//- Correct the Merkle phaseChange model
|
||||||
|
|||||||
@ -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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -115,9 +115,8 @@ public:
|
|||||||
// and a coefficient to multiply alphal for the vaporisation rate
|
// and a coefficient to multiply alphal for the vaporisation rate
|
||||||
virtual Pair<tmp<volScalarField> > mDotAlphal() const;
|
virtual Pair<tmp<volScalarField> > mDotAlphal() const;
|
||||||
|
|
||||||
//- Return the mass condensation and vaporisation rates as an
|
//- Return the mass condensation and vaporisation rates as coefficients
|
||||||
// explicit term for the condensation rate and a coefficient to
|
// to multiply (p - pSat)
|
||||||
// multiply (p - pSat) for the vaporisation rate
|
|
||||||
virtual Pair<tmp<volScalarField> > mDotP() const;
|
virtual Pair<tmp<volScalarField> > mDotP() const;
|
||||||
|
|
||||||
//- Correct the SchnerrSauer phaseChange model
|
//- Correct the SchnerrSauer phaseChange model
|
||||||
|
|||||||
@ -139,9 +139,8 @@ public:
|
|||||||
// and a coefficient to multiply alphal for the vaporisation rate
|
// and a coefficient to multiply alphal for the vaporisation rate
|
||||||
virtual Pair<tmp<volScalarField> > mDotAlphal() const = 0;
|
virtual Pair<tmp<volScalarField> > mDotAlphal() const = 0;
|
||||||
|
|
||||||
//- Return the mass condensation and vaporisation rates as an
|
//- Return the mass condensation and vaporisation rates as coefficients
|
||||||
// explicit term for the condensation rate and a coefficient to
|
// to multiply (p - pSat)
|
||||||
// multiply (p - pSat) for the vaporisation rate
|
|
||||||
virtual Pair<tmp<volScalarField> > mDotP() const = 0;
|
virtual Pair<tmp<volScalarField> > mDotP() const = 0;
|
||||||
|
|
||||||
//- Return the volumetric condensation and vaporisation rates as a
|
//- Return the volumetric condensation and vaporisation rates as a
|
||||||
@ -149,9 +148,8 @@ public:
|
|||||||
// and a coefficient to multiply alphal for the vaporisation rate
|
// and a coefficient to multiply alphal for the vaporisation rate
|
||||||
Pair<tmp<volScalarField> > vDotAlphal() const;
|
Pair<tmp<volScalarField> > vDotAlphal() const;
|
||||||
|
|
||||||
//- Return the volumetric condensation and vaporisation rates as an
|
//- Return the volumetric condensation and vaporisation rates as
|
||||||
// explicit term for the condensation rate and a coefficient to
|
// coefficients to multiply (p - pSat)
|
||||||
// multiply (p - pSat) for the vaporisation rate
|
|
||||||
Pair<tmp<volScalarField> > vDotP() const;
|
Pair<tmp<volScalarField> > vDotP() const;
|
||||||
|
|
||||||
//- Correct the phaseChange model
|
//- Correct the phaseChange model
|
||||||
|
|||||||
@ -111,11 +111,6 @@ Foam::multiphaseMixture::multiphaseMixture
|
|||||||
{
|
{
|
||||||
calcAlphas();
|
calcAlphas();
|
||||||
alphas_.write();
|
alphas_.write();
|
||||||
|
|
||||||
forAllIter(PtrDictionary<phase>, phases_, iter)
|
|
||||||
{
|
|
||||||
alphaTable_.add(iter());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -47,7 +47,6 @@ SourceFiles
|
|||||||
#include "PtrDictionary.H"
|
#include "PtrDictionary.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "surfaceFields.H"
|
#include "surfaceFields.H"
|
||||||
#include "multivariateSurfaceInterpolationScheme.H"
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -156,9 +155,6 @@ private:
|
|||||||
//- Conversion factor for degrees into radians
|
//- Conversion factor for degrees into radians
|
||||||
static const scalar convertToRad;
|
static const scalar convertToRad;
|
||||||
|
|
||||||
//- Phase-fraction field table for multivariate discretisation
|
|
||||||
multivariateSurfaceInterpolationScheme<scalar>::fieldTable alphaTable_;
|
|
||||||
|
|
||||||
|
|
||||||
// Private member functions
|
// Private member functions
|
||||||
|
|
||||||
|
|||||||
@ -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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,7 +43,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> >
|
|||||||
Su
|
Su
|
||||||
(
|
(
|
||||||
const GeometricField<Type, fvPatchField, volMesh>& su,
|
const GeometricField<Type, fvPatchField, volMesh>& su,
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf
|
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return su;
|
return su;
|
||||||
@ -54,7 +54,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> >
|
|||||||
Su
|
Su
|
||||||
(
|
(
|
||||||
const tmp<GeometricField<Type, fvPatchField, volMesh> >& tsu,
|
const tmp<GeometricField<Type, fvPatchField, volMesh> >& tsu,
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf
|
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return tsu;
|
return tsu;
|
||||||
@ -66,7 +66,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> >
|
|||||||
Sp
|
Sp
|
||||||
(
|
(
|
||||||
const volScalarField& sp,
|
const volScalarField& sp,
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf
|
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return sp*vf;
|
return sp*vf;
|
||||||
@ -77,7 +77,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> >
|
|||||||
Sp
|
Sp
|
||||||
(
|
(
|
||||||
const tmp<volScalarField>& tsp,
|
const tmp<volScalarField>& tsp,
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf
|
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return tsp*vf;
|
return tsp*vf;
|
||||||
@ -89,7 +89,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> >
|
|||||||
Sp
|
Sp
|
||||||
(
|
(
|
||||||
const dimensionedScalar& sp,
|
const dimensionedScalar& sp,
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf
|
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return sp*vf;
|
return sp*vf;
|
||||||
@ -101,7 +101,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> >
|
|||||||
SuSp
|
SuSp
|
||||||
(
|
(
|
||||||
const volScalarField& sp,
|
const volScalarField& sp,
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf
|
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return sp*vf;
|
return sp*vf;
|
||||||
@ -112,7 +112,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> >
|
|||||||
SuSp
|
SuSp
|
||||||
(
|
(
|
||||||
const tmp<volScalarField>& tsp,
|
const tmp<volScalarField>& tsp,
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf
|
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return tsp*vf;
|
return tsp*vf;
|
||||||
|
|||||||
@ -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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -55,14 +55,14 @@ namespace fvc
|
|||||||
tmp<GeometricField<Type, fvPatchField, volMesh> > Su
|
tmp<GeometricField<Type, fvPatchField, volMesh> > Su
|
||||||
(
|
(
|
||||||
const GeometricField<Type, fvPatchField, volMesh>&,
|
const GeometricField<Type, fvPatchField, volMesh>&,
|
||||||
GeometricField<Type, fvPatchField, volMesh>&
|
const GeometricField<Type, fvPatchField, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
tmp<GeometricField<Type, fvPatchField, volMesh> > Su
|
tmp<GeometricField<Type, fvPatchField, volMesh> > Su
|
||||||
(
|
(
|
||||||
const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
|
const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
|
||||||
GeometricField<Type, fvPatchField, volMesh>&
|
const GeometricField<Type, fvPatchField, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -72,14 +72,14 @@ namespace fvc
|
|||||||
tmp<GeometricField<Type, fvPatchField, volMesh> > Sp
|
tmp<GeometricField<Type, fvPatchField, volMesh> > Sp
|
||||||
(
|
(
|
||||||
const volScalarField&,
|
const volScalarField&,
|
||||||
GeometricField<Type, fvPatchField, volMesh>&
|
const GeometricField<Type, fvPatchField, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
tmp<GeometricField<Type, fvPatchField, volMesh> > Sp
|
tmp<GeometricField<Type, fvPatchField, volMesh> > Sp
|
||||||
(
|
(
|
||||||
const tmp<volScalarField>&,
|
const tmp<volScalarField>&,
|
||||||
GeometricField<Type, fvPatchField, volMesh>&
|
const GeometricField<Type, fvPatchField, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ namespace fvc
|
|||||||
tmp<GeometricField<Type, fvPatchField, volMesh> > Sp
|
tmp<GeometricField<Type, fvPatchField, volMesh> > Sp
|
||||||
(
|
(
|
||||||
const dimensionedScalar&,
|
const dimensionedScalar&,
|
||||||
GeometricField<Type, fvPatchField, volMesh>&
|
const GeometricField<Type, fvPatchField, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -97,14 +97,14 @@ namespace fvc
|
|||||||
tmp<GeometricField<Type, fvPatchField, volMesh> > SuSp
|
tmp<GeometricField<Type, fvPatchField, volMesh> > SuSp
|
||||||
(
|
(
|
||||||
const volScalarField&,
|
const volScalarField&,
|
||||||
GeometricField<Type, fvPatchField, volMesh>&
|
const GeometricField<Type, fvPatchField, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
tmp<GeometricField<Type, fvPatchField, volMesh> > SuSp
|
tmp<GeometricField<Type, fvPatchField, volMesh> > SuSp
|
||||||
(
|
(
|
||||||
const tmp<volScalarField>&,
|
const tmp<volScalarField>&,
|
||||||
GeometricField<Type, fvPatchField, volMesh>&
|
const GeometricField<Type, fvPatchField, volMesh>&
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -78,7 +78,7 @@ public:
|
|||||||
// up to the user.
|
// up to the user.
|
||||||
virtual bool parallelAware() const
|
virtual bool parallelAware() const
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return for every coordinate the wanted processor number. Use the
|
//- Return for every coordinate the wanted processor number. Use the
|
||||||
@ -90,12 +90,7 @@ public:
|
|||||||
const scalarField& cWeights
|
const scalarField& cWeights
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
notImplemented
|
return labelList(cc.size(), Pstream::myProcNo());
|
||||||
(
|
|
||||||
"decompose(const polyMesh&, const pointField&"
|
|
||||||
", const scalarField&)"
|
|
||||||
);
|
|
||||||
return labelList(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return for every coordinate the wanted processor number. Explicitly
|
//- Return for every coordinate the wanted processor number. Explicitly
|
||||||
@ -112,12 +107,7 @@ public:
|
|||||||
const scalarField& cWeights
|
const scalarField& cWeights
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
notImplemented
|
return labelList(globalCellCells.size(), Pstream::myProcNo());
|
||||||
(
|
|
||||||
"decompose(const labelListList&, const pointField&"
|
|
||||||
", const scalarField&)"
|
|
||||||
);
|
|
||||||
return labelList(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -241,6 +241,20 @@ Foam::Ostream& Foam::OBJstream::write(const linePointRef& ln)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::Ostream& Foam::OBJstream::write
|
||||||
|
(
|
||||||
|
const linePointRef& ln,
|
||||||
|
const vector& n0,
|
||||||
|
const vector& n1
|
||||||
|
)
|
||||||
|
{
|
||||||
|
write(ln.start(), n0);
|
||||||
|
write(ln.end(), n1);
|
||||||
|
write("l ") << nVertices_-1 << ' ' << nVertices_ << nl;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::Ostream& Foam::OBJstream::write
|
Foam::Ostream& Foam::OBJstream::write
|
||||||
(
|
(
|
||||||
const triPointRef& f,
|
const triPointRef& f,
|
||||||
|
|||||||
@ -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) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -92,7 +92,7 @@ public:
|
|||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return the name of the stream
|
//- Return the number of vertices written
|
||||||
label nVertices() const
|
label nVertices() const
|
||||||
{
|
{
|
||||||
return nVertices_;
|
return nVertices_;
|
||||||
@ -135,6 +135,14 @@ public:
|
|||||||
//- Write line
|
//- Write line
|
||||||
Ostream& write(const linePointRef&);
|
Ostream& write(const linePointRef&);
|
||||||
|
|
||||||
|
//- Write line with points and vector normals ('vn')
|
||||||
|
Ostream& write
|
||||||
|
(
|
||||||
|
const linePointRef&,
|
||||||
|
const vector& n0,
|
||||||
|
const vector& n1
|
||||||
|
);
|
||||||
|
|
||||||
//- Write triangle as points with lines or filled polygon
|
//- Write triangle as points with lines or filled polygon
|
||||||
Ostream& write(const triPointRef&, const bool lines = true);
|
Ostream& write(const triPointRef&, const bool lines = true);
|
||||||
|
|
||||||
|
|||||||
@ -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-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -34,7 +34,7 @@ Description
|
|||||||
The porous baffle introduces a pressure jump defined by:
|
The porous baffle introduces a pressure jump defined by:
|
||||||
|
|
||||||
\f[
|
\f[
|
||||||
\Delta p = -(I \mu U + 0.5 D \rho |U|^2 L)
|
\Delta p = -(I \mu U + 0.5 D \rho |U|^2 )L
|
||||||
\f]
|
\f]
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|||||||
@ -78,7 +78,7 @@ void Foam::porousBafflePressureFvPatchField<Foam::scalar>::updateCoeffs()
|
|||||||
|
|
||||||
const scalarField nuEffw = turbModel.nuEff()().boundaryField()[patchI];
|
const scalarField nuEffw = turbModel.nuEff()().boundaryField()[patchI];
|
||||||
|
|
||||||
jump_ = -sign(Un)*(I_*nuEffw + D_*0.5*magUn*length_)*magUn;
|
jump_ = -sign(Un)*(I_*nuEffw + D_*0.5*magUn)*magUn*length_;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ void Foam::porousBafflePressureFvPatchField<Foam::scalar>::updateCoeffs()
|
|||||||
|
|
||||||
Un /= rhow;
|
Un /= rhow;
|
||||||
|
|
||||||
jump_ = -sign(Un)*(I_*muEffw + D_*0.5*rhow*magUn*length_)*magUn;
|
jump_ = -sign(Un)*(I_*muEffw + D_*0.5*rhow*magUn)*magUn*length_;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
@ -3,7 +3,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 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -202,9 +202,9 @@ fi
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# transform "all" option to "libso" if that looks appropriate or remove it
|
# transform "all" or no option to "libso" if that looks appropriate or remove it
|
||||||
# so that the call to make builds the application
|
# so that the call to make builds the application
|
||||||
if [ "$makeType" = all ]
|
if [ "$makeType" = all -o "$makeType" = "" ]
|
||||||
then
|
then
|
||||||
unset makeType
|
unset makeType
|
||||||
if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
|
if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user