CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

reactingEulerFoam > functionObjects > phaseForces

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2020, 04:31
Default reactingEulerFoam > functionObjects > phaseForces
  #1
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
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.
geth03 is offline   Reply With Quote

Old   April 29, 2020, 05:08
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,074
Rep Power: 26
Yann will become famous soon enough
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 likes this.
Yann is offline   Reply With Quote

Old   April 29, 2020, 05:25
Default
  #3
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
Quote:
Originally Posted by Yann View Post
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 is offline   Reply With Quote

Old   April 29, 2020, 05:44
Default
  #4
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
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 is offline   Reply With Quote

Old   April 29, 2020, 06:00
Default
  #5
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
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.
geth03 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 16:10.