CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Nusselt number over theta

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2010, 05:41
Default Nusselt number over theta
  #1
New Member
 
Snehal Janwe
Join Date: May 2010
Location: Stuttgart
Posts: 10
Rep Power: 16
snehal is on a distinguished road
Hello everybody,
I have successfully simulated the case of flow around a circular cylinder with heat transfer using OpenFOAM.
For heat transfer I have calculated the nusselt number over the cylinder surface.
I just wanted to know, how can I plot Nusselt number over theta(angle 0-360).

Thanks in advance
snehal is offline   Reply With Quote

Old   November 22, 2010, 14:18
Default
  #2
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
use paraFoam to do that

extract your cylinder boundary with extractBlock
plot on intersection and select appropriate axis (z?)
select variables...

Is your cylinder fully rough?
aerothermal is offline   Reply With Quote

Old   March 13, 2011, 04:57
Default calculating nusselt number
  #3
Member
 
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16
anijdon is on a distinguished road
hello ;
I added energy equation to simplefoam and simulated heat transfer around a cube but I don't know how to calculate nusselt number and plot it.all walls of the cube are under constant heat flux.
would you help me?
thanks.
anijdon is offline   Reply With Quote

Old   March 13, 2011, 11:25
Default
  #4
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Quote:
Originally Posted by anijdon View Post
hello ;
I added energy equation to simplefoam and simulated heat transfer around a cube but I don't know how to calculate nusselt number and plot it.all walls of the cube are under constant heat flux.
would you help me?
thanks.
Hi anijdon,

See the tool,

Code:
 wallHeatFlux
I might solve your problem.
Let me know if you have difficulties.

regards,

aeroThermal
Goutam likes this.
aerothermal is offline   Reply With Quote

Old   March 13, 2011, 16:05
Default
  #5
Member
 
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16
anijdon is on a distinguished road
thanks, do you mean wallHeatFluxLaminar utility?but it calculates wall heat flux which is my input data as boundary conditions and I don't need it.I think I need termal gradient to calculate h=q''/(Ts-T) >> Nu=hL/k. but I don't know how!!!
anijdon is offline   Reply With Quote

Old   March 16, 2011, 14:00
Default
  #6
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
yes...of course you have the heat flux!

so it is simpler! do it in paraFoam...

1) extract your cylinder boundary with extractBlock
2) use calculator to evaluate \dot{q}^" / (DeltaT)
3) plot on intersection and select appropriate axis (z?)
4) select variables...

Regards,

aerothermal
Goutam and Sherlock_1812 like this.
aerothermal is offline   Reply With Quote

Old   March 17, 2011, 05:46
Default
  #7
Member
 
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16
anijdon is on a distinguished road
hello.
thanks a lot . but my problem is that I don't know how to calculate DeltaT.
anijdon is offline   Reply With Quote

Old   March 17, 2011, 10:50
Default
  #8
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
You can calculate that in paraFoam. Use Filter -> Calculator.
So it is possible to calculate (T-Tref) on it to generate a new field.
In order to get only T surface you will need to Filter -> ExtractBlock your patch.
maddalena and Goutam like this.
aerothermal is offline   Reply With Quote

Old   March 17, 2011, 16:23
Default
  #9
Member
 
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16
anijdon is on a distinguished road
I'm sorry, it was so easy.thanks a lot for your helping.
excuse me, can we export the result of caculating to matlab or save the data in a separate file?(I'm not well in paraview)
thanks
kind regards
anijdon is offline   Reply With Quote

Old   March 17, 2011, 16:35
Default
  #10
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
yes...just select your plot, click file -> save data.
it will save as .csv for external tools like excel, matlab or R Cran
Goutam likes this.
aerothermal is offline   Reply With Quote

Old   March 18, 2011, 15:23
Default
  #11
Member
 
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16
anijdon is on a distinguished road
thank a lot for your guidance.
regards.
anijdon is offline   Reply With Quote

Old   April 9, 2011, 03:26
Default
  #12
Member
 
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16
anijdon is on a distinguished road
hello dear aerothermal;
excuse me, I have another problem with heat transfer in openfoam.
I want to simulate an incompressible nanofluid flow with heat transfer using simpleFoam (i.e. solver includes an energy equation).The conductivity of the fluid is temperature dependent . I don't know haw can modify the solver and case directories to these properties become temperature dependent ;I took down this threat in this site but I have not received any answer so far,
would you help me?
I attach special formula of nonofluids:

formuls.zip

kind regards
anijdon is offline   Reply With Quote

Old   November 10, 2011, 09:57
Default
  #13
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Dear Maryam,

your zip file is empty.

Regards,

aerothermal
aerothermal is offline   Reply With Quote

Old   February 19, 2012, 09:34
Default
  #14
Senior Member
 
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 131
Rep Power: 15
Goutam is on a distinguished road
dear friends,

I have calculated the local Nusselt number. Please see the code.
How I will calculate the average Nusselt Number?

#include "fvCFD.H"
#include "hCombustionThermo.H"
#include "basicThermo.H"
#include "RASModel.H"
#include "wallFvPatch.H"

int main(int argc, char *argv[])
{
timeSelector::addOptions();
#include "setRootCase.H"
#include "createTime.H"
instantList timeDirs = timeSelector::select0(runTime, args);
#include "createMesh.H"


forAll(timeDirs, timeI)
{
runTime.setTime(timeDirs[timeI], timeI);
Info<< "Time = " << runTime.timeName() << endl;
mesh.readUpdate();

#include "createFields.H"
#include "readRefValues.H"

surfaceScalarField heatFlux
(
fvc::interpolate(RASModel->alphaEff())*fvc::snGrad(h)
);

const surfaceScalarField::GeometricBoundaryField& patchHeatFlux =
heatFlux.boundaryField();

Info<< "\nWall heat fluxes [W]" << endl;
forAll(patchHeatFlux, patchi)
{
if (typeid(mesh.boundary()[patchi]) == typeid(wallFvPatch))
{
Info<< mesh.boundary()[patchi].name()
<< " "
<< sum
(
mesh.magSf().boundaryField()[patchi]
*patchHeatFlux[patchi]
)
<< endl;
}
}
Info<< endl;

volScalarField wallHeatFlux
(
IOobject
(
"wallHeatFlux",
runTime.timeName(),
mesh
),
mesh,
dimensionedScalar("wallHeatFlux", heatFlux.dimensions(), 0.0)
);

forAll(wallHeatFlux.boundaryField(), patchi)
{
wallHeatFlux.boundaryField()[patchi] = patchHeatFlux[patchi];
}

wallHeatFlux.write();

Info << "\nNusselt Number:" << endl;

volScalarField localNusselt
(
IOobject
(
"localNusselt",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar("localNusselt",dimless,0.0)
);

forAll(localNusselt.boundaryField(),patchi)
{
localNusselt.boundaryField()[patchi] = length*patchHeatFlux[patchi]/((T_hot-T_ini)*k);
}

localNusselt.write();
}

Info<< "End" << endl;
return 0;
}
aerothermal likes this.

Last edited by Goutam; March 4, 2012 at 09:18.
Goutam is offline   Reply With Quote

Old   March 22, 2012, 08:58
Default Average Nusselt
  #15
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Two ways:

1) in your code, sum all your Nusselt number values for one patch (not all patches) times de area of each element; sum all areas of elements/cells of the same patch; divide the nusselt values sum by the area sum

2) in paraFoam, use filter "extractBlock" to extract the patch you want the average, use filter "integrate variables", it will open an spreadsheet, look for Area value in Cells or Points, look for Nusselt value in Cells or Points, divide Nusselt integrated value by the Area integrated value.

Regards,

aerothermal
Goutam likes this.
aerothermal is offline   Reply With Quote

Old   December 3, 2015, 07:14
Unhappy
  #16
Member
 
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 11
Bana is on a distinguished road
Hi friends
I have a question, I want to calculate Nusselt number in a heated pipe at each cross section but for the temperature difference it needs to calculate the bulk temperature which requires computation of integral of U*T over each section (since my simulation is axisymmetric I need to calculate integration along radius instead). Do you have any idea on how to compute the integral in openfoam?
thanks in advance
Bana is offline   Reply With Quote

Old   June 6, 2016, 12:49
Default
  #17
Member
 
Join Date: Oct 2015
Posts: 63
Rep Power: 11
Scram_1 is on a distinguished road
Hey Bana,
Have you managed to figure out how to calculate the bulk temperature in openFOAM? I'm trying to calculate the Nusselt Number for which I need the bulk temperature.

Thanks!!
Ram
Scram_1 is offline   Reply With Quote

Old   December 31, 2023, 05:26
Default
  #18
New Member
 
Goind Sharma
Join Date: Sep 2018
Posts: 25
Rep Power: 8
govind_IITD is on a distinguished road
Hi,


I am using openfoam v10, trying to find Nusselt number. As far I explore it, I found that its now momentumTranportModel class which encompasses laminar and turbulent models.


I am trying to figure out how do I setup my calculation, but finding difficult.


surfaceScalarField heatFlux
(
fvc::interpolate
(
(
turbulence.valid()
? turbulence->alphaEff()()
: thermo->alpha()
)

) * fvc::snGrad(h)
);




Can someone tell, how do I modify this code for openfoam v 10?


Regards,
Govind
govind_IITD is offline   Reply With Quote

Old   December 31, 2023, 05:30
Default
  #19
New Member
 
Goind Sharma
Join Date: Sep 2018
Posts: 25
Rep Power: 8
govind_IITD is on a distinguished road
Hello Gautam,


can you please explain me:


fvc::interpolate(RASModel->alphaEff())*fvc::snGrad(h).


My understanding is "h" stands for heat-flux.


But from heat transfer calculation,



q (heat-flux) = -k_eff * grad(T)


Its somewhat confusing me, can you please clear me?






Regards,
Govind
govind_IITD is offline   Reply With Quote

Old   December 31, 2023, 06:56
Default
  #20
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
h is enthalpy, see e.g. https://en.wikipedia.org/wiki/Enthalpy

k_eff īs the sum of laminar and turbulent (therefore total) thermal conductivity, see e.g. Turbulent thermal conductivity
dlahaye is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] Mesh Refinement Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Meshing & Mesh Conversion 42 January 8, 2017 13:55
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 10:01
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 11:37
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 19:16.