CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   turbulentHeatFluxTemperature (https://www.cfd-online.com/Forums/openfoam-pre-processing/104815-turbulentheatfluxtemperature.html)

Nikunj.R July 16, 2012 17:02

turbulentHeatFluxTemperature
 
1 Attachment(s)
Hello All!

I am trying to implement the trubulent heat flux temperature BC in my model.
I think, I have successfully recompiled the BuoyanBoussinesqPimpleFoam solver to be able to use the above BC (as described in this discussion: http://www.cfd-online.com/Forums/ope...oussinesq.html). When running a test case with the recompiled solver, I am getting following error.

FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 36 the word 'Cp0'

file: /home/eri/OpenFOAM/eri-2.1.1/run/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/FullCylinderWater/constant/transportProperties::Cp0 at line 36.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 91.

FOAM exiting


Attached below are the files i used.

Any help will be greatly appreciated.

Thanks,
Nikunj.

Nikunj.R July 18, 2012 14:32

Hello!

I have finally got that BC to work... The solver is working without any error. However, when viewing the result in paraFoam, despite settin the flux/ power to 1MW, the heat flux BC is not being reflected. The simulation doesn't show any temperature profile if the initial temperature of heat flux BC is set equal to the ambient temperature, even with such a high flux/ power value.

If anyone has any idea about how to go about it, please guide.

Thanks,
Nikunj.

MisterX November 20, 2012 04:29

Hey there,

I have a similiar problem implementing turbulentHeatFluxTemperature BC in buoyantBoussinesqPimpleFoam.
I got exactly the same error.

--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 36 the word 'Cp0'

file: /home/standard/OpenFOAM/standard-2.1.1/run/work/grid/basic/constant/transportProperties::Cp0 at line 36.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 91.


How did you solve this problem?

In advance thank you very much.

Markus

MisterX November 20, 2012 04:51

Ok i fixed the problem on my own.
Just had to change the entry in transportProperties from

Cp0 Cp0 [0 2 -2 -1 0 0 0] 1005;

To

Cp0 1005;

Nikunj.R November 20, 2012 09:14

Yea, u dont have to put dimensions for Cp0, unlike other entries in that dictionary.

imani September 12, 2014 02:39

hi dear nikunj.r
i have a similar problem like you
i dont have temperature distribution in air !!!
my temperature in all of room is initial conditon for air!!
what should i do?


All times are GMT -4. The time now is 20:35.