CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   reactingEulerFoam > functionObjects > phaseForces (https://www.cfd-online.com/Forums/openfoam-pre-processing/226490-reactingeulerfoam-functionobjects-phaseforces.html)

geth03 April 29, 2020 04:31

reactingEulerFoam > functionObjects > phaseForces
 
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

so i type in in controlDict exactly that:
Code:

functions
{

        phaseForces.water
        {
                type                phaseForces;
                libs ("libreactingEulerFoamFunctionObjects.so");
        writeControl    outputTime;
        writeInterval  1;
        log            false;
                phaseName      water;
        }
}

however i get lots of error messages, one of them is that:
[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.

Yann April 29, 2020 05:08

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

geth03 April 29, 2020 05:25

Quote:

Originally Posted by Yann (Post 767807)
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

yes Sir that solved the problem,
thank you very much.

obviously the description of the header was not updated.

geth03 April 29, 2020 05:44

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?

geth03 April 29, 2020 06:00

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.


All times are GMT -4. The time now is 08:25.