CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   solidWallHeatTransfer - calculation of Cp(Tw, patchi) in basic Solid (http://www.cfd-online.com/Forums/openfoam-programming-development/102579-solidwallheattransfer-calculation-cp-tw-patchi-basic-solid.html)

klio May 29, 2012 05:08

solidWallHeatTransfer - calculation of Cp(Tw, patchi) in basic Solid
 
Hello!

I try to implement a new BC called solidWallHeatTransfer. So I took the wallHeatTransfer BC from basicThermo to make the new BC for solids. Now there is the calculation of valueFraction():

const label patchi = patch().index();
const scalarField& Tw = thermo.T().boundaryField()[patchi];
const scalarField Cpw(thermo.Cp(Tw, patchi));

valueFraction() =
1.0/
(
1.0
+ Cpw*thermo.alpha().boundaryField()[patchi]
*patch().deltaCoeffs()/alphaWall_
);

so thermo.alpha().boundaryField()[patchi]*patch().deltaCoeffs() should be K of the fluid -> in case of solid I just replaced it with K (const scalarField K = thermo.K(patchi); ) but how is Cpw calculated. I can't find the code or a description. It is dependent on the Temperature but in basicSolidThermo it is not possible to call the function Cp(Tw, patchi)!
I also really don't know the meaning of the valueFraction!


All times are GMT -4. The time now is 07:39.