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

Divergence Operator

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2016, 12:29
Default Divergence Operator
  #1
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Dear members,

I am trying to find source code for discretizing divergent operator. I am checking doxygen documents but did not find any. I checked this but it does not have, what I am looking for.

(1) I am interested to find where is actual discretized mathematical form is implemented in a file or I am missing something here.

(2) I am also interested to know, how the flux is calculated. Is it calculated as geometric mean or the arithmetic mean at the face of the cell.

(3) I am trying to discretize div(D(X)*grad(X)), I am not sure how to implement this in openfoam. I am getting errors on this line. I am using like
Code:
fvm::div(DX*fvc::grad(X))
where DX and X is defined as volScalarField.

Looking for help solving above problems.

Thanks.
cute is offline   Reply With Quote

Old   August 17, 2016, 14:29
Default
  #2
Member
 
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 12
Jerryfan is on a distinguished road
Hi cute,


For implicit div operation, there is no fvm::div(some vector field.) as of version 2.3.1. (I don't know about other versions. I only know 2.3.1) The correct way should be:
fvm::div(flux, some vector field).
Jerryfan 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
ANSYS Workbench on "Uncertified" Linux Distros hsr CFX 289 April 20, 2023 09:23
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


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