|
[Sponsors] |
June 24, 2020, 13:50 |
Negative pressures interFoam
|
#1 |
New Member
pardoa
Join Date: May 2018
Posts: 29
Rep Power: 8 |
Hello,
I'm simulating with interFoam a river reach of 1,5 km long x 50 m wide. The modelling setup is the following: alpha.water Code:
FoamFile { version 2.0; format ascii; class volScalarField; object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type variableHeightFlowRate; lowerBound 0; upperBound 1; value uniform 0; } rightBank { type zeroGradient; } atmosphere { type inletOutlet; inletValue uniform 0; value uniform 0; } riverbed { type zeroGradient; } leftBank { type zeroGradient; } outlet { type zeroGradient; } } Code:
FoamFile { version 2.0; format ascii; class volScalarField; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type zeroGradient; } rightBank { type fixedFluxPressure; } atmosphere { type totalPressure; p0 uniform 0; } riverbed { type fixedFluxPressure; } leftBank { type fixedFluxPressure; } outlet { type totalPressure; p0 uniform 0; } } Code:
FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type variableHeightFlowRateInletVelocity; flowRate 10; alpha alpha.water; value uniform (0 0 0); } rightBank { type noSlip; } atmosphere { type pressureInletOutletVelocity; value uniform (0 0 0); } riverbed { type noSlip; } leftBank { type noSlip; } outlet { type zeroGradient; } } I'm inclined to think that the reason could be in the reference z the model uses for the calculations. The mesh contains absolute coordinates that correspond to an specific datum. This means the cell-centre coordinates of the cell zero aren't 0,0,0 but 624615.45526,195098.08678,693.4758. This cell is located on the upstream bottom of the domain, at the inlet, and its elevation is one of the highest of the mesh. Because of this, the rest of z of the domain will be smaller, which could result in negative values for pressure. Can anyone give me a hand on this? Many thanks in advance. Alvaro |
|
November 11, 2021, 05:54 |
|
#2 |
Member
Alex Jarosch
Join Date: Dec 2015
Location: Austria
Posts: 33
Rep Power: 10 |
Hi Alvaro,
I face the same problem with a similar setup and the negative pressure values are a problem for my case. I was wondering if you have found the reason for this? Any help greatly appreciated. Alex |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |