CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Community Contributions

[swak4Foam] and twoPhaseEulerFoam

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

LinkBack Thread Tools Display Modes
Old   February 5, 2016, 04:56
Default and twoPhaseEulerFoam
Join Date: May 2015
Posts: 32
Rep Power: 4
mnikku is on a distinguished road
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

(with aliases to avoid confusion with _ . and () ) without success. All tries end up with this error in the beginning of the simulation:

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

 Parser Error for driver PatchValueExpressionDriver at "1.5-8" :"field aRP not existing or of wrong type"
, where ARP is my alias for alphaRhoPhi.

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!
mnikku is offline   Reply With Quote

Old   February 19, 2016, 06:21
Join Date: May 2015
Posts: 32
Rep Power: 4
mnikku is on a distinguished road
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":
whichFields {
   type listRegisteredObjects;
This gives a list of objects visible to swak4foam.

So, lets see if this remedies the mass conservation issues.
mnikku is offline   Reply With Quote


swak4foam, twophaseeulerfoam

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
twoPhaseEulerFoam fluidized bed wrong results FabianB OpenFOAM Running, Solving & CFD 0 June 14, 2017 03:48
twoPhaseEulerFoam: sudden crash hcen OpenFOAM Running, Solving & CFD 8 October 5, 2016 06:55
residuals for velocity - twoPhaseEulerFoam OpenFOAM Running, Solving & CFD 0 November 12, 2015 20:35
Is twoPhaseEulerFoam applicable to 3D cases / delivering erroneous results? ThomasV OpenFOAM 0 November 11, 2013 09:10
twoPhaseEulerFoam freemankofi OpenFOAM 0 May 23, 2011 16:24

All times are GMT -4. The time now is 18:59.