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/)
-   -   Heat Flux transfer from fluid to solid in FSI?? (http://www.cfd-online.com/Forums/openfoam-programming-development/116965-heat-flux-transfer-fluid-solid-fsi.html)

SamerAli April 29, 2013 13:45

Heat Flux transfer from fluid to solid in FSI??
 
Hi Foamers

I am simulationg a fluid-structure interaction problem and i need to transfer the heat flux from the fluid patch to the solid patch.
I wrote a .H file where :
void HeatFluxFvPatchScalarField::updateCoeffs()
{
if (updated())
{
return;
}

const dictionary& transportProperties =
db().lookupObject<IOdictionary>("transportProperti es");

dimensionedScalar k(transportProperties.lookup("k"));

vectorField n = patch().nf();

// Info<< "\n Traction displacement \n" << endl;
gradient() =(HeatFlux_)/(k.value())*(-1);

fixedGradientFvPatchScalarField::updateCoeffs();
}

and i want to ask if there is anything wrong in what i wrote?

kmooney May 8, 2013 13:26

Instead of starting from scratch I would take a look at the implementations in the chtMultiRegionFoam tutorial. They use this BC to map temperature between coupled solid and liquid patches:

~/OpenFOAM/OpenFOAM-2.2.0/src/turbulenceModels/compressible/turbulenceModel/lnInclude/turbulentTemperatureCoupledBaffleMixedFvPatchScala rField.C


All times are GMT -4. The time now is 23:48.