CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Problem while writing pressure file "buoyantPressure" (http://www.cfd-online.com/Forums/openfoam/80659-problem-while-writing-pressure-file-buoyantpressure.html)

ubaid October 2, 2010 14:07

Problem while writing pressure file "buoyantPressure"
 
Hello Everybody,

I am trying to write pressure file with buoyantPressure as a patch type. Actually I dont get any error, but I want to get output with rho = rhok, but I am getting output as rho = rho;

pressure is declared as below:

volScalarField p (IOobject("p",runTime.timeName(),mesh,IOobject::NO _READ,IOobject::AUTO_WRITE), mesh,dimensionedScalar("p",dimensionSet(0,2,-2,0,0,0,0),101325),"buoyantPressure");

it gives output as follows:

dimensions [0 2 -2 0 0 0 0];
internalField uniform 101325;

boundaryField
{
A
{
type buoyantPressure;
gradient uniform 0;
rho rho;
value 101325;

}
}


but I want to get an output as follows;


dimensions [0 2 -2 0 0 0 0];
internalField uniform 101325;

boundaryField
{
A
{
type buoyantPressure;
gradient uniform 0;
rho rhok;
value 101325;

}
}

I dont know further, how can I turn rho into rhok.

Thanks a lot in advance.
Best Regards,


All times are GMT -4. The time now is 04:43.