CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD


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

Like Tree13Likes

LinkBack Thread Tools Display Modes
Old   June 12, 2012, 09:51
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 7
iamed18 is on a distinguished road
Originally Posted by grtabor View Post
Its to do with the discretisation of the

U & fvc::grad(T)

term. In the FVM we discretise this using Gauss theorem, converting it into fluxes into and out of the domain. If we discretise the term written like this then it is not guaranteed to preserve conservation of the quantity being advected (here essentially the energy); i.e. your derivative may be loosing or gaining energy. If you do some manipulation of the term to get it into the form

fvc::div(phi, T)

where phi is essentially the same as U, then when we apply Gauss we get something which preserves continuity at the _numerical_ level, rather than the mathematical level. This would be a strong conservative implementation.

Forgive my lack of mathematical background, but is there someone that would be able to show the manipulation steps such that
\vec{U}\cdot\nabla\vec{U}=\nabla\cdot(\phi\vec{U}) where \phi=\vec{U}\cdot\vec{S}_f?
I've taken a few whacks at it and my lack of FVM, I think, is making me miss some obvious connection.

Many thanks to whomever is able to assist me!

Edit: Nevermind. Figured it out. Odd way, though it works.

Last edited by iamed18; June 15, 2012 at 09:47. Reason: added definition of [MATH]\phi[/MATH], figured it out.
iamed18 is offline   Reply With Quote

Old   September 9, 2016, 03:03
Default .oldTime(); in chtMultiregionFoam
Join Date: Oct 2015
Location: montreal- canada
Posts: 45
Rep Power: 4
Mohammad Jam is on a distinguished road

How to implement .oldTime(); after writing volScalarField in chtMultiregionFoam?

When i do that it gives this error:
class Foam::PtrList<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’ has no member named ‘oldTime’
Mohammad Jam is offline   Reply With Quote


ddt, lagrangian derivative

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

All times are GMT -4. The time now is 07:33.