CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Heat Flux transfer from fluid to solid in FSI?? (

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())

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);


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 13:22.