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

Confused with '==' in UEqn

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

Like Tree2Likes
  • 2 Post By keepfit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2014, 12:50
Default Confused with '==' in UEqn
  #1
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13
keepfit is on a distinguished road
Hi Foamers,

I have few questions on the UEqn in OpenFoam:

e.g.

1. understandable UEqn in pisoFoam

Quote:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
);
and

Quote:
if (momentumPredictor)
{
solve(UEqn == -fvc::grad(p));
}
so the full equation for U is:

Quote:
fvm::ddt(U)+ fvm::div(phi, U) + turbulence->divDevReff(U) == -fvc::grad(p)
2. confused with this UEqn in pimpleFoam (OF 2.2.2), namely the ' ==':

Quote:
tmp<fvVectorMatrix> UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
==
fvOptions(U)
);
and

Quote:
if (pimple.momentumPredictor())
{
solve(UEqn() == -fvc::grad(p));
fvOptions.correct(U);
}
So in this case the full equation is ??

Quote:
fvm::ddt(U)+ fvm::div(phi, U) + turbulence->divDevReff(U)
== fvOptions(U)
== -fvc::grad(p)
but this seems not logical, should it be like this?

Quote:
fvm::ddt(U)+ fvm::div(phi, U) + turbulence->divDevReff(U) - fvOptions(U)
== -fvc::grad(p)
Why is there a '==' in the UEqn ?


Cheers,

Daivd
raj kumar saini and nepomnyi like this.

Last edited by keepfit; June 9, 2014 at 15:00.
keepfit is offline   Reply With Quote

Old   June 9, 2014, 23:22
Default
  #2
Member
 
xuhe-openfoam
Join Date: Aug 2013
Location: DaLian,china
Posts: 82
Rep Power: 12
bieshuxuhe is on a distinguished road
hi,
you could watch this .
HTML Code:
http://www.cfd-online.com/Forums/openfoam-programming-development/85013-operator.html
it is a little long to read , but you could understand the "==" well after reading!


best wish
xuhe
bieshuxuhe is offline   Reply With Quote

Old   June 10, 2014, 10:11
Default
  #3
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13
keepfit is on a distinguished road
Quote:
Originally Posted by bieshuxuhe View Post
hi,
you could watch this .
HTML Code:
http://www.cfd-online.com/Forums/openfoam-programming-development/85013-operator.html
it is a little long to read , but you could understand the "==" well after reading!


best wish
xuhe
thanks xuhe, I will look to that post.
keepfit is offline   Reply With Quote

Reply

Tags
openfoam2.2.x, ueqn

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
interFoam's UEqn. sharonyue OpenFOAM Programming & Development 6 July 11, 2016 03:36
A question about UEqn sonicFoam lfgmarc OpenFOAM Programming & Development 6 February 1, 2015 17:49
talk about the most suitable way to discretize diffusion term in UEqn bieshuxuhe OpenFOAM Programming & Development 1 April 16, 2014 11:10
Difference between UEqn in sonicFoam & Theory sasanghomi OpenFOAM Programming & Development 9 June 27, 2013 05:12
Source term problem in UEqn of simpleFoam fisch OpenFOAM Programming & Development 1 June 17, 2011 11:57


All times are GMT -4. The time now is 01:32.