ENH: correcting new thermo type for reactingParcelFoam tutorials.

Correcting thermoSingleLayer.C mask field alpha to avoid heat sources where there is no film.
Tunning fvSolution for alpha for twoPhasePachuka tutorial
This commit is contained in:
sergio
2017-09-22 16:45:45 -07:00
parent b55ab4b0c3
commit 823ba60cae
13 changed files with 17 additions and 18 deletions

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -269,17 +269,15 @@ void thermoSingleLayer::updateSubmodels()
tmp<fvScalarMatrix> thermoSingleLayer::q(volScalarField& hs) const tmp<fvScalarMatrix> thermoSingleLayer::q(volScalarField& hs) const
{ {
const volScalarField alpha(pos(delta_ - deltaSmall_));
return return
( (
// Heat-transfer to the primary region // Heat-transfer to the primary region
- fvm::Sp(htcs_->h()/Cp_, hs) - fvm::Sp(htcs_->h()/Cp_, hs)
+ htcs_->h()*(hs/Cp_ + alpha*(TPrimary_ - T_)) + htcs_->h()*(hs/Cp_ + alpha_*(TPrimary_ - T_))
// Heat-transfer to the wall // Heat-transfer to the wall
- fvm::Sp(htcw_->h()/Cp_, hs) - fvm::Sp(htcw_->h()/Cp_, hs)
+ htcw_->h()*(hs/Cp_ + alpha*(Tw_- T_)) + htcw_->h()*(hs/Cp_ + alpha_*(Tw_- T_))
); );
} }

View File

@ -6,8 +6,9 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre ./Allrun.pre
runApplication -s wallFilmRegion decomposePar -region wallFilmRegion
runApplication -s primaryRegion decomposePar runApplication -s primaryRegion decomposePar
runApplication -s wallFilmRegion decomposePar -region wallFilmRegion
runParallel $(getApplication) runParallel $(getApplication)

View File

@ -18,7 +18,7 @@ FoamFile
chemistryType chemistryType
{ {
chemistrySolver noChemistrySolver; chemistrySolver noChemistrySolver;
chemistryThermo psi; chemistryThermo rho;
} }
chemistry off; chemistry off;

View File

@ -15,7 +15,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel laminar<psiChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;

View File

@ -18,7 +18,7 @@ FoamFile
chemistryType chemistryType
{ {
chemistrySolver noChemistrySolver; chemistrySolver noChemistrySolver;
chemistryThermo psi; chemistryThermo rho;
} }
chemistry off; chemistry off;

View File

@ -15,7 +15,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel laminar<psiChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;

View File

@ -18,7 +18,7 @@ FoamFile
chemistryType chemistryType
{ {
chemistrySolver noChemistrySolver; chemistrySolver noChemistrySolver;
chemistryThermo psi; chemistryThermo rho;
} }
chemistry off; chemistry off;

View File

@ -15,7 +15,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel laminar<psiChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;

View File

@ -33,7 +33,7 @@ thermoSingleLayerCoeffs
filmViscosityModel liquid; filmViscosityModel liquid;
deltaWet 1e-4; deltaWet 2e-4;
hydrophilic no; hydrophilic no;
turbulence laminar; turbulence laminar;

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;

View File

@ -24,7 +24,7 @@ solvers
cAlpha 1; cAlpha 1;
MULESCorr yes; MULESCorr yes;
nLimiterIter 2; nLimiterIter 10;
solver smoothSolver; solver smoothSolver;
smoother symGaussSeidel; smoother symGaussSeidel;
@ -45,7 +45,7 @@ solvers
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
tolerance 1e-07; tolerance 1e-08;
relTol 0.05; relTol 0.05;
} }