View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002539||OpenFOAM||Bug||public||2017-05-04 16:07||2017-05-15 14:41|
|Summary||0002539: wallHeatFlux functionObject in solid regions|
|Description||The new wall heat flux function object does not work in solid regions. The fluid version is not effected and works. This is due the fact that the heat flux or alphaEff is calculated with the compressible turbulenceModel within wallHeatFlux.C.|
|Steps To Reproduce||chtMultiRegionSimpleFoam Tutorial Case with added function object|
will result in:
--> FOAM FATAL ERROR:
Unable to find compressible turbulence model in the database
From function virtual bool Foam::functionObjects::wallHeatFlux::execute()
in file wallHeatFlux/wallHeatFlux.C at line 224.
Changing the region to a fluid one will work however.
> wallHeatFlux functionObject in solid regions
Correct, it does not have this functionality. Can you provide a patch which adds this functionality?
||I have to look into it. From my perspective the only necessary change is to add solidThermo.H and switch to calculating alpha with it if necessary (turbulence not valid). This seems to be the way it was done in 3.0 and 4.0.|
Attached is a simple change to incorporate solid regions. Tested with chtMultiRegionSimpleFoam. I have not tested if this produces an issue with anisotropic alphas.
Possible extensions might include adding support for incompressible solvers with a passive scalar equation. Adding the option to specify the conductivity and temperature fields might be an option. I am not sure though if that is necessary or wished for. An option to output the radiative qr flux separately might also be handy to some users, since this was possible in 4.x. Having the option to output the heatflux field at another intervall than the log interval might be handy as well.
wallHeatFluxChanged.tar.gz (4,184 bytes)
Thanks for the patch.
Resolved by commit 56283c39e51c9db8807136cae71adfc33524c340
|2017-05-04 16:07||StephanG||New Issue|
|2017-05-04 16:07||StephanG||Tag Attached: chtMultiregionFoam|
|2017-05-04 16:18||henry||Note Added: 0008091|
|2017-05-04 16:22||henry||Severity||minor => feature|
|2017-05-05 07:37||StephanG||Note Added: 0008096|
|2017-05-06 21:51||StephanG||File Added: wallHeatFluxChanged.tar.gz|
|2017-05-06 21:51||StephanG||Note Added: 0008107|
|2017-05-15 14:41||henry||Assigned To||=> henry|
|2017-05-15 14:41||henry||Status||new => resolved|
|2017-05-15 14:41||henry||Resolution||open => fixed|
|2017-05-15 14:41||henry||Note Added: 0008148|