|
[Sponsors] |
January 6, 2014, 08:36 |
switch between zerogradient and fixedvalue
|
#1 |
New Member
liyu
Join Date: Jan 2014
Location: Beijing
Posts: 10
Rep Power: 12 |
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"? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |