|
[Sponsors] |
February 5, 2016, 04:56 |
and twoPhaseEulerFoam
|
#1 |
Member
Join Date: May 2015
Posts: 34
Rep Power: 11 |
Hi,
I have been trying to do some circulating fluidized bed simulations with twoPhaseEulerFoam and utilizing groovyBC for circulation of the elutriated particles back to the system. I am using openFoam-3.0.1 and swak4foam-0.4.0 (managed to get it working with these instructions). I've had a lot of problems with mass (or energy) conservation (probably more on these issues on other posts after this test) and I am currently trying to eliminate possible sources of errors, one of which could be the particle circulation code. The swak4foam code was taken from here but I was recently told that twoPhaseEulerFoam solver uses alphaRhoPhi-variables (1 and 2) for mass flow of both phases (twoPhaseEulerFoam/createFields.H). The problem is that I cannot/don't konw how to use this variable directly for swak4foam. I have tried variables Code:
phase1_.alphaRhoPhi(); alphaRhoPhi1; phase1.alphaRhoPhi(); Code:
PIMPLE: iteration 1 swak4Foam: Setting default mesh swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function ConcretePluginFunction<DriverType>::exists in file lnInclude/ConcretePluginFunction.C at line 121 Constructor table of plugin functions for PatchValueExpressionDriver is not initialized --> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.5-8" :"field aRP not existing or of wrong type" This leaves me with several questions: 1) What variables can swak4foam get from a solver? Are they predefined somehow somewhere or do they need to be saved to a file? 2) How to successfully implement this kind of circulation code? It was also suggested that this circulation could be done with a custom boundary condition, but I would rather utilize this simpler and (to me) less complex method. Thanks in advance! |
|
February 19, 2016, 06:21 |
|
#2 |
Member
Join Date: May 2015
Posts: 34
Rep Power: 11 |
So the correct answer to this issue was "alphaRhoPhi.particles" which is quite logical, silly me...
Way to confirm this was by adding this to the "controlDict" under "functions": Code:
whichFields { type listRegisteredObjects; } So, lets see if this remedies the mass conservation issues. |
|
Tags |
swak4foam, twophaseeulerfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
twoPhaseEulerFoam: sudden crash | hcen | OpenFOAM Running, Solving & CFD | 18 | September 29, 2020 04:04 |
residuals for velocity - twoPhaseEulerFoam | avila.vc | OpenFOAM Running, Solving & CFD | 1 | May 27, 2019 08:37 |
twoPhaseEulerFoam fluidized bed wrong results | FabianB | OpenFOAM Running, Solving & CFD | 0 | June 14, 2017 04:48 |
Is twoPhaseEulerFoam applicable to 3D cases / delivering erroneous results? | ThomasV | OpenFOAM | 0 | November 11, 2013 09:10 |
twoPhaseEulerFoam | freemankofi | OpenFOAM | 0 | May 23, 2011 17:24 |