mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Collecting radiation contributions during parcel tracking
This commit is contained in:
@ -466,6 +466,16 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
|
||||
// Update sensible enthalpy transfer
|
||||
td.cloud().hsTrans()[cellI] += np0*dhsTrans;
|
||||
td.cloud().hsCoeff()[cellI] += np0*Sph;
|
||||
|
||||
// Update radiation fields
|
||||
if (td.cloud().radiation())
|
||||
{
|
||||
const scalar ap = this->areaP();
|
||||
const scalar T4 = pow4(this->T_);
|
||||
td.cloud().radAreaP()[cellI] += dt*np0*ap;
|
||||
td.cloud().radT4()[cellI] += dt*np0*T4;
|
||||
td.cloud().radAreaP()[cellI] += dt*np0*ap*T4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -458,6 +458,16 @@ void Foam::ReactingParcel<ParcelType>::calc
|
||||
// Update sensible enthalpy transfer
|
||||
td.cloud().hsTrans()[cellI] += np0*dhsTrans;
|
||||
td.cloud().hsCoeff()[cellI] += np0*Sph;
|
||||
|
||||
// Update radiation fields
|
||||
if (td.cloud().radiation())
|
||||
{
|
||||
const scalar ap = this->areaP();
|
||||
const scalar T4 = pow4(this->T_);
|
||||
td.cloud().radAreaP()[cellI] += dt*np0*ap;
|
||||
td.cloud().radT4()[cellI] += dt*np0*T4;
|
||||
td.cloud().radAreaP()[cellI] += dt*np0*ap*T4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -144,7 +144,7 @@ void Foam::ThermoParcel<ParcelType>::calcSurfaceValues
|
||||
Ts = td.cloud().constProps().TMin();
|
||||
}
|
||||
|
||||
// Assuming thermo props vary linearly with T for small dT
|
||||
// Assuming thermo props vary linearly with T for small d(T)
|
||||
const scalar TRatio = Tc_/Ts;
|
||||
|
||||
rhos = this->rhoc_*TRatio;
|
||||
@ -252,6 +252,16 @@ void Foam::ThermoParcel<ParcelType>::calc
|
||||
|
||||
// Update sensible enthalpy coefficient
|
||||
td.cloud().hsCoeff()[cellI] += np0*Sph;
|
||||
|
||||
// Update radiation fields
|
||||
if (td.cloud().radiation())
|
||||
{
|
||||
const scalar ap = this->areaP();
|
||||
const scalar T4 = pow4(this->T_);
|
||||
td.cloud().radAreaP()[cellI] += dt*np0*ap;
|
||||
td.cloud().radT4()[cellI] += dt*np0*T4;
|
||||
td.cloud().radAreaP()[cellI] += dt*np0*ap*T4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user