|
[Sponsors] |
[swak4Foam] how to find local nusselt with swak4Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 15, 2018, 02:38 |
how to find local nusselt with swak4Foam
|
#1 | |
New Member
mortezanayebi
Join Date: Jan 2018
Posts: 8
Rep Power: 8 |
Quote:
Hi Bernhard I need to find local nusselt around a cylinder. I was wondering if you could please let me know how I can obtain the local nusselt using swak4Foam. I might need to mention that I already calculated the average nusselt by adding the following code to controlDict. Code:
libs ( "libOpenFOAM.so" "libsimpleFunctionObjects.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" ); functions { NusseltNumber { type patchExpression; ignore_unimplemented_simpleFunctionObject::movePoints true; outputControlMode timeStep; outputInterval 1; patches ( cylinder ); verbose true; variables ( "T_inf=0;" "L=10;" ); expression "L*snGrad(T)/(T-T_inf)"; accumulations ( average ); log true; } } Last edited by wyldckat; November 1, 2018 at 13:21. Reason: Added [CODE][/CODE] markers |
||
November 1, 2018, 13:37 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: Looks like the only way to do this is to use groovyBC to do the calculation on a field. I don't remember ever doing this myself and right now I don't have enough time to come up with an example case.
That said, it might be easier if you modify the old source code applications for wallHeatFlux and modify it to your needs... Wait, I did a bit more searching and there is already a complete example here: calculate Nusselt number - post #2
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient simulation not converging | skabilan | OpenFOAM Running, Solving & CFD | 14 | December 17, 2019 00:12 |
time step continuity problem in VAWT simulation | lpz_michele | OpenFOAM Running, Solving & CFD | 5 | February 22, 2018 20:50 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |
Local Nusselt Number | rohangulavani | FLUENT | 0 | July 1, 2010 15:39 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |