How to setup a proper "heatFlux" boundary for fireFoam?
I am a new user of fireFoam(openFoam). Recently I followed the tutorial example of oppositeBurningPanels. And I'm puzzled with the boundary implement problem. Can anybody give me some hints? Thanks! The problem is decribed as following.
For the tutorial of oppositeBurningPanels, the two panels are heated by the burning process of inflow C3H8 gas. Based on the origianl tutorial, I wanted to modify the inflow boundary condition(BC) to a fix-value heat-flux one. I searched the source code of openFoam, and found one type of BC might fit my requirement: externalWallHeatFluxTemperature, which is specified in the file of externalWallHeatFluxTemperatureFvPatchScalarField. C. Thus I modified the burner] section in the 0/U file as following, while keeped all other as the original tutorial.
BUT,,the case failed to run properly, fireFoam compalined in the logfile log.fireFoam as following:
Actually, I did some other tests, but all failed:(,such as:
And, I also tested with the source code, trying to figure out if this is due to the absence of such BC in fireFoam. But I was also puzzled, as following:
I tried to modifiy(simply type in some blanck lines) the files of src/turbulenceModels/compressible/turbulenceModel/lnInclude/externalWallHeatFluxTemperatureFvPatchScalarField. C, and src/turbulenceModels/compressible/turbulenceModel/lnInclude/externalWallHeatFluxTemperatureFvPatchScalarField. H,and then used wmake to rebuild fireFoam. But wmake told that all files were up-to-date, and wouldn't re-compile. From this, it was tempting to believe that fireFoam doesn't contain such BC.
Well, I tried another BC totalFlowRateAdvectiveDiffusive, which was also used in the original oppositeBurningPanels example(in file 0/C3H8). I also modified the corresponding source file, but wmake also did NOT re-compile. So, it seems that currently in openFoam 2.1.x, the BC share libraires are dynamic-linked? If it is, how a solver can identify various BC types speicifed in the BC files?
Sorry that it was quite long for the problem and maybe this is due to my absence of comprensive understanding about openFoam. Can anyone give me some hints or links about:1)how to apply heat-flux boundary condition in fireFoam, and 2)how solvers identify various BC types in the BC files? Thank you so much!
|All times are GMT -4. The time now is 06:26.|