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

Divergence of a scalarField in two forms

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

Reply
 
LinkBack Thread Tools 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: 6
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: 116
Rep Power: 6
Bloerb is on a distinguished road
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

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
PEMFC model with FLUENT brahimchoice FLUENT 15 July 23, 2017 21:59
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 13 May 26, 2014 09:05
Divergence problem Smaras FLUENT 13 February 21, 2013 06:03
3d vof Smaras FLUENT 2 February 19, 2013 07:58


All times are GMT -4. The time now is 09:01.