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

Discretization

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 6, 2011, 19:29
Default Discretization
  #1
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 5
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
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 546
Rep Power: 18
chegdan 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: 5
hawkeye321 is an unknown quantity at this point
Daniel
Thank you for your help.
hawkeye321 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
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
Spatial vs Angular Discretization in DO radiation model renaldi FLUENT 0 June 1, 2009 10:52
Low-Re and second order discretization Ralf CD-adapco 1 May 11, 2006 10:16


All times are GMT -4. The time now is 08:47.