mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Integration updates
This commit is contained in:
@ -195,9 +195,9 @@ void dynamicLagrangian<BasicTurbulenceModel>::correct()
|
||||
fvm::ddt(alpha, rho, flm_)
|
||||
+ fvm::div(alphaRhoPhi, flm_)
|
||||
==
|
||||
rho*invT*LM
|
||||
- fvm::Sp(rho*invT, flm_)
|
||||
+ fvOptions(flm_)
|
||||
alpha*rho*invT*LM
|
||||
- fvm::Sp(alpha*rho*invT, flm_)
|
||||
+ fvOptions(alpha, rho, flm_)
|
||||
);
|
||||
|
||||
flmEqn.relax();
|
||||
@ -213,9 +213,9 @@ void dynamicLagrangian<BasicTurbulenceModel>::correct()
|
||||
fvm::ddt(alpha, rho, fmm_)
|
||||
+ fvm::div(alphaRhoPhi, fmm_)
|
||||
==
|
||||
rho*invT*MM
|
||||
- fvm::Sp(rho*invT, fmm_)
|
||||
+ fvOptions(fmm_)
|
||||
alpha*rho*invT*MM
|
||||
- fvm::Sp(alpha*rho*invT, fmm_)
|
||||
+ fvOptions(alpha, rho, fmm_)
|
||||
);
|
||||
|
||||
fmmEqn.relax();
|
||||
|
||||
@ -13,6 +13,12 @@ $(generalSources)/semiImplicitSource/semiImplicitSource.C
|
||||
|
||||
derivedSources=sources/derived
|
||||
$(derivedSources)/actuationDiskSource/actuationDiskSource.C
|
||||
$(derivedSources)/buoyancyForce/buoyancyForce.C
|
||||
$(derivedSources)/buoyancyForce/buoyancyForceIO.C
|
||||
$(derivedSources)/buoyancyEnergy/buoyancyEnergy.C
|
||||
$(derivedSources)/buoyancyEnergy/buoyancyEnergyIO.C
|
||||
$(derivedSources)/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSource.C
|
||||
$(derivedSources)/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSourceIO.C
|
||||
$(derivedSources)/effectivenessHeatExchangerSource/effectivenessHeatExchangerSource.C
|
||||
$(derivedSources)/explicitPorositySource/explicitPorositySource.C
|
||||
$(derivedSources)/meanVelocityForce/meanVelocityForce.C
|
||||
@ -33,14 +39,6 @@ $(derivedSources)/solidificationMeltingSource/solidificationMeltingSource.C
|
||||
$(derivedSources)/solidificationMeltingSource/solidificationMeltingSourceIO.C
|
||||
$(derivedSources)/tabulatedAccelerationSource/tabulatedAccelerationSource.C
|
||||
$(derivedSources)/tabulatedAccelerationSource/tabulated6DoFAcceleration/tabulated6DoFAcceleration.C
|
||||
/*
|
||||
$(derivedSources)/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSource.C
|
||||
$(derivedSources)/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSourceIO.C
|
||||
*/
|
||||
$(derivedSources)/buoyancyForce/buoyancyForce.C
|
||||
$(derivedSources)/buoyancyForce/buoyancyForceIO.C
|
||||
$(derivedSources)/buoyancyEnergy/buoyancyEnergy.C
|
||||
$(derivedSources)/buoyancyEnergy/buoyancyEnergyIO.C
|
||||
|
||||
interRegion = sources/interRegion
|
||||
$(interRegion)/interRegionHeatTransfer/interRegionHeatTransferModel/interRegionHeatTransferModel.C
|
||||
|
||||
@ -148,21 +148,27 @@ Foam::tmp<Foam::volScalarField> Foam::pressureTools::convertToCoeff
|
||||
const volScalarField& p
|
||||
) const
|
||||
{
|
||||
tmp<volScalarField> tCoeff(p);
|
||||
|
||||
if (calcCoeff_)
|
||||
{
|
||||
tCoeff.ref() -= dimensionedScalar("pInf", dimPressure, pInf_);
|
||||
tmp<volScalarField> tCoeff(new volScalarField("pCoeff", p));
|
||||
volScalarField& coeff = tCoeff.ref();
|
||||
|
||||
coeff -= dimensionedScalar("pInf", dimPressure, pInf_);
|
||||
|
||||
const dimensionedScalar p0("p0", dimPressure, SMALL);
|
||||
const dimensionedVector U("U", dimVelocity, UInf_);
|
||||
const dimensionedScalar rho("rho", dimDensity, rhoInf_);
|
||||
|
||||
tCoeff.ref() /= 0.5*rho*magSqr(U) + p0;
|
||||
}
|
||||
coeff /= 0.5*rho*magSqr(U) + p0;
|
||||
|
||||
return tCoeff;
|
||||
}
|
||||
else
|
||||
{
|
||||
return p;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user