|
[Sponsors] |
July 3, 2013, 17:05 |
Hydrostatic pressure issue
|
#1 |
Member
Join Date: Nov 2011
Posts: 30
Rep Power: 14 |
I am totally confused with the hydrostatic pressure calculations in openfoam. I've prepared a simulation of air flow through a vertical pipe (buoyantBoussinesqSimpleFoam). I've used following BC for pressures:
p Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { Wall { type calculated; value $internalField; } Inlet { type calculated; value $internalField; } Outlet { type fixedMean; meanValue 0; value uniform 0; } } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { Wall { type fixedFluxPressure; rho rhok; value $internalField; } Inlet { type fixedFluxPressure; rho rhok; value $internalField; } Outlet { type fixedMean; meanValue 0; value uniform 0; } } // ************************************************************************* // Code:
p = p_rgh+(H-coordsY)*9.81*1.225 where H is the pipe height, 9.81 is gravity and 1.225 is air density My qestion is: why the original p calculations went so wrong? Is there a mistake in the BC? I've also tried to run calculations without p file in 0 folder. But in next iterations such file was created with incorect pressure field. Please, help me |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recorded Pressure Issue | Benjikos | FLUENT | 0 | November 30, 2010 10:06 |
single phase hydrostatic pressure problem | erkan | FLUENT | 1 | March 1, 2010 12:29 |
Does star cd takes reference pressure? | monica | Siemens | 1 | April 19, 2007 11:26 |
Gas pressure question | Dan Moskal | Main CFD Forum | 0 | October 24, 2002 22:02 |
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) | HB &DS | CFX | 0 | January 9, 2000 13:19 |