CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

switch between zerogradient and fixedvalue

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2014, 08:36
Default switch between zerogradient and fixedvalue
  #1
New Member
 
liyu
Join Date: Jan 2014
Location: Beijing
Posts: 10
Rep Power: 12
ahliyu is on a distinguished road
hi,everyone~
i am a rookie of openfoam.
currently, i am simulating DEM with the model in /lagrangian/icoUncoupledKinematicParcelFoam/hopper/.
i'd like to switch the bottom outlet between "wall" and "zerogradient", so that i can control the flowrate of particles running out of the hopper.
i write the groovyBC as follows:

outlet
{
type groovyBC;
valueExpression "vector(0,0,0)";
gradientExpression "vector(0,0,0)";
fractionExpression "(sum(mass)>0.359)?0:1";
value uniform (0 0 0);
}


as shown, when the total mass is less than 0.359, i want to stop the leakage of particles.
i set type of outlet in blockmeshdic as "patch".
as last, there is no mistakes but the leakage of particles does not stop as i expect when the total mass is less than 0.359.

any suggestions will be appreciated.

and i have no idea whether there is a BC that can switch between "wall" and "zerogradient"?
ahliyu 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
BuoyantBoussinesqPimpleFoam Modification for LES Capability simonsg OpenFOAM 11 July 20, 2017 12:31
multiphaseInterFoam: timestep error by simulating a co-extrusion nozzle Quatschinsky OpenFOAM Running, Solving & CFD 7 March 27, 2014 06:08
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 15:16
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 18:08
FOAM FATAL IO ERRORsimpleFoam hariya03 OpenFOAM Running, Solving & CFD 6 July 16, 2008 09:03


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