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

Divergence of a scalarField in two forms

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2016, 08:17
Default Divergence of a scalarField in two forms
  #1
Member
 
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 13
RaghavendraRohith is on a distinguished road
Hi All,

I am a little enthusiastic to know about the difference between these convective terms


Code:
cp*fvm::(phi, T)
Code:
fvm::(phi, cp*T)
Using pen and paper the product seems to be equal

In the first case the divergence of a surfaceScalarField, phi and a volScalarField, T is a scalarField which is multiplied by a ScalarField cp resulting in a ScalarField.

In the second case the product of two scalarFields cp and T is a volScalarfield. The divergence of the volScalarField obtained through product and a surfaceScalarField phi is a ScalarField.

Can somebody tell me the strong difference between these two notations.

Thanking you in Advance,
Best Regards,
Rohith

Last edited by RaghavendraRohith; August 23, 2016 at 10:45.
RaghavendraRohith is offline   Reply With Quote

Old   August 23, 2016, 10:34
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
You should check that again

For a scalar s and a vector v:
div(s*v) = s*div(v)+v & grad(s)

Hence it is only equal if cp is a constant scalar.
Bloerb 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
PEMFC model with FLUENT brahimchoice FLUENT 22 April 19, 2020 15:44
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 07:54
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
Divergence problem Smaras FLUENT 13 February 21, 2013 05:03
3d vof Smaras FLUENT 2 February 19, 2013 06:58


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