|
[Sponsors] |
reactingEulerFoam > functionObjects > phaseForces |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 29, 2020, 04:31 |
reactingEulerFoam > functionObjects > phaseForces
|
#1 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 357
Rep Power: 8 |
hi all,
i'm using the reactingMultiphaseEulerFoam solver. I want to compute the forces for postprocessing. there is a function that does that job, but i don't know how to use it. i look at the source code and it says: Code:
Example of function object specification: \verbatim phaseForces.water { type phaseForces; libs ("libreactingEulerFoamFunctionObjects.so"); writeControl writeTime; writeInterval 1; ... phaseName water; } \endverbatim Code:
functions { phaseForces.water { type phaseForces; libs ("libreactingEulerFoamFunctionObjects.so"); writeControl outputTime; writeInterval 1; log false; phaseName water; } } [1] --> FOAM FATAL IO ERROR: [1] keyword phase is undefined in dictionary "IOstream.functions.phaseForces.water" [1] [1] file: IOstream.functions.phaseForces.water from line 0 to line 0. [1] [1] From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const [1] in file db/dictionary/dictionary.C at line 573. when i run the solver without that it runs without a problem. could anybody please help? thanks and regards. |
|
April 29, 2020, 05:08 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,104
Rep Power: 26 |
Hi,
I don't use reactingEulerFoam but I'll give a try since the error message seems pretty straightforward : Code:
keyword phase is undefined in dictionary "IOstream.functions.phaseForces.water" It complains about the parameter "phase" missing in the definition of the function phaseForces.water. My best guess is that the parameter "phaseName" has been renamed "phase" but the header is not up to date. Try to replace phaseName with phase and see if it solves your problem. Cheers, Yann |
|
April 29, 2020, 05:25 |
|
#3 | |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 357
Rep Power: 8 |
Quote:
thank you very much. obviously the description of the header was not updated. |
||
April 29, 2020, 05:44 |
|
#4 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 357
Rep Power: 8 |
so another problem arose:
i change the phase to np4, which stands for the dispersed phase. i want to compute the turbulent dispersion force for that phase. in the phase property dict i need to write the following: turbulentDispersion ( (np4 in water) { type Burns; sigma 0.75; Ctd 1.0; residualAlpha 1e-3; } ) i also have 5 other dispersed phases which are named np1,...,np6, but only np4 has alpha value above zero, so the others are non-existend. now when i run the solver i get this error message: [0] --> FOAM FATAL ERROR: [0] request for BlendedInterfacialModel<turbulentDispersionModel> BlendedInterfacialModel<turbulentDispersionModel>. np5AndNp4 from objectRegistry region0 failed available objects of type BlendedInterfacialModel<turbulentDispersionModel> are 6 ( BlendedInterfacialModel<turbulentDispersionModel>. np1AndWater BlendedInterfacialModel<turbulentDispersionModel>. np4AndWater BlendedInterfacialModel<turbulentDispersionModel>. np6AndWater BlendedInterfacialModel<turbulentDispersionModel>. np3AndWater BlendedInterfacialModel<turbulentDispersionModel>. np5AndWater BlendedInterfacialModel<turbulentDispersionModel>. np2AndWater ) any ideas? |
|
April 29, 2020, 06:00 |
|
#5 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 357
Rep Power: 8 |
obviously now the program thinks that np4 is continous phase and is looking for dispersedPhase-contiPhase-Pairs and can't find the combination because both are dispersed phases.
i think that it is a bug. |
|
|
|