Dear all, I am using OpenFoam 5.0 and working on heat transfer simulation using chtMultiRegionSimpleFoam solver.

1. I have a temperature data file which equals to the face center length of a surface region. This temp file has "0" temp in some faces and rest with variable temperature. (say out of 1000 temp values, 400 are 0s and rest are varying). This is a Dirichet BC.

2. I have used this temperature data and simulated it.

But now, I need this "zero" temperature value to be changed to convection BC. I know the parameters for convection BC. The convection parameters are as given below.

type externalWallHeatFluxTemperature;

mode coefficient;

Ta constant 22;

h uniform 10;

kappaMethod solidThermo;

value uniform 30;

But, how do I change the zero temperature cells to different boundary condition? Or, how can I create a Patch based on this temp=0 faceCentre cells? 3. I checked with SetFields (FieldToCell), but I can only give scalar value there and not BC.

I have attached two images of the images, one from top and isolated view. The blue color shows the 0 temperature where BC need to be changed.

I hope the question is well understood. Any leads will be appreciated.

Regards,

Sunag R A.

Similar questions and discussions