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

finite volume solver problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2012, 07:24
Cool finite volume solver problem
  #1
Senior Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 102
Rep Power: 14
ufocfd is on a distinguished road
I am developing a uniform compressible finite volume solver,

Runs ok when using a cell size of 2.0 but somethings
going wrong when I reduce the cell size to 0.1 units.

I think the CFL & timestep specification is ok but
I think its related to the update of the Q vector:

RHS = dE/dx + dF/dy + dG/dz

Q(n+1) = Q(n) + RHS*dt/vol, where dt = timestep and vol = cell volume

Is this correct ? Have I missed something obvious ? Thanks.
ufocfd is offline   Reply With Quote

Old   June 20, 2012, 07:37
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by ufocfd View Post
I am developing a uniform compressible finite volume solver,

Runs ok when using a cell size of 2.0 but somethings
going wrong when I reduce the cell size to 0.1 units.

I think the CFL & timestep specification is ok but
I think its related to the update of the Q vector:

RHS = dE/dx + dF/dy + dG/dz

Q(n+1) = Q(n) + RHS*dt/vol, where dt = timestep and vol = cell volume

Is this correct ? Have I missed something obvious ? Thanks.
I see a discrepancy, dimensionally your equation is not correct ...

If V is your Volume, then the equation writes:

d/dt [Integral_V Q dV] + Integral_V Div Flux dV = 0

Therefore:

d/dt [Q_average] + (1/vol) Integral_V Div Flux dV = 0

Hence, your RHS must be vol*(dE/dx + dF/dy + dG/dz)
FMDenaro is offline   Reply With Quote

Old   June 20, 2012, 11:15
Default
  #3
Senior Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 102
Rep Power: 14
ufocfd is on a distinguished road
thanks very much FMD !
ufocfd is offline   Reply With Quote

Reply

Tags
finite volume, rhs update, solver error


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
finite volume VS finite element solomon FLUENT 4 April 3, 2015 01:10
Problem with implicit unsteady solver CCMuser STAR-CCM+ 2 March 3, 2010 12:20
Problem Interface Solid Fluid with wall velocity Solver v12 hills1 CFX 2 October 12, 2009 06:36
About finite volume methods for N-S Lionel BRS Main CFD Forum 6 July 16, 2006 04:15


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