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

Discretization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2011, 19:29
Default Discretization
  #1
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14
hawkeye321 is an unknown quantity at this point
Hi Guys

As you all may know, the form of the discretized momentum equation that have been used in OpenFOAM's icoFoam solver is based on the general Scalar Transport equation which has term "del.(U Phi)" and has been discretized in the following way

"fvm :: div(phi, U)"

My question is that how can I discretize it based on familar N.S. equation form which includes U.del(Phi).

I tried "U & (fvc::grad(phi))" but it produced the follwoing error

"no match for ‘operator&’ in ‘Foam:perator+(const Foam::tmp<Foam::fvMatrix<Type> >&, const Foam:imensionedField<Type, Foam::volMesh>&)"

I would appriciate your commments.
hawkeye321 is offline   Reply With Quote

Old   September 7, 2011, 17:30
Default
  #2
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by mahdiiowa View Post
Hi Guys

As you all may know, the form of the discretized momentum equation that have been used in OpenFOAM's icoFoam solver is based on the general Scalar Transport equation which has term "del.(U Phi)" and has been discretized in the following way

"fvm :: div(phi, U)"

My question is that how can I discretize it based on familar N.S. equation form which includes U.del(Phi).

I tried "U & (fvc::grad(phi))" but it produced the follwoing error

"no match for ‘operator&’ in ‘Foam:perator+(const Foam::tmp<Foam::fvMatrix<Type> >&, const Foam:imensionedField<Type, Foam::volMesh>&)"

I would appriciate your commments.
div(phi,U) is actually your div(UU) term in the NS equation. As you probably know already:

div(UU) = U & grad(U) + U*div(U)

for incompressible flow at a low residual...div(U) goes to zero and

div(UU) = U & grad(U)

so...div(UU) is considered the conservative form of the equation. hope this helps.

Dan
chegdan is offline   Reply With Quote

Old   September 7, 2011, 17:56
Default
  #3
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14
hawkeye321 is an unknown quantity at this point
Daniel
Thank you for your help.
hawkeye321 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
Spatial vs Angular Discretization in DO radiation model renaldi FLUENT 1 February 16, 2024 08:47
Convergence and discretization karananand FLUENT 3 August 29, 2010 06:07
Discretization and convergence karananand Main CFD Forum 0 August 4, 2010 16:19
Space and time discretization of Euler equation Hooman Main CFD Forum 2 June 6, 2010 08:30
Low-Re and second order discretization Ralf Siemens 1 May 11, 2006 10:16


All times are GMT -4. The time now is 04:35.