CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How can I use wallHeatFlux with modified icoFoam that has energy equation (https://www.cfd-online.com/Forums/openfoam-post-processing/143638-how-can-i-use-wallheatflux-modified-icofoam-has-energy-equation.html)

sajad6 October 29, 2014 18:15

How can I use wallHeatFlux with modified icoFoam that has energy equation
 
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

ssss October 30, 2014 03:11

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 October 30, 2014 05:31

im appreciate for your reply

sajad6 October 30, 2014 11:29

gradT
 
now how I can calculate gradT

ssss October 30, 2014 16:05

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 October 30, 2014 19:23

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

ssss October 31, 2014 08:17

If you downloaded and installed foamCalcEx shouldn´t you use:

Code:

foamCalcEx grad T

sajad6 October 31, 2014 12:43

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.

ssss October 31, 2014 15:15

You can do that with the paraView calculator.

sajad6 October 31, 2014 17:45

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.

ssss November 1, 2014 02:42

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


All times are GMT -4. The time now is 00:01.