CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

unused variable ‘momentumPredictor’

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2010, 03:12
Default unused variable ‘momentumPredictor’
  #1
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 15
RalphS is on a distinguished road
What does it mean?
RalphS is offline   Reply With Quote

Old   October 28, 2010, 03:32
Default
  #2
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17
kathrin_kissling is on a distinguished road
Hi Ralph,

if you apply the momentum predictor the UEqn is solved before the pEqn to get a better velocity field for the matrixcoefficients for the pEqn.
A detailed description can be found for example in Hrvoje Jasak's or Henrik Rusche's PhD thesis. They can be found under

http://powerlab.fsb.hr/ped/kturbo/openfoam/docs/

If I intpret this right. This variable is not used. When does the error message appear? During compilation? If yes you need to decide whether you need a momentum predictor or not.

To get your actual problem... Can you be a little more specific on which solver you are using, what case you are trying to solve ...?

Best

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   October 28, 2010, 04:02
Default
  #3
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 15
RalphS is on a distinguished road
Hi Kathrin,

The error message appear when I compile my_rhoSimpleFoam solver. I have modified the enthalphy equation. The simulation works and the results looks almost fine. I compare my results with a simulation done with starccm+.

I only wanted to get more information about the momentum error message and if it's important for me, in which way it influence my results.
Thanks for the link.

Regards

Ralph
RalphS is offline   Reply With Quote

Old   October 28, 2010, 04:36
Default
  #4
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 15
RalphS is on a distinguished road
Here some more information:

I simulate flow through an elbow. I compare the results with a simulation with starccm+.

The velocity field is identical.
The static pressure field is also identical.
Kinetic energy and eddy-viscosity almost identical.
I also calculate an "Uniformity Index" at the outlet, the value is also comparably.

The distribution of the Temperaturfield is also very analog (With the new total enthalpy equation). But the temperatur is a bit too low, and the density a little bit too high at the outlet. So my total pressure lose is about 50 % too low.

The value of total Temperatur is identical.

I think the total enthalpy equation is not 100 % perfect, or I don't use the right thermophysical model. Have you some idea?
RalphS is offline   Reply With Quote

Old   October 28, 2010, 04:41
Default
  #5
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17
kathrin_kissling is on a distinguished road
Which Foam Version are you using?
In your solver you call "readSimpleControlls.H".

(http://foam.sourceforge.net/doc/Doxy...8H_source.html)

There the bool variable momentumPredictor is read from the fvSolution dictionary.
Afterwards it's not used any longer.

In which line does the compiler find the warning. It is not an error but an unused variable that could get deleted. They just didn't change the "readSimpleControlls.H" file.

In summary, if you don't need a momentum predictor everything is fine.

Best

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   October 28, 2010, 04:45
Default
  #6
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17
kathrin_kissling is on a distinguished road
I was a bit to slow...

For the other problems... sorry I'm not working on compressible flows, so I cannot help further from here...

Best!

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   October 28, 2010, 04:46
Default
  #7
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 15
RalphS is on a distinguished road
Quote:
Originally Posted by kathrin_kissling View Post
Which Foam Version are you using?
In your solver you call "readSimpleControlls.H".

(http://foam.sourceforge.net/doc/Doxy...8H_source.html)

There the bool variable momentumPredictor is read from the fvSolution dictionary.
Afterwards it's not used any longer.

In which line does the compiler find the warning. It is not an error but an unused variable that could get deleted. They just didn't change the "readSimpleControlls.H" file.

In summary, if you don't need a momentum predictor everything is fine.

Best

Kathrin

In my opinion I don't need a momentum predictor.

Thanks

And now I have to find the reason, why I get not the right measuring totalpressure at the outlet
RalphS is offline   Reply With Quote

Old   August 26, 2015, 23:43
Default
  #8
Senior Member
 
Join Date: Jun 2014
Location: Taiwan
Posts: 100
Rep Power: 11
SJSW is on a distinguished road
Could you tell me why the denominator of Uniformity Index is multiplied by 2?
SJSW is offline   Reply With Quote

Old   September 6, 2015, 15:00
Default
  #9
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
I remember exactly Henry had said somewhere that;" Whether to use momentum predictor is rather empirical,"... But I can not locate this post now.
__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to limit a variable ash OpenFOAM Running, Solving & CFD 1 June 26, 2008 20:32
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 08:19
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 04:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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