CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

switch between zerogradient and fixedvalue

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

LinkBack Thread Tools Display Modes
Old   January 6, 2014, 08:36
Default switch between zerogradient and fixedvalue
New Member
Join Date: Jan 2014
Location: Beijing
Posts: 10
Rep Power: 5
ahliyu is on a distinguished road
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:

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


Thread Tools
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 On
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 11:31
multiphaseInterFoam: timestep error by simulating a co-extrusion nozzle Quatschinsky OpenFOAM Running, Solving & CFD 7 March 27, 2014 06:08
Air Conditioned room groovyBC Sebaj OpenFOAM 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 08:03

All times are GMT -4. The time now is 09:50.