Merge remote branch 'OpenCFD/master' into olesenm

This commit is contained in:
Mark Olesen
2011-01-31 13:46:46 +01:00
201 changed files with 1552 additions and 1503 deletions

View File

@ -23,7 +23,7 @@ fvMesh mesh
fvMesh::defaultRegion, fvMesh::defaultRegion,
runTime.timeName(), runTime.timeName(),
runTime, runTime,
IOobject::NO_READ IOobject::MUST_READ
), ),
xferMove<Field<vector> >(points), xferMove<Field<vector> >(points),
faces.xfer(), faces.xfer(),

View File

@ -4,8 +4,8 @@ EXE_INC = \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/lagrangian/dieselSpray/lnInclude \ -I$(LIB_SRC)/lagrangian/dieselSpray/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
@ -27,8 +27,8 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-lmeshTools \ -lmeshTools \
-ldieselSpray \ -ldieselSpray \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \

View File

@ -5,8 +5,8 @@ EXE_INC = \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/lagrangian/dieselSpray/lnInclude \ -I$(LIB_SRC)/lagrangian/dieselSpray/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
@ -24,8 +24,8 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-lmeshTools \ -lmeshTools \
-ldieselSpray \ -ldieselSpray \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \

View File

@ -8,10 +8,10 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
@ -31,10 +31,10 @@ EXE_LIBS = \
-lcoalCombustion\ -lcoalCombustion\
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lpointSolids \ -lsolidProperties \
-lpointSolidMixture \ -lsolidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lSLGThermo \ -lSLGThermo \

View File

@ -8,10 +8,10 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
@ -30,10 +30,10 @@ EXE_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lpointSolids \ -lsolidProperties \
-lpointSolidMixture \ -lsolidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lSLGThermo \ -lSLGThermo \

View File

@ -5,10 +5,10 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
@ -26,8 +26,8 @@ EXE_LIBS = \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lpointSolids \ -lsolidProperties \
-lpointSolidMixture \ -lsolidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lSLGThermo \ -lSLGThermo \

View File

@ -7,10 +7,10 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
@ -29,10 +29,10 @@ EXE_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lpointSolids \ -lsolidProperties \
-lpointSolidMixture \ -lsolidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lSLGThermo \ -lSLGThermo \

View File

@ -8,10 +8,10 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
@ -30,10 +30,10 @@ EXE_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lpointSolids \ -lsolidProperties \
-lpointSolidMixture \ -lsolidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lSLGThermo \ -lSLGThermo \

View File

@ -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) 2010-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -311,8 +311,9 @@ void rewriteField
{ {
IOWarningIn("rewriteField(..)", patchDict) IOWarningIn("rewriteField(..)", patchDict)
<< "Cyclic patch " << patchName << "Cyclic patch " << patchName
<< " has value entry. Please remove this and rerun." << " has value entry. This will be removed."
<< endl; << endl;
patchDict.remove("value");
} }

View File

@ -52,7 +52,7 @@ alias foamPV 'source `$WM_PROJECT_DIR/etc/apps/paraview3/cshrc` ParaView_VERSION
# Change directory aliases # Change directory aliases
# ~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~
alias src 'cd $FOAM_SRC' alias src 'cd $FOAM_SRC'
alias lib 'cd $FOAM_LIB' alias lib 'cd $FOAM_LIBBIN'
alias run 'cd $FOAM_RUN' alias run 'cd $FOAM_RUN'
alias foam 'cd $WM_PROJECT_DIR' alias foam 'cd $WM_PROJECT_DIR'
alias foamsrc 'cd $FOAM_SRC/$WM_PROJECT' alias foamsrc 'cd $FOAM_SRC/$WM_PROJECT'

View File

@ -57,7 +57,7 @@ foamPV()
# Change directory aliases # Change directory aliases
# ~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~
alias src='cd $FOAM_SRC' alias src='cd $FOAM_SRC'
alias lib='cd $FOAM_LIB' alias lib='cd $FOAM_LIBBIN'
alias run='cd $FOAM_RUN' alias run='cd $FOAM_RUN'
alias foam='cd $WM_PROJECT_DIR' alias foam='cd $WM_PROJECT_DIR'
alias foamsrc='cd $FOAM_SRC/$WM_PROJECT' alias foamsrc='cd $FOAM_SRC/$WM_PROJECT'

View File

@ -65,7 +65,7 @@ setenv FOAM_USER_LIBBIN $WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/lib
# convenience # convenience
setenv FOAM_APP $WM_PROJECT_DIR/applications setenv FOAM_APP $WM_PROJECT_DIR/applications
setenv FOAM_LIB $WM_PROJECT_DIR/lib #setenv FOAM_LIB $WM_PROJECT_DIR/lib
setenv FOAM_SRC $WM_PROJECT_DIR/src setenv FOAM_SRC $WM_PROJECT_DIR/src
setenv FOAM_TUTORIALS $WM_PROJECT_DIR/tutorials setenv FOAM_TUTORIALS $WM_PROJECT_DIR/tutorials
setenv FOAM_UTILITIES $FOAM_APP/utilities setenv FOAM_UTILITIES $FOAM_APP/utilities

View File

@ -88,7 +88,7 @@ export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/lib
# convenience # convenience
export FOAM_APP=$WM_PROJECT_DIR/applications export FOAM_APP=$WM_PROJECT_DIR/applications
export FOAM_LIB=$WM_PROJECT_DIR/lib #export FOAM_LIB=$WM_PROJECT_DIR/lib
export FOAM_SRC=$WM_PROJECT_DIR/src export FOAM_SRC=$WM_PROJECT_DIR/src
export FOAM_TUTORIALS=$WM_PROJECT_DIR/tutorials export FOAM_TUTORIALS=$WM_PROJECT_DIR/tutorials
export FOAM_UTILITIES=$FOAM_APP/utilities export FOAM_UTILITIES=$FOAM_APP/utilities

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -260,6 +260,11 @@ void Foam::LUscalarMatrix::convert
} }
else if (interface.myProcNo_ < interface.neighbProcNo_) else if (interface.myProcNo_ < interface.neighbProcNo_)
{ {
// Interface to neighbour proc. Find on neighbour proc the
// corresponding interface. The problem is that there can
// be multiple interfaces between two processors (from
// processorCyclics) so also compare the communication tag
const PtrList<procLduInterface>& neiInterfaces = const PtrList<procLduInterface>& neiInterfaces =
lduMatrices[interface.neighbProcNo_].interfaces_; lduMatrices[interface.neighbProcNo_].interfaces_;
@ -268,10 +273,13 @@ void Foam::LUscalarMatrix::convert
forAll(neiInterfaces, ninti) forAll(neiInterfaces, ninti)
{ {
if if
(
( (
neiInterfaces[ninti].neighbProcNo_ neiInterfaces[ninti].neighbProcNo_
== interface.myProcNo_ == interface.myProcNo_
) )
&& (neiInterfaces[ninti].tag_ == interface.tag_)
)
{ {
neiInterfacei = ninti; neiInterfacei = ninti;
break; break;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -39,7 +39,8 @@ Foam::procLduInterface::procLduInterface
faceCells_(interface.interface().faceCells()), faceCells_(interface.interface().faceCells()),
coeffs_(coeffs), coeffs_(coeffs),
myProcNo_(-1), myProcNo_(-1),
neighbProcNo_(-1) neighbProcNo_(-1),
tag_(-1)
{ {
if (isA<processorLduInterface>(interface.interface())) if (isA<processorLduInterface>(interface.interface()))
{ {
@ -48,6 +49,7 @@ Foam::procLduInterface::procLduInterface
myProcNo_ = pldui.myProcNo(); myProcNo_ = pldui.myProcNo();
neighbProcNo_ = pldui.neighbProcNo(); neighbProcNo_ = pldui.neighbProcNo();
tag_ = pldui.tag();
} }
else if (isA<cyclicLduInterface>(interface.interface())) else if (isA<cyclicLduInterface>(interface.interface()))
{ {
@ -70,7 +72,8 @@ Foam::procLduInterface::procLduInterface(Istream& is)
faceCells_(is), faceCells_(is),
coeffs_(is), coeffs_(is),
myProcNo_(readLabel(is)), myProcNo_(readLabel(is)),
neighbProcNo_(readLabel(is)) neighbProcNo_(readLabel(is)),
tag_(readLabel(is))
{} {}
@ -81,7 +84,8 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const procLduInterface& cldui)
os << cldui.faceCells_ os << cldui.faceCells_
<< cldui.coeffs_ << cldui.coeffs_
<< cldui.myProcNo_ << cldui.myProcNo_
<< cldui.neighbProcNo_; << cldui.neighbProcNo_
<< cldui.tag_;
return os; return os;
} }

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,6 +57,7 @@ class procLduInterface
scalarField coeffs_; scalarField coeffs_;
label myProcNo_; label myProcNo_;
label neighbProcNo_; label neighbProcNo_;
label tag_;
// Private Member Functions // Private Member Functions

View File

@ -29,6 +29,7 @@ License
#include "globalIndex.H" #include "globalIndex.H"
#include "globalIndexAndTransform.H" #include "globalIndexAndTransform.H"
#include "transformField.H" #include "transformField.H"
#include "ListOps.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -1104,6 +1105,12 @@ Foam::mapDistribute::mapDistribute(const Xfer<mapDistribute>& map)
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
Foam::label Foam::mapDistribute::whichTransform(const label index) const
{
return findLower(transformStart_, index+1);
}
void Foam::mapDistribute::transfer(mapDistribute& rhs) void Foam::mapDistribute::transfer(mapDistribute& rhs)
{ {
constructSize_ = rhs.constructSize_; constructSize_ = rhs.constructSize_;

View File

@ -385,6 +385,9 @@ public:
return transformStart_; return transformStart_;
} }
//- Find transform from transformElements
label whichTransform(const label index) const;
//- Calculate a schedule. See above. //- Calculate a schedule. See above.
static List<labelPair> schedule static List<labelPair> schedule
( (

View File

@ -6,10 +6,10 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
@ -28,10 +28,10 @@ LIB_LIBS = \
-lpdf \ -lpdf \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lpointSolids \ -lsolidProperties \
-lpointSolidMixture \ -lsolidMixtureProperties \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lSLGThermo \ -lSLGThermo \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -8,8 +8,8 @@ EXE_INC = \
-I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude \ -I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude \
-I$(LIB_SRC)/turbulenceModels/compressible/LES/lnInclude \ -I$(LIB_SRC)/turbulenceModels/compressible/LES/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
@ -22,8 +22,8 @@ LIB_LIBS = \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lLESdeltas \ -lLESdeltas \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lspecie \ -lspecie \
-lpdf -lpdf

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -400,7 +400,7 @@ Foam::scalar Foam::commonRailInjector::injectedMass
void Foam::commonRailInjector::correctProfiles void Foam::commonRailInjector::correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
) )
{ {

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -213,7 +213,7 @@ public:
void correctProfiles void correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
); );

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -366,7 +366,7 @@ Foam::scalar Foam::definedInjector::injectedMass
void Foam::definedInjector::correctProfiles void Foam::definedInjector::correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
) )
{ {

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -218,7 +218,7 @@ public:
void correctProfiles void correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
); );

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -44,7 +44,7 @@ SourceFiles
#include "vector.H" #include "vector.H"
#include "scalarField.H" #include "scalarField.H"
#include "cachedRandom.H" #include "cachedRandom.H"
#include "liquidMixture.H" #include "liquidMixtureProperties.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -218,7 +218,7 @@ public:
virtual void correctProfiles virtual void correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
) = 0; ) = 0;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -420,7 +420,7 @@ Foam::scalar Foam::multiHoleInjector::injectedMass
void Foam::multiHoleInjector::correctProfiles void Foam::multiHoleInjector::correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
) )
{ {

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -223,7 +223,7 @@ public:
void correctProfiles void correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
); );

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -409,7 +409,7 @@ Foam::scalar Foam::swirlInjector::injectedMass
void Foam::swirlInjector::correctProfiles void Foam::swirlInjector::correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
) )
{ {

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -232,7 +232,7 @@ public:
void correctProfiles void correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
); );

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -357,7 +357,7 @@ Foam::scalar Foam::unitInjector::injectedMass(const scalar t) const
void Foam::unitInjector::correctProfiles void Foam::unitInjector::correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
) )
{ {

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -212,7 +212,7 @@ public:
void correctProfiles void correctProfiles
( (
const liquidMixture& fuel, const liquidMixtureProperties& fuel,
const scalar referencePressure const scalar referencePressure
); );

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -99,7 +99,7 @@ bool Foam::parcel::move(spray& sDB, const scalar trackTime)
const polyMesh& mesh = cloud().pMesh(); const polyMesh& mesh = cloud().pMesh();
const polyBoundaryMesh& pbMesh = mesh.boundaryMesh(); const polyBoundaryMesh& pbMesh = mesh.boundaryMesh();
const liquidMixture& fuels = sDB.fuels(); const liquidMixtureProperties& fuels = sDB.fuels();
label Nf = fuels.components().size(); label Nf = fuels.components().size();
label Ns = sDB.composition().Y().size(); label Ns = sDB.composition().Y().size();
@ -333,7 +333,7 @@ void Foam::parcel::updateParcelProperties
const label faceI const label faceI
) )
{ {
const liquidMixture& fuels = sDB.fuels(); const liquidMixtureProperties& fuels = sDB.fuels();
label Nf = sDB.fuels().components().size(); label Nf = sDB.fuels().components().size();
label Ns = sDB.composition().Y().size(); label Ns = sDB.composition().Y().size();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -51,7 +51,7 @@ void Foam::parcel::setRelaxationTimes
const scalar dt const scalar dt
) )
{ {
const liquidMixture& fuels = sDB.fuels(); const liquidMixtureProperties& fuels = sDB.fuels();
scalar mCell = rho*sDB.mesh().V()[cell()]; scalar mCell = rho*sDB.mesh().V()[cell()];
scalarField mfg(Yfg*mCell); scalarField mfg(Yfg*mCell);

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -169,7 +169,7 @@ Foam::spray::spray
fuels_ fuels_
( (
liquidMixture::New liquidMixtureProperties::New
( (
mesh_.lookupObject<dictionary>("thermophysicalProperties") mesh_.lookupObject<dictionary>("thermophysicalProperties")
) )

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -32,13 +32,13 @@ Description
#ifndef spray_H #ifndef spray_H
#define spray_H #define spray_H
#include "autoPtr.H"
#include "parcel.H" #include "parcel.H"
#include "injector.H" #include "injector.H"
#include "IOPtrList.H" #include "IOPtrList.H"
#include "interpolation.H" #include "interpolation.H"
#include "liquid.H" #include "liquidProperties.H"
#include "autoPtr.H" #include "liquidMixtureProperties.H"
#include "liquidMixture.H"
#include "cachedRandom.H" #include "cachedRandom.H"
#include "thermoPhysicsTypes.H" #include "thermoPhysicsTypes.H"
@ -115,7 +115,7 @@ class spray
autoPtr<breakupModel> breakupModel_; autoPtr<breakupModel> breakupModel_;
autoPtr<collisionModel> collisionModel_; autoPtr<collisionModel> collisionModel_;
autoPtr<dispersionModel> dispersionModel_; autoPtr<dispersionModel> dispersionModel_;
autoPtr<liquidMixture> fuels_; autoPtr<liquidMixtureProperties> fuels_;
autoPtr<injectorModel> injectorModel_; autoPtr<injectorModel> injectorModel_;
@ -254,7 +254,7 @@ public:
inline label subCycles() const; inline label subCycles() const;
inline const vector& g() const; inline const vector& g() const;
inline const liquidMixture& fuels() const; inline const liquidMixtureProperties& fuels() const;
inline const PtrList<gasThermoPhysics>& gasProperties() const; inline const PtrList<gasThermoPhysics>& gasProperties() const;
inline const basicMultiComponentMixture& composition() const; inline const basicMultiComponentMixture& composition() const;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -236,7 +236,7 @@ inline const Foam::vector& Foam::spray::g() const
} }
inline const Foam::liquidMixture& Foam::spray::fuels() const inline const Foam::liquidMixtureProperties& Foam::spray::fuels() const
{ {
return fuels_(); return fuels_();
} }

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -74,7 +74,7 @@ void Foam::LISA::atomizeParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
const PtrList<volScalarField>& Y = spray_.composition().Y(); const PtrList<volScalarField>& Y = spray_.composition().Y();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,7 +97,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,7 +104,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const = 0; ) const = 0;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -73,7 +73,7 @@ void Foam::blobsSheetAtomization::atomizeParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
const PtrList<volScalarField>& Y = spray_.composition().Y(); const PtrList<volScalarField>& Y = spray_.composition().Y();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -92,7 +92,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -69,7 +69,7 @@ void Foam::noAtomization::atomizeParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
p.liquidCore() = 0.0; p.liquidCore() = 0.0;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -71,7 +71,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -79,7 +79,7 @@ void Foam::ETAB::breakupParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& Ug, const vector& Ug,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
scalar T = p.T(); scalar T = p.T();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -111,7 +111,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& Ug, const vector& Ug,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -98,7 +98,7 @@ void Foam::SHF::breakupParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
label cellI = p.cell(); label cellI = p.cell();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -133,7 +133,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -84,7 +84,7 @@ void Foam::TAB::breakupParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& Ug, const vector& Ug,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
scalar T = p.T(); scalar T = p.T();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -108,7 +108,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& Ug, const vector& Ug,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -78,7 +78,7 @@ void Foam::breakupModel::updateParcelProperties
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& Ug, const vector& Ug,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
if (includeOscillation_) if (includeOscillation_)

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -126,7 +126,7 @@ public:
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& Ug, const vector& Ug,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
virtual void breakupParcel virtual void breakupParcel
@ -134,7 +134,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const = 0; ) const = 0;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -69,7 +69,7 @@ void Foam::noBreakup::breakupParcel
parcel&, parcel&,
const scalar, const scalar,
const vector&, const vector&,
const liquidMixture& const liquidMixtureProperties&
) const ) const
{ {
// Do nothing // Do nothing

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -75,7 +75,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -73,7 +73,7 @@ void Foam::reitzDiwakar::breakupParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
const PtrList<volScalarField>& Y = spray_.composition().Y(); const PtrList<volScalarField>& Y = spray_.composition().Y();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -87,7 +87,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -75,7 +75,7 @@ void Foam::reitzKHRT::breakupParcel
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const ) const
{ {
label cellI = p.cell(); label cellI = p.cell();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -91,7 +91,7 @@ public:
parcel& parcel, parcel& parcel,
const scalar deltaT, const scalar deltaT,
const vector& vel, const vector& vel,
const liquidMixture& fuels const liquidMixtureProperties& fuels
) const; ) const;
}; };

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,7 +97,7 @@ Foam::scalar Foam::definedPressureSwirlInjector::d0
// modifications to take account of flash boiling.... // modifications to take account of flash boiling....
const liquidMixture& fuels = sm_.fuels(); const liquidMixtureProperties& fuels = sm_.fuels();
scalar chi = 0.0; scalar chi = 0.0;
scalar Tinj = it.T(t); scalar Tinj = it.T(t);
label Nf = fuels.components().size(); label Nf = fuels.components().size();

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -34,7 +34,7 @@ Description
#ifndef injectorModel_H #ifndef injectorModel_H
#define injectorModel_H #define injectorModel_H
#include "liquid.H" #include "liquidProperties.H"
#include "injector.H" #include "injector.H"
#include "PtrList.H" #include "PtrList.H"
#include "IOdictionary.H" #include "IOdictionary.H"

View File

@ -5,10 +5,10 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
@ -25,10 +25,10 @@ LIB_LIBS = \
-lmeshTools \ -lmeshTools \
-llagrangian \ -llagrangian \
-lpdf \ -lpdf \
-lliquids \ -lliquidProperties \
-lliquidMixture \ -lliquidMixtureProperties \
-lpointSolids \ -lsolidProperties \
-lpointSolidMixture \ -lsolidMixtureProperties \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \

View File

@ -49,6 +49,8 @@ void Foam::ReactingParcel<ParcelType>::setCellValues
); );
if (pc_ < td.cloud().constProps().pMin()) if (pc_ < td.cloud().constProps().pMin())
{
if (debug)
{ {
WarningIn WarningIn
( (
@ -60,6 +62,7 @@ void Foam::ReactingParcel<ParcelType>::setCellValues
")" ")"
) << "Limiting observed pressure in cell " << cellI << " to " ) << "Limiting observed pressure in cell " << cellI << " to "
<< td.cloud().constProps().pMin() << nl << endl; << td.cloud().constProps().pMin() << nl << endl;
}
pc_ = td.cloud().constProps().pMin(); pc_ = td.cloud().constProps().pMin();
} }
@ -86,42 +89,36 @@ void Foam::ReactingParcel<ParcelType>::cellValueSourceCorrection
return; return;
} }
scalar massCell = this->massCell(cellI); const scalar massCell = this->massCell(cellI);
const scalar V = td.cloud().pMesh().cellVolumes()[cellI]; this->rhoc_ += addedMass/td.cloud().pMesh().cellVolumes()[cellI];
this->rhoc_ += addedMass/V;
scalar massCellNew = massCell + addedMass; const scalar massCellNew = massCell + addedMass;
this->Uc_ += td.cloud().UTrans()[cellI]/massCellNew; this->Uc_ += td.cloud().UTrans()[cellI]/massCellNew;
scalar CpEff = 0.0; scalar CpEff = 0.0;
scalar CsEff = 0.0;
scalar Csc = 0.0;
if (addedMass > ROOTVSMALL) if (addedMass > ROOTVSMALL)
{ {
forAll(td.cloud().rhoTrans(), i) forAll(td.cloud().rhoTrans(), i)
{ {
scalar Y = td.cloud().rhoTrans(i)[cellI]/addedMass; scalar Y = td.cloud().rhoTrans(i)[cellI]/addedMass;
CpEff += Y*td.cloud().composition().carrier().Cp(i, this->Tc_); CpEff += Y*td.cloud().composition().carrier().Cp(i, this->Tc_);
scalar W = td.cloud().composition().carrier().W(i);
CsEff += td.cloud().rhoTrans(i)[cellI]/V*Y/W;
scalar Yc = td.cloud().composition().carrier().Y(i)[cellI];
Csc += massCell/V*Yc/W;
} }
} }
CsEff = (massCell*Csc + addedMass*CsEff)/massCellNew;
const scalar Cpc = td.CpInterp().psi()[cellI]; const scalar Cpc = td.CpInterp().psi()[cellI];
this->Cpc_ = (massCell*Cpc + addedMass*CpEff)/massCellNew; this->Cpc_ = (massCell*Cpc + addedMass*CpEff)/massCellNew;
this->Tc_ += td.cloud().hsTrans()[cellI]/(this->Cpc_*massCellNew); this->Tc_ += td.cloud().hsTrans()[cellI]/(this->Cpc_*massCellNew);
if (this->Tc_ < td.cloud().constProps().TMin()) if (debug && (this->Tc_ < td.cloud().constProps().TMin()))
{
if (debug)
{ {
WarningIn WarningIn
( (
"void Foam::ReactingParcel<ParcelType>::cellValueSourceCorrection" "void Foam::ReactingParcel<ParcelType>::"
"cellValueSourceCorrection"
"(" "("
"TrackData&, " "TrackData&, "
"const scalar, " "const scalar, "
@ -129,11 +126,13 @@ void Foam::ReactingParcel<ParcelType>::cellValueSourceCorrection
")" ")"
) << "Limiting observed temperature in cell " << cellI << " to " ) << "Limiting observed temperature in cell " << cellI << " to "
<< td.cloud().constProps().TMin() << nl << endl; << td.cloud().constProps().TMin() << nl << endl;
}
this->Tc_ = td.cloud().constProps().TMin(); this->Tc_ = td.cloud().constProps().TMin();
} }
this->pc_ = CsEff*specie::RR*this->Tc_; // constant pressure
// this->pc_ = this->pc_;
} }

View File

@ -48,6 +48,8 @@ void Foam::ThermoParcel<ParcelType>::setCellValues
Tc_ = td.TInterp().interpolate(this->position(), tetIs); Tc_ = td.TInterp().interpolate(this->position(), tetIs);
if (Tc_ < td.cloud().constProps().TMin()) if (Tc_ < td.cloud().constProps().TMin())
{
if (debug)
{ {
WarningIn WarningIn
( (
@ -59,6 +61,7 @@ void Foam::ThermoParcel<ParcelType>::setCellValues
")" ")"
) << "Limiting observed temperature in cell " << cellI << " to " ) << "Limiting observed temperature in cell " << cellI << " to "
<< td.cloud().constProps().TMin() << nl << endl; << td.cloud().constProps().TMin() << nl << endl;
}
Tc_ = td.cloud().constProps().TMin(); Tc_ = td.cloud().constProps().TMin();
} }
@ -80,6 +83,8 @@ void Foam::ThermoParcel<ParcelType>::cellValueSourceCorrection
Tc_ += td.cloud().hsTrans()[cellI]/(CpMean*this->massCell(cellI)); Tc_ += td.cloud().hsTrans()[cellI]/(CpMean*this->massCell(cellI));
if (Tc_ < td.cloud().constProps().TMin()) if (Tc_ < td.cloud().constProps().TMin())
{
if (debug)
{ {
WarningIn WarningIn
( (
@ -91,6 +96,7 @@ void Foam::ThermoParcel<ParcelType>::cellValueSourceCorrection
")" ")"
) << "Limiting observed temperature in cell " << cellI << " to " ) << "Limiting observed temperature in cell " << cellI << " to "
<< td.cloud().constProps().TMin() << nl << endl; << td.cloud().constProps().TMin() << nl << endl;
}
Tc_ = td.cloud().constProps().TMin(); Tc_ = td.cloud().constProps().TMin();
} }
@ -115,6 +121,8 @@ void Foam::ThermoParcel<ParcelType>::calcSurfaceValues
Ts = (2.0*T + Tc_)/3.0; Ts = (2.0*T + Tc_)/3.0;
if (Ts < td.cloud().constProps().TMin()) if (Ts < td.cloud().constProps().TMin())
{
if (debug)
{ {
WarningIn WarningIn
( (
@ -131,6 +139,7 @@ void Foam::ThermoParcel<ParcelType>::calcSurfaceValues
") const" ") const"
) << "Limiting parcel surface temperature to " ) << "Limiting parcel surface temperature to "
<< td.cloud().constProps().TMin() << nl << endl; << td.cloud().constProps().TMin() << nl << endl;
}
Ts = td.cloud().constProps().TMin(); Ts = td.cloud().constProps().TMin();
} }

View File

@ -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) 2008-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2008-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -93,14 +93,16 @@ Foam::CompositionModel<CloudType>::carrier() const
template<class CloudType> template<class CloudType>
const Foam::liquidMixture& Foam::CompositionModel<CloudType>::liquids() const const Foam::liquidMixtureProperties&
Foam::CompositionModel<CloudType>::liquids() const
{ {
return thermo_.liquids(); return thermo_.liquids();
} }
template<class CloudType> template<class CloudType>
const Foam::pointSolidMixture& Foam::CompositionModel<CloudType>::solids() const const Foam::solidMixtureProperties&
Foam::CompositionModel<CloudType>::solids() const
{ {
return thermo_.solids(); return thermo_.solids();
} }

View File

@ -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) 2008-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2008-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -140,10 +140,10 @@ public:
const basicMultiComponentMixture& carrier() const; const basicMultiComponentMixture& carrier() const;
//- Return the global (additional) liquids //- Return the global (additional) liquids
const liquidMixture& liquids() const; const liquidMixtureProperties& liquids() const;
//- Return the global (additional) solids //- Return the global (additional) solids
const pointSolidMixture& solids() const; const solidMixtureProperties& solids() const;
//- Return the list of phase properties //- Return the list of phase properties
const phasePropertiesList& phaseProps() const; const phasePropertiesList& phaseProps() const;

View File

@ -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) 2009-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2009-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -34,7 +34,7 @@ Description
#define LiquidEvaporation_H #define LiquidEvaporation_H
#include "PhaseChangeModel.H" #include "PhaseChangeModel.H"
#include "liquidMixture.H" #include "liquidMixtureProperties.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -54,7 +54,7 @@ protected:
// Protected data // Protected data
//- Global liquid properties data //- Global liquid properties data
const liquidMixture& liquids_; const liquidMixtureProperties& liquids_;
//- List of active liquid names //- List of active liquid names
List<word> activeLiquids_; List<word> activeLiquids_;

View File

@ -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) 2009-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2009-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -230,7 +230,7 @@ void Foam::ThermoSurfaceFilm<CloudType>::drySplashInteraction
Info<< "Parcel " << p.origId() << " drySplashInteraction" << endl; Info<< "Parcel " << p.origId() << " drySplashInteraction" << endl;
} }
const liquid& liq = thermo_.liquids().properties()[0]; const liquidProperties& liq = thermo_.liquids().properties()[0];
// Patch face velocity and normal // Patch face velocity and normal
const vector& Up = this->owner().U().boundaryField()[pp.index()][faceI]; const vector& Up = this->owner().U().boundaryField()[pp.index()][faceI];
@ -286,7 +286,7 @@ void Foam::ThermoSurfaceFilm<CloudType>::wetSplashInteraction
Info<< "Parcel " << p.origId() << " wetSplashInteraction" << endl; Info<< "Parcel " << p.origId() << " wetSplashInteraction" << endl;
} }
const liquid& liq = thermo_.liquids().properties()[0]; const liquidProperties& liq = thermo_.liquids().properties()[0];
// Patch face velocity and normal // Patch face velocity and normal
const vector& Up = this->owner().U().boundaryField()[pp.index()][faceI]; const vector& Up = this->owner().U().boundaryField()[pp.index()][faceI];

View File

@ -3,10 +3,10 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \

View File

@ -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) 2010-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -106,7 +106,7 @@ void Foam::surfaceFilmModels::standardPhaseChange::correct
// set local thermo properties // set local thermo properties
const SLGThermo& thermo = film.thermo(); const SLGThermo& thermo = film.thermo();
const label liqId = film.liquidId(); const label liqId = film.liquidId();
const liquid& liq = thermo.liquids().properties()[liqId]; const liquidProperties& liq = thermo.liquids().properties()[liqId];
const label vapId = thermo.carrierId(thermo.liquids().components()[liqId]); const label vapId = thermo.carrierId(thermo.liquids().components()[liqId]);
// retrieve fields from film model // retrieve fields from film model

View File

@ -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) 2009-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2009-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -81,7 +81,8 @@ void Foam::surfaceFilmModels::thermoSingleLayer::correctThermoFields()
} }
case tmSingleComponent: case tmSingleComponent:
{ {
const liquid& liq = thermo_.liquids().properties()[liquidId_]; const liquidProperties& liq =
thermo_.liquids().properties()[liquidId_];
forAll(rho_, cellI) forAll(rho_, cellI)
{ {
const scalar T = T_[cellI]; const scalar T = T_[cellI];

View File

@ -6,10 +6,10 @@ set -x
wmake $makeOption specie wmake $makeOption specie
wmake $makeOption solid wmake $makeOption solid
wmake $makeOption thermophysicalFunctions wmake $makeOption thermophysicalFunctions
wmake $makeOption liquids wmake $makeOption liquidProperties
wmake $makeOption liquidMixture wmake $makeOption liquidMixtureProperties
wmake $makeOption pointSolids wmake $makeOption solidProperties
wmake $makeOption pointSolidMixture wmake $makeOption solidMixtureProperties
wmake $makeOption basic wmake $makeOption basic
wmake $makeOption reactionThermo wmake $makeOption reactionThermo

View File

@ -2,10 +2,10 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pointSolidMixture/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude
LIB_LIBS = \ LIB_LIBS = \

View File

@ -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) 2010-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -61,7 +61,7 @@ Foam::SLGThermo::SLGThermo(const fvMesh& mesh, basicThermo& thermo)
if (thermo.found("liquids")) if (thermo.found("liquids"))
{ {
liquids_ = liquidMixture::New(thermo.subDict("liquids")); liquids_ = liquidMixtureProperties::New(thermo.subDict("liquids"));
Info<< " liquids - " << liquids_->components().size() Info<< " liquids - " << liquids_->components().size()
<< " components" << endl; << " components" << endl;
} }
@ -72,7 +72,7 @@ Foam::SLGThermo::SLGThermo(const fvMesh& mesh, basicThermo& thermo)
if (thermo.found("solids")) if (thermo.found("solids"))
{ {
solids_ = pointSolidMixture::New(thermo.subDict("solids")); solids_ = solidMixtureProperties::New(thermo.subDict("solids"));
Info<< " solids - " << solids_->components().size() Info<< " solids - " << solids_->components().size()
<< " components" << endl; << " components" << endl;
} }
@ -113,13 +113,14 @@ const Foam::basicMultiComponentMixture& Foam::SLGThermo::carrier() const
} }
const Foam::liquidMixture& Foam::SLGThermo::liquids() const const Foam::liquidMixtureProperties& Foam::SLGThermo::liquids() const
{ {
if (!liquids_.valid()) if (!liquids_.valid())
{ {
FatalErrorIn FatalErrorIn
( (
"const Foam::liquidMixture& Foam::SLGThermo::liquids() const" "const Foam::liquidMixtureProperties& "
"Foam::SLGThermo::liquids() const"
) << "liquids requested, but object is not allocated" ) << "liquids requested, but object is not allocated"
<< abort(FatalError); << abort(FatalError);
} }
@ -128,13 +129,14 @@ const Foam::liquidMixture& Foam::SLGThermo::liquids() const
} }
const Foam::pointSolidMixture& Foam::SLGThermo::solids() const const Foam::solidMixtureProperties& Foam::SLGThermo::solids() const
{ {
if (!solids_.valid()) if (!solids_.valid())
{ {
FatalErrorIn FatalErrorIn
( (
"const Foam::pointSolidtMixture& Foam::SLGThermo::solids() const" "const Foam::solidMixtureProperties& "
"Foam::SLGThermo::solids() const"
) << "solids requested, but object is not allocated" ) << "solids requested, but object is not allocated"
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -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) 2010-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -48,8 +48,8 @@ SourceFiles
#include "MeshObject.H" #include "MeshObject.H"
#include "basicThermo.H" #include "basicThermo.H"
#include "basicMultiComponentMixture.H" #include "basicMultiComponentMixture.H"
#include "liquidMixture.H" #include "liquidMixtureProperties.H"
#include "pointSolidMixture.H" #include "solidMixtureProperties.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -73,10 +73,10 @@ class SLGThermo
basicMultiComponentMixture* carrier_; basicMultiComponentMixture* carrier_;
//- Additional liquid properties data //- Additional liquid properties data
autoPtr<liquidMixture> liquids_; autoPtr<liquidMixtureProperties> liquids_;
//- Additional solid properties data //- Additional solid properties data
autoPtr<pointSolidMixture> solids_; autoPtr<solidMixtureProperties> solids_;
public: public:
@ -105,10 +105,10 @@ public:
const basicMultiComponentMixture& carrier() const; const basicMultiComponentMixture& carrier() const;
//- Return reference to the global (additional) liquids //- Return reference to the global (additional) liquids
const liquidMixture& liquids() const; const liquidMixtureProperties& liquids() const;
//- Return reference to the global (additional) solids //- Return reference to the global (additional) solids
const pointSolidMixture& solids() const; const solidMixtureProperties& solids() const;
// Index retrieval // Index retrieval

View File

@ -1,6 +0,0 @@
liquidMixture = liquidMixture
$(liquidMixture)/liquidMixture.C
$(liquidMixture)/liquidMixtureIO.C
LIB = $(FOAM_LIBBIN)/libliquidMixture

View File

@ -1,60 +0,0 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "liquidMixture.H"
//#include "IOstreams.H"
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
/*
Foam::Istream& Foam::operator>>(Foam::Istream& is, Foam::liquidMixture& l)
{
is >> l.x_;
// Check state of Istream
is.check
(
"Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::liquidMixture&)"
);
return is;
}
Foam::Ostream& Foam::operator<<(Foam::Ostream& os, const Foam::liquidMixture& l)
{
os << l.x_;
// Check state of Ostream
os.check
(
"Foam::Ostream& Foam::operator<<(Foam::Ostream&, "
"const Foam::liquidMixture&)"
);
return os;
}
*/
// ************************************************************************* //

View File

@ -0,0 +1,3 @@
liquidMixtureProperties/liquidMixtureProperties.C
LIB = $(FOAM_LIBBIN)/libliquidMixtureProperties

View File

@ -1,11 +1,11 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/liquidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/combustion/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/combustion/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lliquids \ -lliquidProperties \
-lthermophysicalFunctions -lthermophysicalFunctions

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -23,18 +23,18 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "liquidMixture.H" #include "liquidMixtureProperties.H"
#include "dictionary.H" #include "dictionary.H"
#include "specie.H" #include "specie.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
const Foam::scalar Foam::liquidMixture::TrMax = 0.999; const Foam::scalar Foam::liquidMixtureProperties::TrMax = 0.999;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::liquidMixture::liquidMixture Foam::liquidMixtureProperties::liquidMixtureProperties
( (
const dictionary& thermophysicalProperties const dictionary& thermophysicalProperties
) )
@ -57,12 +57,19 @@ Foam::liquidMixture::liquidMixture
forAll(components_, i) forAll(components_, i)
{ {
properties_.set(i, liquid::New(props.subDict(components_[i]))); properties_.set
(
i,
liquidProperties::New(props.subDict(components_[i]))
);
} }
} }
Foam::liquidMixture::liquidMixture(const liquidMixture& lm) Foam::liquidMixtureProperties::liquidMixtureProperties
(
const liquidMixtureProperties& lm
)
: :
components_(lm.components_), components_(lm.components_),
properties_(lm.properties_.size()) properties_(lm.properties_.size())
@ -76,18 +83,21 @@ Foam::liquidMixture::liquidMixture(const liquidMixture& lm)
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::liquidMixture> Foam::liquidMixture::New Foam::autoPtr<Foam::liquidMixtureProperties> Foam::liquidMixtureProperties::New
( (
const dictionary& thermophysicalProperties const dictionary& thermophysicalProperties
) )
{ {
return autoPtr<liquidMixture>(new liquidMixture(thermophysicalProperties)); return autoPtr<liquidMixtureProperties>
(
new liquidMixtureProperties(thermophysicalProperties)
);
} }
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::scalar Foam::liquidMixture::Tc(const scalarField& x) const Foam::scalar Foam::liquidMixtureProperties::Tc(const scalarField& x) const
{ {
scalar vTc = 0.0; scalar vTc = 0.0;
scalar vc = 0.0; scalar vc = 0.0;
@ -103,7 +113,7 @@ Foam::scalar Foam::liquidMixture::Tc(const scalarField& x) const
} }
Foam::scalar Foam::liquidMixture::Tpc(const scalarField& x) const Foam::scalar Foam::liquidMixtureProperties::Tpc(const scalarField& x) const
{ {
scalar Tpc = 0.0; scalar Tpc = 0.0;
forAll(properties_, i) forAll(properties_, i)
@ -115,7 +125,7 @@ Foam::scalar Foam::liquidMixture::Tpc(const scalarField& x) const
} }
Foam::scalar Foam::liquidMixture::Ppc(const scalarField& x) const Foam::scalar Foam::liquidMixtureProperties::Ppc(const scalarField& x) const
{ {
scalar Vc = 0.0; scalar Vc = 0.0;
scalar Zc = 0.0; scalar Zc = 0.0;
@ -129,7 +139,7 @@ Foam::scalar Foam::liquidMixture::Ppc(const scalarField& x) const
} }
Foam::scalar Foam::liquidMixture::omega(const scalarField& x) const Foam::scalar Foam::liquidMixtureProperties::omega(const scalarField& x) const
{ {
scalar omega = 0.0; scalar omega = 0.0;
forAll(properties_, i) forAll(properties_, i)
@ -141,7 +151,7 @@ Foam::scalar Foam::liquidMixture::omega(const scalarField& x) const
} }
Foam::scalarField Foam::liquidMixture::Xs Foam::scalarField Foam::liquidMixtureProperties::Xs
( (
const scalar p, const scalar p,
const scalar Tg, const scalar Tg,
@ -162,7 +172,7 @@ Foam::scalarField Foam::liquidMixture::Xs
} }
Foam::scalar Foam::liquidMixture::W(const scalarField& x) const Foam::scalar Foam::liquidMixtureProperties::W(const scalarField& x) const
{ {
scalar W = 0.0; scalar W = 0.0;
forAll(properties_, i) forAll(properties_, i)
@ -174,7 +184,7 @@ Foam::scalar Foam::liquidMixture::W(const scalarField& x) const
} }
Foam::scalarField Foam::liquidMixture::Y(const scalarField& X) const Foam::scalarField Foam::liquidMixtureProperties::Y(const scalarField& X) const
{ {
scalarField Y(X/W(X)); scalarField Y(X/W(X));
@ -187,7 +197,7 @@ Foam::scalarField Foam::liquidMixture::Y(const scalarField& X) const
} }
Foam::scalarField Foam::liquidMixture::X(const scalarField& Y) const Foam::scalarField Foam::liquidMixtureProperties::X(const scalarField& Y) const
{ {
scalarField X(Y.size()); scalarField X(Y.size());
scalar Winv = 0.0; scalar Winv = 0.0;
@ -202,7 +212,7 @@ Foam::scalarField Foam::liquidMixture::X(const scalarField& Y) const
} }
Foam::scalar Foam::liquidMixture::rho Foam::scalar Foam::liquidMixtureProperties::rho
( (
const scalar p, const scalar p,
const scalar T, const scalar T,
@ -225,7 +235,7 @@ Foam::scalar Foam::liquidMixture::rho
} }
Foam::scalar Foam::liquidMixture::pv Foam::scalar Foam::liquidMixtureProperties::pv
( (
const scalar p, const scalar p,
const scalar T, const scalar T,
@ -247,7 +257,7 @@ Foam::scalar Foam::liquidMixture::pv
} }
Foam::scalar Foam::liquidMixture::hl Foam::scalar Foam::liquidMixtureProperties::hl
( (
const scalar p, const scalar p,
const scalar T, const scalar T,
@ -269,7 +279,7 @@ Foam::scalar Foam::liquidMixture::hl
} }
Foam::scalar Foam::liquidMixture::Cp Foam::scalar Foam::liquidMixtureProperties::Cp
( (
const scalar p, const scalar p,
const scalar T, const scalar T,
@ -291,7 +301,7 @@ Foam::scalar Foam::liquidMixture::Cp
} }
Foam::scalar Foam::liquidMixture::sigma Foam::scalar Foam::liquidMixtureProperties::sigma
( (
const scalar p, const scalar p,
const scalar T, const scalar T,
@ -325,7 +335,7 @@ Foam::scalar Foam::liquidMixture::sigma
} }
Foam::scalar Foam::liquidMixture::mu Foam::scalar Foam::liquidMixtureProperties::mu
( (
const scalar p, const scalar p,
const scalar T, const scalar T,
@ -347,7 +357,7 @@ Foam::scalar Foam::liquidMixture::mu
} }
Foam::scalar Foam::liquidMixture::K Foam::scalar Foam::liquidMixtureProperties::K
( (
const scalar p, const scalar p,
const scalar T, const scalar T,
@ -396,7 +406,7 @@ Foam::scalar Foam::liquidMixture::K
} }
Foam::scalar Foam::liquidMixture::D Foam::scalar Foam::liquidMixtureProperties::D
( (
const scalar p, const scalar p,
const scalar T, const scalar T,

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class Class
Foam::liquidMixture Foam::liquidMixtureProperties
Description Description
A mixture of liquids. A mixture of liquids.
@ -40,7 +40,7 @@ Description
The @c liquidProperties sub-dictionary entry should be used when possible The @c liquidProperties sub-dictionary entry should be used when possible
to avoid conflicts with identically named gas-phase entries. to avoid conflicts with identically named gas-phase entries.
A simple example of a single-component liquidMixture: A simple example of a single-component liquidMixtureProperties:
@verbatim @verbatim
liquidComponents liquidComponents
( (
@ -81,13 +81,13 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef liquidMixture_H #ifndef liquidMixtureProperties_H
#define liquidMixture_H #define liquidMixtureProperties_H
#include "word.H" #include "word.H"
#include "scalarField.H" #include "scalarField.H"
#include "PtrList.H" #include "PtrList.H"
#include "liquid.H" #include "liquidProperties.H"
#include "autoPtr.H" #include "autoPtr.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -96,10 +96,10 @@ namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class liquidMixture Declaration Class liquidMixtureProperties Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class liquidMixture class liquidMixtureProperties
{ {
// Private data // Private data
@ -110,7 +110,7 @@ class liquidMixture
List<word> components_; List<word> components_;
//- The liquid properties //- The liquid properties
PtrList<liquid> properties_; PtrList<liquidProperties> properties_;
public: public:
@ -119,27 +119,30 @@ public:
// Constructors // Constructors
//- Construct from dictionary //- Construct from dictionary
liquidMixture(const dictionary& dict); liquidMixtureProperties(const dictionary& dict);
//- Construct copy //- Construct copy
liquidMixture(const liquidMixture& lm); liquidMixtureProperties(const liquidMixtureProperties& lm);
//- Construct and return a clone //- Construct and return a clone
virtual autoPtr<liquidMixture> clone() const virtual autoPtr<liquidMixtureProperties> clone() const
{ {
return autoPtr<liquidMixture>(new liquidMixture(*this)); return autoPtr<liquidMixtureProperties>
(
new liquidMixtureProperties(*this)
);
} }
//- Destructor //- Destructor
virtual ~liquidMixture() virtual ~liquidMixtureProperties()
{} {}
// Selectors // Selectors
//- Select construct from dictionary //- Select construct from dictionary
static autoPtr<liquidMixture> New(const dictionary&); static autoPtr<liquidMixtureProperties> New(const dictionary&);
// Member Functions // Member Functions
@ -151,7 +154,7 @@ public:
} }
//- Return the liquid properties //- Return the liquid properties
inline const PtrList<liquid>& properties() const inline const PtrList<liquidProperties>& properties() const
{ {
return properties_; return properties_;
} }

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,16 +31,16 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(Ar, 0); defineTypeNameAndDebug(Ar, 0);
addToRunTimeSelectionTable(liquid, Ar,); addToRunTimeSelectionTable(liquidProperties, Ar,);
addToRunTimeSelectionTable(liquid, Ar, Istream); addToRunTimeSelectionTable(liquidProperties, Ar, Istream);
addToRunTimeSelectionTable(liquid, Ar, dictionary); addToRunTimeSelectionTable(liquidProperties, Ar, dictionary);
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::Ar::Ar() Foam::Ar::Ar()
: :
liquid liquidProperties
( (
39.948, 39.948,
150.86, 150.86,
@ -87,7 +87,7 @@ Foam::Ar::Ar()
Foam::Ar::Ar Foam::Ar::Ar
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -103,7 +103,7 @@ Foam::Ar::Ar
const APIdiffCoefFunc& vapourDiffussivity const APIdiffCoefFunc& vapourDiffussivity
) )
: :
liquid(l), liquidProperties(l),
rho_(density), rho_(density),
pv_(vapourPressure), pv_(vapourPressure),
hl_(heatOfVapourisation), hl_(heatOfVapourisation),
@ -122,7 +122,7 @@ Foam::Ar::Ar
Foam::Ar::Ar(Istream& is) Foam::Ar::Ar(Istream& is)
: :
liquid(is), liquidProperties(is),
rho_(is), rho_(is),
pv_(is), pv_(is),
hl_(is), hl_(is),
@ -141,7 +141,7 @@ Foam::Ar::Ar(Istream& is)
Foam::Ar::Ar(const dictionary& dict) Foam::Ar::Ar(const dictionary& dict)
: :
liquid(dict), liquidProperties(dict),
rho_(dict.subDict("rho")), rho_(dict.subDict("rho")),
pv_(dict.subDict("pv")), pv_(dict.subDict("pv")),
hl_(dict.subDict("hl")), hl_(dict.subDict("hl")),
@ -160,7 +160,7 @@ Foam::Ar::Ar(const dictionary& dict)
Foam::Ar::Ar(const Ar& liq) Foam::Ar::Ar(const Ar& liq)
: :
liquid(liq), liquidProperties(liq),
rho_(liq.rho_), rho_(liq.rho_),
pv_(liq.pv_), pv_(liq.pv_),
hl_(liq.hl_), hl_(liq.hl_),

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ SourceFiles
#ifndef Ar_H #ifndef Ar_H
#define Ar_H #define Ar_H
#include "liquid.H" #include "liquidProperties.H"
#include "NSRDSfunc0.H" #include "NSRDSfunc0.H"
#include "NSRDSfunc1.H" #include "NSRDSfunc1.H"
#include "NSRDSfunc2.H" #include "NSRDSfunc2.H"
@ -58,7 +58,7 @@ namespace Foam
class Ar class Ar
: :
public liquid public liquidProperties
{ {
// Private data // Private data
@ -91,7 +91,7 @@ public:
//- Construct from components //- Construct from components
Ar Ar
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -117,9 +117,9 @@ public:
Ar(const Ar& liq); Ar(const Ar& liq);
//- Construct and return clone //- Construct and return clone
virtual autoPtr<liquid> clone() const virtual autoPtr<liquidProperties> clone() const
{ {
return autoPtr<liquid>(new Ar(*this)); return autoPtr<liquidProperties>(new Ar(*this));
} }
@ -173,7 +173,7 @@ public:
//- Write the function coefficients //- Write the function coefficients
void writeData(Ostream& os) const void writeData(Ostream& os) const
{ {
liquid::writeData(os); os << nl; liquidProperties::writeData(os); os << nl;
rho_.writeData(os); os << nl; rho_.writeData(os); os << nl;
pv_.writeData(os); os << nl; pv_.writeData(os); os << nl;
hl_.writeData(os); os << nl; hl_.writeData(os); os << nl;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,16 +31,16 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(C10H22, 0); defineTypeNameAndDebug(C10H22, 0);
addToRunTimeSelectionTable(liquid, C10H22,); addToRunTimeSelectionTable(liquidProperties, C10H22,);
addToRunTimeSelectionTable(liquid, C10H22, Istream); addToRunTimeSelectionTable(liquidProperties, C10H22, Istream);
addToRunTimeSelectionTable(liquid, C10H22, dictionary); addToRunTimeSelectionTable(liquidProperties, C10H22, dictionary);
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::C10H22::C10H22() Foam::C10H22::C10H22()
: :
liquid liquidProperties
( (
142.285, 142.285,
617.70, 617.70,
@ -95,7 +95,7 @@ Foam::C10H22::C10H22()
Foam::C10H22::C10H22 Foam::C10H22::C10H22
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -111,7 +111,7 @@ Foam::C10H22::C10H22
const APIdiffCoefFunc& vapourDiffussivity const APIdiffCoefFunc& vapourDiffussivity
) )
: :
liquid(l), liquidProperties(l),
rho_(density), rho_(density),
pv_(vapourPressure), pv_(vapourPressure),
hl_(heatOfVapourisation), hl_(heatOfVapourisation),
@ -130,7 +130,7 @@ Foam::C10H22::C10H22
Foam::C10H22::C10H22(Istream& is) Foam::C10H22::C10H22(Istream& is)
: :
liquid(is), liquidProperties(is),
rho_(is), rho_(is),
pv_(is), pv_(is),
hl_(is), hl_(is),
@ -149,7 +149,7 @@ Foam::C10H22::C10H22(Istream& is)
Foam::C10H22::C10H22(const dictionary& dict) Foam::C10H22::C10H22(const dictionary& dict)
: :
liquid(dict), liquidProperties(dict),
rho_(dict.subDict("rho")), rho_(dict.subDict("rho")),
pv_(dict.subDict("pv")), pv_(dict.subDict("pv")),
hl_(dict.subDict("hl")), hl_(dict.subDict("hl")),
@ -168,7 +168,7 @@ Foam::C10H22::C10H22(const dictionary& dict)
Foam::C10H22::C10H22(const C10H22& liq) Foam::C10H22::C10H22(const C10H22& liq)
: :
liquid(liq), liquidProperties(liq),
rho_(liq.rho_), rho_(liq.rho_),
pv_(liq.pv_), pv_(liq.pv_),
hl_(liq.hl_), hl_(liq.hl_),

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ SourceFiles
#ifndef C10H22_H #ifndef C10H22_H
#define C10H22_H #define C10H22_H
#include "liquid.H" #include "liquidProperties.H"
#include "NSRDSfunc0.H" #include "NSRDSfunc0.H"
#include "NSRDSfunc1.H" #include "NSRDSfunc1.H"
#include "NSRDSfunc2.H" #include "NSRDSfunc2.H"
@ -58,7 +58,7 @@ namespace Foam
class C10H22 class C10H22
: :
public liquid public liquidProperties
{ {
// Private data // Private data
@ -91,7 +91,7 @@ public:
//- Construct from components //- Construct from components
C10H22 C10H22
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -117,9 +117,9 @@ public:
C10H22(const C10H22& liq); C10H22(const C10H22& liq);
//- Construct and return clone //- Construct and return clone
virtual autoPtr<liquid> clone() const virtual autoPtr<liquidProperties> clone() const
{ {
return autoPtr<liquid>(new C10H22(*this)); return autoPtr<liquidProperties>(new C10H22(*this));
} }
@ -173,7 +173,7 @@ public:
//- Write the function coefficients //- Write the function coefficients
void writeData(Ostream& os) const void writeData(Ostream& os) const
{ {
liquid::writeData(os); os << nl; liquidProperties::writeData(os); os << nl;
rho_.writeData(os); os << nl; rho_.writeData(os); os << nl;
pv_.writeData(os); os << nl; pv_.writeData(os); os << nl;
hl_.writeData(os); os << nl; hl_.writeData(os); os << nl;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,16 +31,16 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(C12H26, 0); defineTypeNameAndDebug(C12H26, 0);
addToRunTimeSelectionTable(liquid, C12H26,); addToRunTimeSelectionTable(liquidProperties, C12H26,);
addToRunTimeSelectionTable(liquid, C12H26, Istream); addToRunTimeSelectionTable(liquidProperties, C12H26, Istream);
addToRunTimeSelectionTable(liquid, C12H26, dictionary); addToRunTimeSelectionTable(liquidProperties, C12H26, dictionary);
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::C12H26::C12H26() Foam::C12H26::C12H26()
: :
liquid liquidProperties
( (
170.338, 170.338,
658.0, 658.0,
@ -87,7 +87,7 @@ Foam::C12H26::C12H26()
Foam::C12H26::C12H26 Foam::C12H26::C12H26
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -103,7 +103,7 @@ Foam::C12H26::C12H26
const APIdiffCoefFunc& vapourDiffussivity const APIdiffCoefFunc& vapourDiffussivity
) )
: :
liquid(l), liquidProperties(l),
rho_(density), rho_(density),
pv_(vapourPressure), pv_(vapourPressure),
hl_(heatOfVapourisation), hl_(heatOfVapourisation),
@ -122,7 +122,7 @@ Foam::C12H26::C12H26
Foam::C12H26::C12H26(Istream& is) Foam::C12H26::C12H26(Istream& is)
: :
liquid(is), liquidProperties(is),
rho_(is), rho_(is),
pv_(is), pv_(is),
hl_(is), hl_(is),
@ -141,7 +141,7 @@ Foam::C12H26::C12H26(Istream& is)
Foam::C12H26::C12H26(const dictionary& dict) Foam::C12H26::C12H26(const dictionary& dict)
: :
liquid(dict), liquidProperties(dict),
rho_(dict.subDict("rho")), rho_(dict.subDict("rho")),
pv_(dict.subDict("pv")), pv_(dict.subDict("pv")),
hl_(dict.subDict("hl")), hl_(dict.subDict("hl")),
@ -160,7 +160,7 @@ Foam::C12H26::C12H26(const dictionary& dict)
Foam::C12H26::C12H26(const C12H26& liq) Foam::C12H26::C12H26(const C12H26& liq)
: :
liquid(liq), liquidProperties(liq),
rho_(liq.rho_), rho_(liq.rho_),
pv_(liq.pv_), pv_(liq.pv_),
hl_(liq.hl_), hl_(liq.hl_),

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ SourceFiles
#ifndef C12H26_H #ifndef C12H26_H
#define C12H26_H #define C12H26_H
#include "liquid.H" #include "liquidProperties.H"
#include "NSRDSfunc0.H" #include "NSRDSfunc0.H"
#include "NSRDSfunc1.H" #include "NSRDSfunc1.H"
#include "NSRDSfunc2.H" #include "NSRDSfunc2.H"
@ -58,7 +58,7 @@ namespace Foam
class C12H26 class C12H26
: :
public liquid public liquidProperties
{ {
// Private data // Private data
@ -91,7 +91,7 @@ public:
//- Construct from conponents //- Construct from conponents
C12H26 C12H26
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -117,9 +117,9 @@ public:
C12H26(const C12H26& liq); C12H26(const C12H26& liq);
//- Construct and return clone //- Construct and return clone
virtual autoPtr<liquid> clone() const virtual autoPtr<liquidProperties> clone() const
{ {
return autoPtr<liquid>(new C12H26(*this)); return autoPtr<liquidProperties>(new C12H26(*this));
} }
@ -173,7 +173,7 @@ public:
//- Write the function coefficients //- Write the function coefficients
void writeData(Ostream& os) const void writeData(Ostream& os) const
{ {
liquid::writeData(os); os << nl; liquidProperties::writeData(os); os << nl;
rho_.writeData(os); os << nl; rho_.writeData(os); os << nl;
pv_.writeData(os); os << nl; pv_.writeData(os); os << nl;
hl_.writeData(os); os << nl; hl_.writeData(os); os << nl;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,16 +31,16 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(C13H28, 0); defineTypeNameAndDebug(C13H28, 0);
addToRunTimeSelectionTable(liquid, C13H28,); addToRunTimeSelectionTable(liquidProperties, C13H28,);
addToRunTimeSelectionTable(liquid, C13H28, Istream); addToRunTimeSelectionTable(liquidProperties, C13H28, Istream);
addToRunTimeSelectionTable(liquid, C13H28, dictionary); addToRunTimeSelectionTable(liquidProperties, C13H28, dictionary);
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::C13H28::C13H28() Foam::C13H28::C13H28()
: :
liquid liquidProperties
( (
184.365, 184.365,
675.80, 675.80,
@ -95,7 +95,7 @@ Foam::C13H28::C13H28()
Foam::C13H28::C13H28 Foam::C13H28::C13H28
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -111,7 +111,7 @@ Foam::C13H28::C13H28
const APIdiffCoefFunc& vapourDiffussivity const APIdiffCoefFunc& vapourDiffussivity
) )
: :
liquid(l), liquidProperties(l),
rho_(density), rho_(density),
pv_(vapourPressure), pv_(vapourPressure),
hl_(heatOfVapourisation), hl_(heatOfVapourisation),
@ -130,7 +130,7 @@ Foam::C13H28::C13H28
Foam::C13H28::C13H28(Istream& is) Foam::C13H28::C13H28(Istream& is)
: :
liquid(is), liquidProperties(is),
rho_(is), rho_(is),
pv_(is), pv_(is),
hl_(is), hl_(is),
@ -149,7 +149,7 @@ Foam::C13H28::C13H28(Istream& is)
Foam::C13H28::C13H28(const dictionary& dict) Foam::C13H28::C13H28(const dictionary& dict)
: :
liquid(dict), liquidProperties(dict),
rho_(dict.subDict("rho")), rho_(dict.subDict("rho")),
pv_(dict.subDict("pv")), pv_(dict.subDict("pv")),
hl_(dict.subDict("hl")), hl_(dict.subDict("hl")),
@ -168,7 +168,7 @@ Foam::C13H28::C13H28(const dictionary& dict)
Foam::C13H28::C13H28(const C13H28& liq) Foam::C13H28::C13H28(const C13H28& liq)
: :
liquid(liq), liquidProperties(liq),
rho_(liq.rho_), rho_(liq.rho_),
pv_(liq.pv_), pv_(liq.pv_),
hl_(liq.hl_), hl_(liq.hl_),

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ SourceFiles
#ifndef C13H28_H #ifndef C13H28_H
#define C13H28_H #define C13H28_H
#include "liquid.H" #include "liquidProperties.H"
#include "NSRDSfunc0.H" #include "NSRDSfunc0.H"
#include "NSRDSfunc1.H" #include "NSRDSfunc1.H"
#include "NSRDSfunc2.H" #include "NSRDSfunc2.H"
@ -58,7 +58,7 @@ namespace Foam
class C13H28 class C13H28
: :
public liquid public liquidProperties
{ {
// Private data // Private data
@ -91,7 +91,7 @@ public:
//- Construct from components //- Construct from components
C13H28 C13H28
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -117,9 +117,9 @@ public:
C13H28(const C13H28& liq); C13H28(const C13H28& liq);
//- Construct and return clone //- Construct and return clone
virtual autoPtr<liquid> clone() const virtual autoPtr<liquidProperties> clone() const
{ {
return autoPtr<liquid>(new C13H28(*this)); return autoPtr<liquidProperties>(new C13H28(*this));
} }
@ -173,7 +173,7 @@ public:
//- Write the function coefficients //- Write the function coefficients
void writeData(Ostream& os) const void writeData(Ostream& os) const
{ {
liquid::writeData(os); os << nl; liquidProperties::writeData(os); os << nl;
rho_.writeData(os); os << nl; rho_.writeData(os); os << nl;
pv_.writeData(os); os << nl; pv_.writeData(os); os << nl;
hl_.writeData(os); os << nl; hl_.writeData(os); os << nl;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,16 +31,16 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(C14H30, 0); defineTypeNameAndDebug(C14H30, 0);
addToRunTimeSelectionTable(liquid, C14H30,); addToRunTimeSelectionTable(liquidProperties, C14H30,);
addToRunTimeSelectionTable(liquid, C14H30, Istream); addToRunTimeSelectionTable(liquidProperties, C14H30, Istream);
addToRunTimeSelectionTable(liquid, C14H30, dictionary); addToRunTimeSelectionTable(liquidProperties, C14H30, dictionary);
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::C14H30::C14H30() Foam::C14H30::C14H30()
: :
liquid liquidProperties
( (
198.392, 198.392,
692.40, 692.40,
@ -95,7 +95,7 @@ Foam::C14H30::C14H30()
Foam::C14H30::C14H30 Foam::C14H30::C14H30
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -111,7 +111,7 @@ Foam::C14H30::C14H30
const APIdiffCoefFunc& vapourDiffussivity const APIdiffCoefFunc& vapourDiffussivity
) )
: :
liquid(l), liquidProperties(l),
rho_(density), rho_(density),
pv_(vapourPressure), pv_(vapourPressure),
hl_(heatOfVapourisation), hl_(heatOfVapourisation),
@ -130,7 +130,7 @@ Foam::C14H30::C14H30
Foam::C14H30::C14H30(Istream& is) Foam::C14H30::C14H30(Istream& is)
: :
liquid(is), liquidProperties(is),
rho_(is), rho_(is),
pv_(is), pv_(is),
hl_(is), hl_(is),
@ -149,7 +149,7 @@ Foam::C14H30::C14H30(Istream& is)
Foam::C14H30::C14H30(const dictionary& dict) Foam::C14H30::C14H30(const dictionary& dict)
: :
liquid(dict), liquidProperties(dict),
rho_(dict.subDict("rho")), rho_(dict.subDict("rho")),
pv_(dict.subDict("pv")), pv_(dict.subDict("pv")),
hl_(dict.subDict("hl")), hl_(dict.subDict("hl")),
@ -168,7 +168,7 @@ Foam::C14H30::C14H30(const dictionary& dict)
Foam::C14H30::C14H30(const C14H30& liq) Foam::C14H30::C14H30(const C14H30& liq)
: :
liquid(liq), liquidProperties(liq),
rho_(liq.rho_), rho_(liq.rho_),
pv_(liq.pv_), pv_(liq.pv_),
hl_(liq.hl_), hl_(liq.hl_),

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ SourceFiles
#ifndef C14H30_H #ifndef C14H30_H
#define C14H30_H #define C14H30_H
#include "liquid.H" #include "liquidProperties.H"
#include "NSRDSfunc0.H" #include "NSRDSfunc0.H"
#include "NSRDSfunc1.H" #include "NSRDSfunc1.H"
#include "NSRDSfunc2.H" #include "NSRDSfunc2.H"
@ -58,7 +58,7 @@ namespace Foam
class C14H30 class C14H30
: :
public liquid public liquidProperties
{ {
// Private data // Private data
@ -91,7 +91,7 @@ public:
//- Construct from components //- Construct from components
C14H30 C14H30
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -117,9 +117,9 @@ public:
C14H30(const C14H30& liq); C14H30(const C14H30& liq);
//- Construct and return clone //- Construct and return clone
virtual autoPtr<liquid> clone() const virtual autoPtr<liquidProperties> clone() const
{ {
return autoPtr<liquid>(new C14H30(*this)); return autoPtr<liquidProperties>(new C14H30(*this));
} }
@ -173,7 +173,7 @@ public:
//- Write the function coefficients //- Write the function coefficients
void writeData(Ostream& os) const void writeData(Ostream& os) const
{ {
liquid::writeData(os); os << nl; liquidProperties::writeData(os); os << nl;
rho_.writeData(os); os << nl; rho_.writeData(os); os << nl;
pv_.writeData(os); os << nl; pv_.writeData(os); os << nl;
hl_.writeData(os); os << nl; hl_.writeData(os); os << nl;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,16 +31,16 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(C16H34, 0); defineTypeNameAndDebug(C16H34, 0);
addToRunTimeSelectionTable(liquid, C16H34,); addToRunTimeSelectionTable(liquidProperties, C16H34,);
addToRunTimeSelectionTable(liquid, C16H34, Istream); addToRunTimeSelectionTable(liquidProperties, C16H34, Istream);
addToRunTimeSelectionTable(liquid, C16H34, dictionary); addToRunTimeSelectionTable(liquidProperties, C16H34, dictionary);
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::C16H34::C16H34() Foam::C16H34::C16H34()
: :
liquid liquidProperties
( (
226.446, 226.446,
720.60, 720.60,
@ -95,7 +95,7 @@ Foam::C16H34::C16H34()
Foam::C16H34::C16H34 Foam::C16H34::C16H34
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -111,7 +111,7 @@ Foam::C16H34::C16H34
const APIdiffCoefFunc& vapourDiffussivity const APIdiffCoefFunc& vapourDiffussivity
) )
: :
liquid(l), liquidProperties(l),
rho_(density), rho_(density),
pv_(vapourPressure), pv_(vapourPressure),
hl_(heatOfVapourisation), hl_(heatOfVapourisation),
@ -130,7 +130,7 @@ Foam::C16H34::C16H34
Foam::C16H34::C16H34(Istream& is) Foam::C16H34::C16H34(Istream& is)
: :
liquid(is), liquidProperties(is),
rho_(is), rho_(is),
pv_(is), pv_(is),
hl_(is), hl_(is),
@ -149,7 +149,7 @@ Foam::C16H34::C16H34(Istream& is)
Foam::C16H34::C16H34(const dictionary& dict) Foam::C16H34::C16H34(const dictionary& dict)
: :
liquid(dict), liquidProperties(dict),
rho_(dict.subDict("rho")), rho_(dict.subDict("rho")),
pv_(dict.subDict("pv")), pv_(dict.subDict("pv")),
hl_(dict.subDict("hl")), hl_(dict.subDict("hl")),
@ -168,7 +168,7 @@ Foam::C16H34::C16H34(const dictionary& dict)
Foam::C16H34::C16H34(const C16H34& liq) Foam::C16H34::C16H34(const C16H34& liq)
: :
liquid(liq), liquidProperties(liq),
rho_(liq.rho_), rho_(liq.rho_),
pv_(liq.pv_), pv_(liq.pv_),
hl_(liq.hl_), hl_(liq.hl_),

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ SourceFiles
#ifndef C16H34_H #ifndef C16H34_H
#define C16H34_H #define C16H34_H
#include "liquid.H" #include "liquidProperties.H"
#include "NSRDSfunc0.H" #include "NSRDSfunc0.H"
#include "NSRDSfunc1.H" #include "NSRDSfunc1.H"
#include "NSRDSfunc2.H" #include "NSRDSfunc2.H"
@ -58,7 +58,7 @@ namespace Foam
class C16H34 class C16H34
: :
public liquid public liquidProperties
{ {
// Private data // Private data
@ -91,7 +91,7 @@ public:
//- Construct from components //- Construct from components
C16H34 C16H34
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -117,9 +117,9 @@ public:
C16H34(const C16H34& liq); C16H34(const C16H34& liq);
//- Construct and return clone //- Construct and return clone
virtual autoPtr<liquid> clone() const virtual autoPtr<liquidProperties> clone() const
{ {
return autoPtr<liquid>(new C16H34(*this)); return autoPtr<liquidProperties>(new C16H34(*this));
} }
@ -173,7 +173,7 @@ public:
//- Write the function coefficients //- Write the function coefficients
void writeData(Ostream& os) const void writeData(Ostream& os) const
{ {
liquid::writeData(os); os << nl; liquidProperties::writeData(os); os << nl;
rho_.writeData(os); os << nl; rho_.writeData(os); os << nl;
pv_.writeData(os); os << nl; pv_.writeData(os); os << nl;
hl_.writeData(os); os << nl; hl_.writeData(os); os << nl;

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,16 +31,16 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(C2H5OH, 0); defineTypeNameAndDebug(C2H5OH, 0);
addToRunTimeSelectionTable(liquid, C2H5OH,); addToRunTimeSelectionTable(liquidProperties, C2H5OH,);
addToRunTimeSelectionTable(liquid, C2H5OH, Istream); addToRunTimeSelectionTable(liquidProperties, C2H5OH, Istream);
addToRunTimeSelectionTable(liquid, C2H5OH, dictionary); addToRunTimeSelectionTable(liquidProperties, C2H5OH, dictionary);
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::C2H5OH::C2H5OH() Foam::C2H5OH::C2H5OH()
: :
liquid liquidProperties
( (
46.069, 46.069,
516.25, 516.25,
@ -95,7 +95,7 @@ Foam::C2H5OH::C2H5OH()
Foam::C2H5OH::C2H5OH Foam::C2H5OH::C2H5OH
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -111,7 +111,7 @@ Foam::C2H5OH::C2H5OH
const APIdiffCoefFunc& vapourDiffussivity const APIdiffCoefFunc& vapourDiffussivity
) )
: :
liquid(l), liquidProperties(l),
rho_(density), rho_(density),
pv_(vapourPressure), pv_(vapourPressure),
hl_(heatOfVapourisation), hl_(heatOfVapourisation),
@ -130,7 +130,7 @@ Foam::C2H5OH::C2H5OH
Foam::C2H5OH::C2H5OH(Istream& is) Foam::C2H5OH::C2H5OH(Istream& is)
: :
liquid(is), liquidProperties(is),
rho_(is), rho_(is),
pv_(is), pv_(is),
hl_(is), hl_(is),
@ -149,7 +149,7 @@ Foam::C2H5OH::C2H5OH(Istream& is)
Foam::C2H5OH::C2H5OH(const dictionary& dict) Foam::C2H5OH::C2H5OH(const dictionary& dict)
: :
liquid(dict), liquidProperties(dict),
rho_(dict.subDict("rho")), rho_(dict.subDict("rho")),
pv_(dict.subDict("pv")), pv_(dict.subDict("pv")),
hl_(dict.subDict("hl")), hl_(dict.subDict("hl")),
@ -168,7 +168,7 @@ Foam::C2H5OH::C2H5OH(const dictionary& dict)
Foam::C2H5OH::C2H5OH(const C2H5OH& liq) Foam::C2H5OH::C2H5OH(const C2H5OH& liq)
: :
liquid(liq), liquidProperties(liq),
rho_(liq.rho_), rho_(liq.rho_),
pv_(liq.pv_), pv_(liq.pv_),
hl_(liq.hl_), hl_(liq.hl_),

View File

@ -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) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ SourceFiles
#ifndef C2H5OH_H #ifndef C2H5OH_H
#define C2H5OH_H #define C2H5OH_H
#include "liquid.H" #include "liquidProperties.H"
#include "NSRDSfunc0.H" #include "NSRDSfunc0.H"
#include "NSRDSfunc1.H" #include "NSRDSfunc1.H"
#include "NSRDSfunc2.H" #include "NSRDSfunc2.H"
@ -58,7 +58,7 @@ namespace Foam
class C2H5OH class C2H5OH
: :
public liquid public liquidProperties
{ {
// Private data // Private data
@ -91,7 +91,7 @@ public:
//- Construct from components //- Construct from components
C2H5OH C2H5OH
( (
const liquid& l, const liquidProperties& l,
const NSRDSfunc5& density, const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure, const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation, const NSRDSfunc6& heatOfVapourisation,
@ -117,9 +117,9 @@ public:
C2H5OH(const C2H5OH& liq); C2H5OH(const C2H5OH& liq);
//- Construct and return clone //- Construct and return clone
virtual autoPtr<liquid> clone() const virtual autoPtr<liquidProperties> clone() const
{ {
return autoPtr<liquid>(new C2H5OH(*this)); return autoPtr<liquidProperties>(new C2H5OH(*this));
} }
@ -173,7 +173,7 @@ public:
//- Write the function coefficients //- Write the function coefficients
void writeData(Ostream& os) const void writeData(Ostream& os) const
{ {
liquid::writeData(os); os << nl; liquidProperties::writeData(os); os << nl;
rho_.writeData(os); os << nl; rho_.writeData(os); os << nl;
pv_.writeData(os); os << nl; pv_.writeData(os); os << nl;
hl_.writeData(os); os << nl; hl_.writeData(os); os << nl;

Some files were not shown because too many files have changed in this diff Show More