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

How can I use wallHeatFlux with modified icoFoam that has energy equation

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By ssss
  • 1 Post By ssss
  • 1 Post By ssss
  • 1 Post By ssss
  • 1 Post By ssss

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2014, 19:15
Default How can I use wallHeatFlux with modified icoFoam that has energy equation
  #1
Member
 
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 12
sajad6 is on a distinguished road
I added energy equation to icoFoam. now I want to use wallheatFlux utility for icoFoam.how can I do this?
im very appreciate for any help
sajad6 is offline   Reply With Quote

Old   October 30, 2014, 04:11
Default
  #2
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
You should add to your transportProperties file:

Code:
rho0             rho0 [1 -3 0 0 0 0 0] your rho;

Cp0             Cp0 [0 2 -2 -1 0 0 0] your cp;
This should work
sajad6 likes this.
ssss is offline   Reply With Quote

Old   October 30, 2014, 06:31
Default
  #3
Member
 
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 12
sajad6 is on a distinguished road
im appreciate for your reply
sajad6 is offline   Reply With Quote

Old   October 30, 2014, 12:29
Default gradT
  #4
Member
 
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 12
sajad6 is on a distinguished road
now how I can calculate gradT
sajad6 is offline   Reply With Quote

Old   October 30, 2014, 17:05
Default
  #5
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
Code:
foamCalc grad T
Hope it works with foamCalc if not you will need to install foamCalcEx:

http://openfoamwiki.net/index.php/Contrib_foamCalcEx

Next time try searching in google please.
sajad6 likes this.
ssss is offline   Reply With Quote

Old   October 30, 2014, 20:23
Default
  #6
Member
 
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 12
sajad6 is on a distinguished road
I downloaded foamCalcex and compile it according to command in http://openfoamwiki.net/index.php/Contrib_foamCalcEx
but when I write
Code:
 foamCalc grad T
I get this error:
Code:
sajad@sajad-pc:~/Desktop/heatedCavity2$ foamCalc grad T
Selecting calcType grad


--> FOAM FATAL ERROR: 
Unknown calcType type grad
Valid calcType selections are:

8
(
addSubtract
components
div
interpolate
mag
magGrad
magSqr
randomise
)



    From function calcType::New()
    in file calcType/calcTypeNew.C at line 53.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2  Foam::calcType::New(Foam::word const&) in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libfoamCalcFunctions.so"
#3  
 in "/opt/openfoam210/platforms/linuxGccDPOpt/bin/foamCalc"
#4  __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#5  
 in "/opt/openfoam210/platforms/linuxGccDPOpt/bin/foamCalc"
Aborted
sajad@sajad-pc:~/Desktop/heatedCavity2$ ^C
why it doesnt compile grade?
tnx for your replies

Last edited by wyldckat; November 1, 2014 at 15:40. Reason: Added [CODE][/CODE]
sajad6 is offline   Reply With Quote

Old   October 31, 2014, 09:17
Default
  #7
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
If you downloaded and installed foamCalcEx shouldn´t you use:

Code:
foamCalcEx grad T
sajad6 likes this.
ssss is offline   Reply With Quote

Old   October 31, 2014, 13:43
Default
  #8
Member
 
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 12
sajad6 is on a distinguished road
tnx for your reply
I calculated gradT and wallHeatflux in wall in my case.now I want to calculate Nusselt Number.I know:
Nu=(q*L)/(gradT*k)
I just should do a fraction.how can I do it for all feild in order to calculate Nusselt number?
I'm appreciate for any help.
sajad6 is offline   Reply With Quote

Old   October 31, 2014, 16:15
Default
  #9
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
You can do that with the paraView calculator.
sajad6 likes this.
ssss is offline   Reply With Quote

Old   October 31, 2014, 18:45
Default
  #10
Member
 
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 12
sajad6 is on a distinguished road
i'm appreciate for your helps.
you are right but I want calculate Nusselt Number just around the block.but in paraview calculater it calculate all field Nusselt number while the Nusselt is meaning just around the block.I mean I just want the Nusselt Number of cells around the block.
sajad6 is offline   Reply With Quote

Old   November 1, 2014, 03:42
Default
  #11
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
Just use Plot Over Line and extract the data over a patch.

You can also load only the desired patch in paraFoam and calculate the Nusselt number inside the patch
sajad6 likes this.
ssss 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
Need experience comment on cavitation combine energy equation!!! lehoanganh07 FLUENT 0 September 24, 2014 11:28
Energy equation in OpenFoam nwpukaka OpenFOAM Programming & Development 2 June 24, 2014 03:40
problem on energy and flow equation solving separately preetam69 FLUENT 2 July 30, 2013 22:08
energy equation in rhoCentralFoam nakul OpenFOAM 0 October 10, 2010 16:07
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 14:22


All times are GMT -4. The time now is 07:23.