|
[Sponsors] |
August 17, 2016, 12:29 |
Divergence Operator
|
#1 |
Member
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10 |
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)) Looking for help solving above problems. Thanks. |
|
August 17, 2016, 14:29 |
|
#2 |
Member
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 12 |
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). |
|
|
|
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 |