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

rhoCentralFoam: two questions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 21, 2012, 02:03
Default rhoCentralFoam: two questions
  #1
Super Moderator
 
praveen's Avatar
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 249
Blog Entries: 6
Rep Power: 9
praveen is on a distinguished road
In rhoCentralFoam, there is a line like

https://github.com/OpenFOAM/OpenFOAM...ralFoam.C#L190

Where is this variable used ? It seems like commenting this lines has no effect.

Secondly, here

https://github.com/OpenFOAM/OpenFOAM...ralFoam.C#L196

one sees

fvm:ddt(rho,U) - fvc::ddt(rho,U)

but this equation does not make sense. It seems to me that fvc::ddt(rho,U) is identically zero, as discussed here

DDt
praveen is offline   Reply With Quote

Old   October 21, 2012, 02:55
Default
  #2
Super Moderator
 
praveen's Avatar
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 249
Blog Entries: 6
Rep Power: 9
praveen is on a distinguished road
I think I understand the second question.

Solve density equation: \rho^o \to \rho^n

Solve momentum equation with only inviscid terms; this gives an intermediate estimate of the velocity u^o \to u^*

Update velocity to current time level n by taking account of viscous terms

\textrm{fvm::ddt(rho,u) - fvc::ddt(rho,u)} = \frac{\rho^n u^n - \rho^o u^o}{\Delta t} - \frac{\rho^n u^* - \rho^o u^o}{\Delta t} = \frac{\rho^n u^n - \rho^n u^*}{\Delta t}
praveen 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
rhoCentralFoam solver with Slip BCs fails in Parallel Only JLight OpenFOAM Running, Solving & CFD 2 October 11, 2012 21:08
possible interview questions atturh Main CFD Forum 1 February 21, 2012 09:53
NACA0012 Validation Case Questions ozzythewise Main CFD Forum 3 August 3, 2010 14:39
novice star ccm+ questions apc3161 STAR-CCM+ 2 August 25, 2009 10:15
Few questions phi FLUENT 0 March 4, 2005 10:23


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