STY: Function names and arguments order
This commit is contained in:
@ -455,18 +455,6 @@ Foam::tmp<Foam::scalarField> Foam::phaseSystem::Cp
|
||||
}
|
||||
|
||||
|
||||
Foam::tmp<Foam::scalarField> Foam::phaseSystem::CpThermo
|
||||
(
|
||||
const scalarField& T,
|
||||
const scalarField& p,
|
||||
const labelList& cells
|
||||
) const
|
||||
{
|
||||
NotImplemented;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Foam::tmp<Foam::volScalarField> Foam::phaseSystem::Cv() const
|
||||
{
|
||||
auto iter = phaseModels_.cbegin();
|
||||
@ -510,8 +498,8 @@ Foam::tmp<Foam::scalarField> Foam::phaseSystem::Cv
|
||||
|
||||
Foam::tmp<Foam::scalarField> Foam::phaseSystem::rhoEoS
|
||||
(
|
||||
const scalarField& T,
|
||||
const scalarField& p,
|
||||
const scalarField& T,
|
||||
const labelList& cells
|
||||
) const
|
||||
{
|
||||
|
||||
@ -352,12 +352,16 @@ public:
|
||||
) const;
|
||||
|
||||
//- Heat capacity using pressure and temperature
|
||||
virtual tmp<scalarField> CpThermo
|
||||
virtual tmp<scalarField> Cp
|
||||
(
|
||||
const scalarField& T,
|
||||
const scalarField& p,
|
||||
const scalarField& T,
|
||||
const labelList& cells
|
||||
) const;
|
||||
) const
|
||||
{
|
||||
NotImplemented;
|
||||
return tmp<scalarField>::New(p);
|
||||
}
|
||||
|
||||
//- Return Cv of the mixture
|
||||
virtual tmp<volScalarField> Cv() const;
|
||||
@ -373,8 +377,8 @@ public:
|
||||
//- Density from pressure and temperature
|
||||
virtual tmp<scalarField> rhoEoS
|
||||
(
|
||||
const scalarField& T,
|
||||
const scalarField& p,
|
||||
const scalarField& T,
|
||||
const labelList& cells
|
||||
) const;
|
||||
|
||||
|
||||
@ -83,10 +83,10 @@ Foam::wallBoilingModels::CHFModels::Zuber::CHF
|
||||
|
||||
const scalarField& pw = liquid.thermo().p().boundaryField()[patchi];
|
||||
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(pw ,Tsatw, cells);
|
||||
const scalarField& rhoVapor = trhoVapor.ref();
|
||||
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoLiq = trhoLiq.ref();
|
||||
const phasePairKey pair(liquid.name(), vapor.name());
|
||||
const scalarField sigma
|
||||
|
||||
@ -85,10 +85,10 @@ Foam::wallBoilingModels::CHFModels::HuaXu::CHFSubCool
|
||||
|
||||
const scalarField& pw = liquid.thermo().p().boundaryField()[patchi];
|
||||
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoVapor = trhoVapor.ref();
|
||||
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoLiq = trhoLiq.ref();
|
||||
|
||||
|
||||
|
||||
@ -78,13 +78,13 @@ Foam::wallBoilingModels::CHFModels::Tatsumoto::CHFSubCool
|
||||
const labelUList& cells = liquid.mesh().boundary()[patchi].faceCells();
|
||||
const scalarField& pw = liquid.thermo().p().boundaryField()[patchi];
|
||||
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoVapor = trhoVapor.ref();
|
||||
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoLiq = trhoLiq.ref();
|
||||
|
||||
tmp<scalarField> tCp = liquid.thermo().CpThermo(Tsatw, pw, cells);
|
||||
tmp<scalarField> tCp = liquid.thermo().Cp(pw, Tsatw, cells);
|
||||
const scalarField& Cp = tCp();
|
||||
|
||||
return
|
||||
|
||||
@ -83,10 +83,10 @@ Foam::wallBoilingModels::CHFModels::Jeschar::MHF
|
||||
|
||||
const scalarField& pw = liquid.thermo().p().boundaryField()[patchi];
|
||||
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoVapor = trhoVapor.ref();
|
||||
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoLiq = trhoLiq.ref();
|
||||
|
||||
const phasePairKey pair(liquid.name(), vapor.name());
|
||||
@ -99,7 +99,10 @@ Foam::wallBoilingModels::CHFModels::Jeschar::MHF
|
||||
Kmhf_*rhoVapor*L
|
||||
*(
|
||||
pow(sigma/(mag(g.value())*(rhoLiq - rhoVapor)), 0.25)
|
||||
* sqrt(mag(g.value())*(rhoLiq - rhoVapor)/(rhoLiq + rhoVapor + VSMALL))
|
||||
* sqrt
|
||||
(
|
||||
mag(g.value())*(rhoLiq - rhoVapor)/(rhoLiq + rhoVapor + VSMALL)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -84,16 +84,16 @@ Foam::wallBoilingModels::filmBoilingModels::BreenWestwater::htcFilmBoil
|
||||
const labelUList& cells = liquid.mesh().boundary()[patchi].faceCells();
|
||||
const scalarField& pw = liquid.thermo().p().boundaryField()[patchi];
|
||||
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoVapor = trhoVapor.ref();
|
||||
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoLiq = trhoLiq.ref();
|
||||
|
||||
|
||||
const scalarField kappaLiquid(liquid.kappa(patchi));
|
||||
|
||||
tmp<scalarField> tCp = vapor.thermo().CpThermo(Tsatw, pw, cells);
|
||||
tmp<scalarField> tCp = vapor.thermo().Cp(pw, Tsatw, cells);
|
||||
const scalarField& CpVapor = tCp();
|
||||
|
||||
const scalarField nuLiquid(liquid.nu(patchi));
|
||||
|
||||
@ -88,18 +88,17 @@ Foam::wallBoilingModels::filmBoilingModels::Bromley::htcFilmBoil
|
||||
|
||||
const scalarField& pw = liquid.thermo().p().boundaryField()[patchi];
|
||||
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoVapor = trhoVapor.ref();
|
||||
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(Tsatw, pw, cells);
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(pw, Tsatw, cells);
|
||||
const scalarField& rhoLiq = trhoLiq.ref();
|
||||
|
||||
|
||||
const scalarField kappaVapor(vapor.kappa(patchi));
|
||||
|
||||
tmp<volScalarField> tCp = vapor.thermo().Cp();
|
||||
const volScalarField& Cp = tCp();
|
||||
const scalarField& CpVapor = Cp.boundaryField()[patchi];
|
||||
tmp<scalarField> tCp = vapor.thermo().Cp(pw, Tsatw, cells);
|
||||
const scalarField& CpVapor = tCp();
|
||||
|
||||
const scalarField muVapor(vapor.mu(patchi));
|
||||
|
||||
|
||||
@ -83,10 +83,10 @@ Foam::wallBoilingModels::nucleateFluxModels::Kutadeladze::qNucleate
|
||||
|
||||
const labelUList& cells = liquid.mesh().boundary()[patchi].faceCells();
|
||||
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(Tsatw, pb, cells);
|
||||
tmp<scalarField> trhoVapor = vapor.thermo().rhoEoS(pb, Tsatw, cells);
|
||||
const scalarField& rhoVapor = trhoVapor.ref();
|
||||
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(Tsatw, pb, cells);
|
||||
tmp<scalarField> trhoLiq = liquid.thermo().rhoEoS(pb, Tsatw, cells);
|
||||
const scalarField& rhoLiq = trhoLiq.ref();
|
||||
|
||||
const phasePairKey pair(liquid.name(), vapor.name());
|
||||
@ -100,9 +100,8 @@ Foam::wallBoilingModels::nucleateFluxModels::Kutadeladze::qNucleate
|
||||
|
||||
const scalarField kappaLiquid(liquid.kappa(patchi));
|
||||
|
||||
tmp<volScalarField> tCpliq = liquid.thermo().Cp();
|
||||
const volScalarField& Cpliq = tCpliq();
|
||||
const scalarField& Cpliquid = Cpliq.boundaryField()[patchi];
|
||||
tmp<scalarField> tCpliq = liquid.thermo().Cp(pb, Tsatw, cells);
|
||||
const scalarField& Cpliquid = tCpliq();
|
||||
|
||||
const scalarField muLiquid(liquid.mu(patchi));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user