CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Climbing inlet pressure with simpleFoam and directMappedPatches

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2011, 13:14
Default Climbing inlet pressure with simpleFoam and directMappedPatches
  #1
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Hello,

I've been racking my brain trying to figure this one out and its stumped me. I'm using a really complicated 3d Mesh over the domain below:



and it has been decomposed in scotch like so:



All works fine (no errors) with simpeFoam and directMapped patches and I get convergence plots looking like



I'm monitoring point values around the domain in various locations and everything just keeps increasing linearly. Nothing seems to be topping off and evening out. On courser meshes, I do get some flattening of values...but im interested in the fine mesh. I am looking at changing my pRefCell to someplace different...but Im not sure if that will help. I also tried to use cyclic boundary conditions and make a simpleChannelFoam hybrid of channelFoam and simpleFoam with no luck on convergence (in the channel solver, i get pretty crazy gradP within 10 iterations). Any thoughts? Could it be my discretization using linearUpwind? Sorry for the large pictures in the post. Patch summary is :

Code:
Time = 2001

Valid fields:
    volScalarField	nut
    volVectorField	U
    volScalarField	k
    volScalarField	p
    volScalarField	epsilon

wall: particles
    scalar		nut		calculated
    scalar		k		zeroGradient
    scalar		p		zeroGradient
    scalar		epsilon		zeroGradient
    vector		U		fixedValue

wall: tube
    scalar		nut		calculated
    scalar		k		zeroGradient
    scalar		p		zeroGradient
    scalar		epsilon		zeroGradient
    vector		U		fixedValue

patch: outlet
    scalar		nut		zeroGradient
    scalar		k		zeroGradient
    scalar		p		fixedValue
    scalar		epsilon		zeroGradient
    vector		U		zeroGradient

symmetryPlane: zyplane
    scalar		nut		symmetryPlane
    scalar		k		symmetryPlane
    scalar		p		symmetryPlane
    scalar		epsilon		symmetryPlane
    vector		U		symmetryPlane

symmetryPlane: zxplane
    scalar		nut		symmetryPlane
    scalar		k		symmetryPlane
    scalar		p		symmetryPlane
    scalar		epsilon		symmetryPlane
    vector		U		symmetryPlane

directMappedPatch: inlet
    scalar		nut		zeroGradient
    scalar		k		directMapped
    scalar		p		zeroGradient
    scalar		epsilon		directMapped
    vector		U		directMapped

End
chegdan is offline   Reply With Quote

Old   January 2, 2012, 19:35
Default figured out a solution to my problem
  #2
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Just thought I would provide an answer in case anyone else is looking for an answer. I ended up using an inletOutlet condition for velocity at the exit with

Code:
    outlet
    {
        type            inletOutlet;
        inletValue      uniform ( 1e-20 1e-20 1e-20 );
        value           uniform ( 0 0 1 );
    }
and I used a fixedMeanValue boundary condition for pressure that can be found at (http://www.cfd-online.com/Forums/ope...condition.html). The condition can be used with

Code:
    outlet
    {
        type            fixedMeanValue;
        value           uniform 1;
        meanValue       1e-20;
    }
using this with limited schemes and celllimited gradient schemes on a polyhedral mesh....the rise in pressure eventually leveled out. I monitored the pressure drop between the inlet and outlet and once that was constant, 10 probe points were constant, and the residuals dropped to a level lower than 1e-4 it was an acceptable answer.
chegdan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:25.