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

unused variable ‘momentumPredictor’

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 28, 2010, 03:12
Default unused variable ‘momentumPredictor’
  #1
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 6
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: 7
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: 6
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: 6
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: 7
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: 7
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: 6
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

Reply

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
How to limit a variable ash OpenFOAM Running, Solving & CFD 1 June 26, 2008 20:32
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 09: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 15:54.