Skip to content

Re: Flow and heat transfer

#2711
robin.trunk
Keymaster

Hi alan.sant,

a) You can set the temperature boundary for the cylinder similar to the case in the examples by the material number (assuming you set a material number for each cylinder like in the cylinder3d example). Just have a look at thermal2d oder thermal3d, in the functions
prepareLattice(…)
-> here the type of boundary is set by addTemperatureBoundary(…)
setBoundaryValues(…)
-> here the values are defined by an AnalyticalConst object and set by defineRho(…) and definePopulations(…)

b) In the examples thermal2d and thermal3D a Rayleigh-Bernard convection is simulated (coupled flow and temperature field)

Best
Robin