DEV: Fiel for enthalpyJump

This commit is contained in:
sergio
2012-03-16 09:28:49 +00:00
parent dcb26898a5
commit dcef9a2843
5 changed files with 21 additions and 7 deletions

View File

@ -10,4 +10,6 @@ EXE_LIBS = \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lfiniteVolume -lfiniteVolume \
-L$(FOAM_USER_LIBBIN) \
-lFvPatchScalarFieldEnthalpyJump

View File

@ -65,8 +65,10 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
|| actualPatchType != p.type() || actualPatchType != p.type()
) )
{ {
Info << actualPatchType << endl;
Info << p.type() << endl;
typename patchConstructorTable::iterator patchTypeCstrIter = typename patchConstructorTable::iterator patchTypeCstrIter =
patchConstructorTablePtr_->find(p.type()); patchConstructorTablePtr_->find(actualPatchType);//p.type());
if (patchTypeCstrIter != patchConstructorTablePtr_->end()) if (patchTypeCstrIter != patchConstructorTablePtr_->end())
{ {

View File

@ -1,6 +1,8 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I/home/tom3/sergio/development/chtMultiRegionCoupledFoam/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lfiniteVolume -lfiniteVolume \
-L$(FOAM_USER_LIBBIN)/FvPatchScalarFieldEnthalpyJump

View File

@ -33,6 +33,7 @@ License
#include "fixedInternalEnergyFvPatchScalarField.H" #include "fixedInternalEnergyFvPatchScalarField.H"
#include "gradientInternalEnergyFvPatchScalarField.H" #include "gradientInternalEnergyFvPatchScalarField.H"
#include "mixedInternalEnergyFvPatchScalarField.H" #include "mixedInternalEnergyFvPatchScalarField.H"
#include "enthalpyJumpFvPatchScalarField.H"
/* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
@ -64,10 +65,14 @@ Foam::wordList Foam::basicThermo::hBoundaryTypes()
{ {
hbt[patchi] = gradientEnthalpyFvPatchScalarField::typeName; hbt[patchi] = gradientEnthalpyFvPatchScalarField::typeName;
} }
else if (isA<mixedFvPatchScalarField>(tbf[patchi])) else if(isA<mixedFvPatchScalarField>(tbf[patchi]))
{ {
hbt[patchi] = mixedEnthalpyFvPatchScalarField::typeName; hbt[patchi] = mixedEnthalpyFvPatchScalarField::typeName;
} }
else if (isA<enthalpyJumpFvPatchScalarField>(tbf[patchi]))
{
hbt[patchi] = enthalpyJumpFvPatchScalarField::typeName;
}
} }
return hbt; return hbt;
@ -85,7 +90,7 @@ void Foam::basicThermo::hBoundaryCorrection(volScalarField& h)
refCast<gradientEnthalpyFvPatchScalarField>(hbf[patchi]).gradient() refCast<gradientEnthalpyFvPatchScalarField>(hbf[patchi]).gradient()
= hbf[patchi].fvPatchField::snGrad(); = hbf[patchi].fvPatchField::snGrad();
} }
else if (isA<mixedEnthalpyFvPatchScalarField>(hbf[patchi])) else if(isA<mixedEnthalpyFvPatchScalarField>(hbf[patchi]))
{ {
refCast<mixedEnthalpyFvPatchScalarField>(hbf[patchi]).refGrad() refCast<mixedEnthalpyFvPatchScalarField>(hbf[patchi]).refGrad()
= hbf[patchi].fvPatchField::snGrad(); = hbf[patchi].fvPatchField::snGrad();

View File

@ -118,9 +118,11 @@ Foam::hRhoThermo<MixtureType>::hRhoThermo(const fvMesh& mesh)
), ),
mesh, mesh,
dimEnergy/dimMass, dimEnergy/dimMass,
this->hBoundaryTypes(),
this->hBoundaryTypes() this->hBoundaryTypes()
) )
{ {
Info << "hBounda" << this->hBoundaryTypes() << endl;
scalarField& hCells = h_.internalField(); scalarField& hCells = h_.internalField();
const scalarField& TCells = this->T_.internalField(); const scalarField& TCells = this->T_.internalField();
@ -136,8 +138,9 @@ Foam::hRhoThermo<MixtureType>::hRhoThermo(const fvMesh& mesh)
} }
hBoundaryCorrection(h_); hBoundaryCorrection(h_);
Info << h_ << endl;
calculate(); calculate();
} }