cp field in buoyantBoussinesqSimpleFoam for turbulentHeatFluxTemperature
I would like to use the turbulentHeatFluxTemperature boundary condition for a case solved with buoyantBoussinesqSimpleFoam. From discussions here in the forum I have already found that the alphaEff field should be the kappaEff, therefore I set this already. Unfortunately, I haven't been able to figure out how to set cp for this boundary condition, since there is no field for this available, and even if I create a field "cp" in the 0 folder, I can't use this one.
my boundary condition is set up like this
I don't know about that boundary condition but after having a look to the code here is the problem. In buoyantBoussinesqSimpleFoam, the flow is incompressible basically. So the thermo variable available are restraint to the viscosity. And you don't have any Cp field available.
One solution could be to add the Cp field. But it is not sufficient to add it in the 0 folder you will have also to add it to the solver in "createFields.H" (look how is done for the temperature field). So it will be then available for the boundary condition.
Or the EASY way (better?), use buoyantSimpleFoam. For with it everything will be simpler.
A more easy way should be to set Cp to the correct value, like
I'm new to openfoam and I have the same problem did anyone solve this without having to re-compile it? I suspect there is an easier fix as it seems so simple. In buoyantBoussinesqPisoFoam (and i guess in bBSimpleFOAM too) the boundary condition asks for a volScalarField value so setting:
Cp Cp 1000; // didn't work obviously
I suspect I misunderstood OliverG but anymore advice on this would be great!
You don"t need to add a VolScalarField if your Cp is constant, just use turbulentHeatFluxTemperature like:
First, thankyou for replying. Unfortunately this did not solve my problem. I think its because I am useing the OpenFOAM-1.6-ext project. I am told it's better and has more features, I wouldn't mind knowing which version of OF are you running and why? The error I encountered simply says:
--> FOAM FATAL ERROR:
request for volScalarField uniform from objectRegistry region0 failed
available objects of type volScalarField are
the full error:
|All times are GMT -4. The time now is 01:33.|