mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Removed unused entry from tutorial input dictionary
This commit is contained in:
@ -25,5 +25,7 @@
|
|||||||
|
|
||||||
EaEqn.solve();
|
EaEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(hea);
|
||||||
|
|
||||||
thermo.correct();
|
thermo.correct();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ if (ign.ignited())
|
|||||||
{
|
{
|
||||||
volScalarField& heau = thermo.heu();
|
volScalarField& heau = thermo.heu();
|
||||||
|
|
||||||
solve
|
fvScalarMatrix heauEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(rho, heau) + mvConvection->fvmDiv(phi, heau)
|
fvm::ddt(rho, heau) + mvConvection->fvmDiv(phi, heau)
|
||||||
+ (fvc::ddt(rho, K) + fvc::div(phi, K))*rho/thermo.rhou()
|
+ (fvc::ddt(rho, K) + fvc::div(phi, K))*rho/thermo.rhou()
|
||||||
@ -23,5 +23,14 @@ if (ign.ignited())
|
|||||||
// A possible solution would be to solve for ftu as well as ft.
|
// A possible solution would be to solve for ftu as well as ft.
|
||||||
//- fvm::div(muEff*fvc::grad(b)/(b + 0.001), heau)
|
//- fvm::div(muEff*fvc::grad(b)/(b + 0.001), heau)
|
||||||
//+ fvm::Sp(fvc::div(muEff*fvc::grad(b)/(b + 0.001)), heau)
|
//+ fvm::Sp(fvc::div(muEff*fvc::grad(b)/(b + 0.001)), heau)
|
||||||
|
|
||||||
|
==
|
||||||
|
sources(heau)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
sources.constrain(heauEqn);
|
||||||
|
|
||||||
|
heauEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(heau);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,5 +15,7 @@
|
|||||||
if (pimple.momentumPredictor())
|
if (pimple.momentumPredictor())
|
||||||
{
|
{
|
||||||
solve(UEqn == -fvc::grad(p));
|
solve(UEqn == -fvc::grad(p));
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,6 +71,8 @@ if (ign.ignited())
|
|||||||
|
|
||||||
bEqn.solve();
|
bEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(b);
|
||||||
|
|
||||||
Info<< "min(b) = " << min(b).value() << endl;
|
Info<< "min(b) = " << min(b).value() << endl;
|
||||||
|
|
||||||
|
|
||||||
@ -167,6 +169,8 @@ if (ign.ignited())
|
|||||||
|
|
||||||
SuEqn.solve();
|
SuEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(Su);
|
||||||
|
|
||||||
// Limit the maximum Su
|
// Limit the maximum Su
|
||||||
// ~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~
|
||||||
Su.min(SuMax);
|
Su.min(SuMax);
|
||||||
@ -252,6 +256,8 @@ if (ign.ignited())
|
|||||||
|
|
||||||
XiEqn.solve();
|
XiEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(Xi);
|
||||||
|
|
||||||
// Correct boundedness of Xi
|
// Correct boundedness of Xi
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Xi.max(1.0);
|
Xi.max(1.0);
|
||||||
|
|||||||
@ -25,4 +25,6 @@ if (composition.contains("ft"))
|
|||||||
sources.constrain(ftEqn);
|
sources.constrain(ftEqn);
|
||||||
|
|
||||||
ftEqn.solve();
|
ftEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(ft);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,5 +10,7 @@
|
|||||||
if (pimple.momentumPredictor())
|
if (pimple.momentumPredictor())
|
||||||
{
|
{
|
||||||
solve(UEqn == -fvc::grad(p));
|
solve(UEqn == -fvc::grad(p));
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,5 +27,6 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,6 +39,8 @@ tmp<fv::convectionScheme<scalar> > mvConvection
|
|||||||
|
|
||||||
YiEqn.solve(mesh.solver("Yi"));
|
YiEqn.solve(mesh.solver("Yi"));
|
||||||
|
|
||||||
|
sources.correct(Yi);
|
||||||
|
|
||||||
Yi.max(0.0);
|
Yi.max(0.0);
|
||||||
Yt += Yi;
|
Yt += Yi;
|
||||||
}
|
}
|
||||||
@ -82,6 +84,8 @@ tmp<fv::convectionScheme<scalar> > mvConvection
|
|||||||
|
|
||||||
EEqn.solve();
|
EEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(he);
|
||||||
|
|
||||||
thermo.correct();
|
thermo.correct();
|
||||||
|
|
||||||
Info<< "min/max(T) = "
|
Info<< "min/max(T) = "
|
||||||
|
|||||||
@ -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) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,6 +43,8 @@ Description
|
|||||||
sources.constrain(rhoEqn);
|
sources.constrain(rhoEqn);
|
||||||
|
|
||||||
rhoEqn.solve();
|
rhoEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(rho);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
EEqn.solve();
|
EEqn.solve();
|
||||||
|
|
||||||
|
sources.correct(he);
|
||||||
|
|
||||||
thermo.correct();
|
thermo.correct();
|
||||||
|
|
||||||
Info<< "min/max(T) = "
|
Info<< "min/max(T) = "
|
||||||
|
|||||||
@ -15,5 +15,7 @@
|
|||||||
if (pimple.momentumPredictor())
|
if (pimple.momentumPredictor())
|
||||||
{
|
{
|
||||||
solve(UEqn == -fvc::grad(p));
|
solve(UEqn == -fvc::grad(p));
|
||||||
|
|
||||||
|
sources.correct(U);
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,6 +37,8 @@ tmp<fv::convectionScheme<scalar> > mvConvection
|
|||||||
|
|
||||||
YiEqn.solve(mesh.solver("Yi"));
|
YiEqn.solve(mesh.solver("Yi"));
|
||||||
|
|
||||||
|
sources.correct(Yi);
|
||||||
|
|
||||||
Yi.max(0.0);
|
Yi.max(0.0);
|
||||||
Yt += Yi;
|
Yt += Yi;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,7 +27,6 @@ momentumSource
|
|||||||
{
|
{
|
||||||
fieldNames (U);
|
fieldNames (U);
|
||||||
Ubar ( 0.1335 0 0 );
|
Ubar ( 0.1335 0 0 );
|
||||||
gradP 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user