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

zeroGradient vs fixedGradient vs mixedBC

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By dl6tud
  • 1 Post By malv83

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2013, 14:45
Default zeroGradient vs fixedGradient vs mixedBC
  #1
Member
 
Norbert Weber
Join Date: May 2012
Location: Dresden, Germany
Posts: 37
Rep Power: 14
dl6tud is on a distinguished road
I tried to make my own boundary condition, and discovered, that the mixed boundary condition does not behave as expected. With the following set, I thought it would work like 'zeroGradient' or 'fixedGradient' with gradient=0, but it does not. The Poisson equation for p does not converge ...

type mixed;
gradient 0;
value 0;
valueFraction 0;

Any hints? Mixed boundary condition is a mix of Dirichlet and a normal gradient?
atulkjoy likes this.
dl6tud is offline   Reply With Quote

Old   November 8, 2013, 04:07
Default
  #2
Member
 
Norbert Weber
Join Date: May 2012
Location: Dresden, Germany
Posts: 37
Rep Power: 14
dl6tud is on a distinguished road
I found the solution: As implemented now, the mixed boundary condition can not be used as purely gradient boundary condition (valueFraction = 0).

Quote:
//- Return true if this patch field fixes a value.
// Needed to check if a level has to be specified while solving
// Poissons equations.
virtual bool fixesValue() const
{
return true;
}

Last edited by dl6tud; November 8, 2013 at 10:39.
dl6tud is offline   Reply With Quote

Old   October 5, 2018, 10:30
Default
  #3
Member
 
Alberto
Join Date: Sep 2013
Posts: 37
Rep Power: 12
malv83 is on a distinguished road
Quote:
Originally Posted by dl6tud View Post
I found the solution: As implemented now, the mixed boundary condition can not be used as purely gradient boundary condition (valueFraction = 0).
Hello, I know it is a very old post but still useful. I have one question though, does this mean that we solve the problem changing true by false?

In my current implementation (OpenFOAM 5.x) the default value is true and valueFraction = 0 does not behave as zeroGradient BC
atulkjoy likes this.
malv83 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
second order schemes marine OpenFOAM 67 April 11, 2022 18:19
fixedGradient, zeroGradient? smillion OpenFOAM 16 January 8, 2022 08:17
multiphaseInterFoam: timestep error by simulating a co-extrusion nozzle Quatschinsky OpenFOAM Running, Solving & CFD 7 March 27, 2014 05:08
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 17:08


All times are GMT -4. The time now is 21:55.