ENH: Added dummy access to alpha for noFilm film model

This commit is contained in:
andy
2012-11-12 10:53:48 +00:00
parent 156d515b43
commit 85f1ba2752
2 changed files with 19 additions and 7 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -102,10 +102,10 @@ const volScalarField& noFilm::delta() const
}
const volScalarField& noFilm::sigma() const
const volScalarField& noFilm::alpha() const
{
FatalErrorIn("const volScalarField& noFilm::sigma() const")
<< "sigma field not available for " << type() << abort(FatalError);
FatalErrorIn("const volScalarField& noFilm::alpha() const")
<< "alpha field not available for " << type() << abort(FatalError);
return volScalarField::null();
}
@ -192,6 +192,15 @@ const volScalarField& noFilm::kappa() const
}
const volScalarField& noFilm::sigma() const
{
FatalErrorIn("const volScalarField& noFilm::sigma() const")
<< "sigma field not available for " << type() << abort(FatalError);
return volScalarField::null();
}
tmp<volScalarField> noFilm::primaryMassTrans() const
{
return tmp<volScalarField>

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -115,8 +115,8 @@ public:
//- Return the film thickness [m]
virtual const volScalarField& delta() const;
//- Return const access to the surface tension / [m/s2]
inline const volScalarField& sigma() const;
//- Return the film coverage, 1 = covered, 0 = uncovered / []
virtual const volScalarField& alpha() const;
//- Return the film velocity [m/s]
virtual const volVectorField& U() const;
@ -145,6 +145,9 @@ public:
//- Return the film thermal conductivity [W/m/K]
virtual const volScalarField& kappa() const;
//- Return const access to the surface tension / [m/s2]
inline const volScalarField& sigma() const;
// Transfer fields - to the primary region