|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 91
Rep Power: 3 ![]() |
I have used the following code created by Johan Magnusson. It creates the tool NusseltCalc. Only problem is, when I run NusseltCalc then I got the error:
Command not found. Could you please help me? I am adding the code as an attachment. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 155
Rep Power: 6 ![]() |
Hi,
have you correctly compiled the tool? You need to do a "wmake", see the Wiki for more information on that topic. Markus |
|
|
|
|
|
|
|
|
#3 |
|
Member
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 91
Rep Power: 3 ![]() |
Dear Members,
This is the code for local Nusselt number: volScalarField wall_localNusselt ( IOobject ( "wall_localNusselt", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("wall_localNusselt ",dimless,0.0) ); forAll(wall_localNusselt.boundaryField(),patchi) { wall_localNusselt.boundaryField()[patchi] = length*patchHeatFlux[patchi]/((T_hot-T_ini)*k); } wall_localNusselt.write(); } I want to write a code for Average Nusselt Number. Last edited by Goutam; March 3, 2012 at 08:32. |
|
|
|
|
|
|
|
|
#4 |
|
Member
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 91
Rep Power: 3 ![]() |
The code was correct. NusseltCalc is working now.
|
|
|
|
|
|
|
|
|
#5 |
|
Member
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 91
Rep Power: 3 ![]() |
How to calculate average Nusselt number?
Last edited by Goutam; March 3, 2012 at 08:03. |
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 155
Rep Power: 6 ![]() |
DearGoutam,
I have not used the code but it would be helpful to see the error message. Markus |
|
|
|
|
|
|
|
|
#7 |
|
Member
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 91
Rep Power: 3 ![]() |
Looking for a response?
Last edited by Goutam; March 3, 2012 at 08:28. |
|
|
|
|
|
|
|
|
#8 |
|
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 155
Rep Power: 6 ![]() |
Hello Goutam,
please be a bit more precise. As far as I understand, the code you posted above calculates the patch-averaged Nusselt number. Because patchHeatFlux should be the heat flux over the patch in [W/m2], right? Markus |
|
|
|
|
|
|
|
|
#9 |
|
Member
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 91
Rep Power: 3 ![]() |
Dear Markus,
This code will calculate heat flux and Local Nusselt NUmber at each patch. I am using this code and its working properly. If you want to calculate average Nusselt number, then just write in the terminal window: patchAverage wall_localNusselt your_patch_name You will get your average Nusselt number. Cheers !!! Last edited by Goutam; March 7, 2012 at 05:29. |
|
|
|
|
|
|
|
|
#10 | |
|
New Member
giovanni silva
Join Date: Jul 2010
Posts: 14
Rep Power: 4 ![]() |
Quote:
-- wall_localNusselt.boundaryField()[patchi] = length*patchHeatFlux[patchi]/((T_hot-T_ini)*k); -- I want to calculate the localNusselt number at a wall which is called "right". I have a rectangular cavity which has 4 walls with the following names: bottom, right, left and top. So, the Nusselt number is calculated as the integration of dT/dx for limits from y=0 to 1, at x=0, which is the "right" wall. How can I alter your code? I am using an incompressible Magnetohydrodynamics` solver. Thanks a lot for your help! |
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mesh Refinement | Luiz Eduardo Bittencourt Sampaio (Sampaio) | OpenFOAM Mesh Utilities | 41 | January 17, 2013 02:43 |
| Problem with decomposePar tool | vinz | OpenFOAM Pre-Processing | 18 | January 26, 2011 02:17 |
| Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 2 | July 15, 2005 04:15 |
| What is the Better Way to Do CFD? | John C. Chien | Main CFD Forum | 54 | April 23, 2001 08:10 |
| State of the art in CFD technology | Juan Carlos GARCIA SALAS | Main CFD Forum | 39 | November 1, 1999 14:34 |