Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -28,7 +28,7 @@ License
|
|||||||
|
|
||||||
using namespace Foam::constant;
|
using namespace Foam::constant;
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Protectd Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
|
||||||
|
|
||||||
template<class CloudType>
|
template<class CloudType>
|
||||||
Foam::label Foam::ParticleErosion<CloudType>::applyToPatch
|
Foam::label Foam::ParticleErosion<CloudType>::applyToPatch
|
||||||
|
|||||||
@ -27,7 +27,7 @@ License
|
|||||||
#include "OSspecific.H"
|
#include "OSspecific.H"
|
||||||
#include "setWriter.H"
|
#include "setWriter.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Protectd Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
|
||||||
|
|
||||||
template<class CloudType>
|
template<class CloudType>
|
||||||
void Foam::SizeDistribution<CloudType>::write()
|
void Foam::SizeDistribution<CloudType>::write()
|
||||||
|
|||||||
@ -25,12 +25,12 @@ License
|
|||||||
|
|
||||||
#include "VolumeFraction.H"
|
#include "VolumeFraction.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Protectd Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
|
||||||
|
|
||||||
template<class CloudType>
|
template<class CloudType>
|
||||||
void Foam::VolumeFraction<CloudType>::write()
|
void Foam::VolumeFraction<CloudType>::write()
|
||||||
{
|
{
|
||||||
this->owner().alpha()->write();
|
alpha_.write();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +44,20 @@ Foam::VolumeFraction<CloudType>::VolumeFraction
|
|||||||
const word& modelName
|
const word& modelName
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
CloudFunctionObject<CloudType>(dict, owner, modelName, typeName)
|
CloudFunctionObject<CloudType>(dict, owner, modelName, typeName),
|
||||||
|
alpha_
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
this->owner().name() + ":alpha",
|
||||||
|
this->owner().mesh().time().name(),
|
||||||
|
this->owner().mesh(),
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
this->owner().mesh(),
|
||||||
|
dimensionedScalar(dimless, 0)
|
||||||
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -54,7 +67,8 @@ Foam::VolumeFraction<CloudType>::VolumeFraction
|
|||||||
const VolumeFraction<CloudType>& vf
|
const VolumeFraction<CloudType>& vf
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
CloudFunctionObject<CloudType>(vf)
|
CloudFunctionObject<CloudType>(vf),
|
||||||
|
alpha_(this->owner().name() + ":alpha", vf.alpha_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -65,4 +79,15 @@ Foam::VolumeFraction<CloudType>::~VolumeFraction()
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class CloudType>
|
||||||
|
void Foam::VolumeFraction<CloudType>::postEvolve()
|
||||||
|
{
|
||||||
|
alpha_ = this->owner().alpha();
|
||||||
|
|
||||||
|
CloudFunctionObject<CloudType>::postEvolve();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -36,6 +36,7 @@ SourceFiles
|
|||||||
#define VolumeFraction_H
|
#define VolumeFraction_H
|
||||||
|
|
||||||
#include "CloudFunctionObject.H"
|
#include "CloudFunctionObject.H"
|
||||||
|
#include "volFields.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -53,6 +54,12 @@ class VolumeFraction
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
// Private Data
|
||||||
|
|
||||||
|
//- Volume fraction field
|
||||||
|
volScalarField alpha_;
|
||||||
|
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
//- Write post-processing info
|
//- Write post-processing info
|
||||||
@ -90,6 +97,14 @@ public:
|
|||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~VolumeFraction();
|
virtual ~VolumeFraction();
|
||||||
|
|
||||||
|
|
||||||
|
// Member Functions
|
||||||
|
|
||||||
|
// Evaluation
|
||||||
|
|
||||||
|
//- Post-evolve hook
|
||||||
|
virtual void postEvolve();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -158,6 +158,11 @@ subModels
|
|||||||
|
|
||||||
cloudFunctions
|
cloudFunctions
|
||||||
{
|
{
|
||||||
|
volumeFraction1
|
||||||
|
{
|
||||||
|
type volumeFraction;
|
||||||
|
}
|
||||||
|
|
||||||
massFlux1
|
massFlux1
|
||||||
{
|
{
|
||||||
type massFlux;
|
type massFlux;
|
||||||
|
|||||||
@ -48,6 +48,7 @@ runTimeModifiable yes;
|
|||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
|
#includeFunc volIntegrate(cloud:alpha)
|
||||||
#includeFunc patchFlowRate(patch=lowerInlet, cloud:massFlux)
|
#includeFunc patchFlowRate(patch=lowerInlet, cloud:massFlux)
|
||||||
#includeFunc patchFlowRate(patch=upperInlet, cloud:massFlux)
|
#includeFunc patchFlowRate(patch=upperInlet, cloud:massFlux)
|
||||||
#includeFunc faceZoneFlowRate(faceZone=mid, cloud:massFlux)
|
#includeFunc faceZoneFlowRate(faceZone=mid, cloud:massFlux)
|
||||||
|
|||||||
Reference in New Issue
Block a user