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

DDt

Register Blogs Community New Posts Updated Threads Search

Like Tree18Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2012, 10:51
Default
  #21
Member
 
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 14
iamed18 is on a distinguished road
Quote:
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.

Gavin
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 10:47. Reason: added definition of [MATH]\phi[/MATH], figured it out.
iamed18 is offline   Reply With Quote

Old   September 9, 2016, 04:03
Default .oldTime(); in chtMultiregionFoam
  #22
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 11
Mohammad Jam is on a distinguished road
Hi

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

Old   January 19, 2021, 06:10
Default Re: How to write material derivative of ln(T) in the consitutive equation
  #23
Member
 
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7
idrees khan is on a distinguished road
Hi Dear Former's
I'm going to Add temperature Equation to viscoelasticFluidFoam solver.
there is material derivative term of log(T)(screenshot attached) in the constitutive equation(I.e in this case Olroyd-B)

kindly any could guide me how to erite the that term in OldoydB.C file



I write it like fvm::ddt(tau_,logT) + fvc::div(phi()*tau_,logT)

Note:change to fvc and fvm respectively but getting same error's.(scrrenshot Attached)


regards
Idrees khan
Attached Images
File Type: png Screenshot from 2021-01-15 16-32-25.png (41.1 KB, 0 views)
File Type: png Screenshot from 2021-01-19 09-14-50.png (66.9 KB, 1 views)
idrees khan is offline   Reply With Quote

Old   January 19, 2021, 06:57
Default How to write material derivative of ln(T) in the consitutive equation
  #24
Member
 
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7
idrees khan is on a distinguished road
Hi Dear Former's
I'm going to Add temperature Equation to viscoelasticFluidFoam solver.
there is material derivative term of log(T)(screenshot attached) in the constitutive equation(I.e in this case Olroyd-B)

kindly any could guide me how to erite the that term in OldoydB.C file



I write it like fvm::ddt(tau_,logT) + fvc::div(phi()*tau_,logT)

Note:change to fvc and fvm respectively but getting same error's.(scrrenshot Attached)


regards
Idrees khan
Attached Images
File Type: png Screenshot from 2021-01-15 16-32-25.png (41.1 KB, 0 views)
File Type: png Screenshot from 2021-01-19 09-16-32.png (54.3 KB, 0 views)
idrees khan is offline   Reply With Quote

Old   January 19, 2021, 07:04
Default How to write material derivative of ln(T) in the consitutive equation
  #25
Member
 
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7
idrees khan is on a distinguished road
Hi Dear Former's
I'm going to Add temperature Equation to viscoelasticFluidFoam solver.
there is material derivative term of log(T)(screenshot attached) in the constitutive equation(I.e in this case Olroyd-B)

kindly any could guide me how to erite the that term in OldoydB.C file



I write it like fvm::ddt(tau_,logT) + fvc::div(phi()*tau_,logT)

Note:change to fvc and fvm respectively but getting same error's.(scrrenshot Attached)


regards
Idrees khan
Attached Images
File Type: png Screenshot from 2021-01-15 16-32-25.png (41.1 KB, 1 views)
File Type: png Screenshot from 2021-01-19 09-14-50.png (66.9 KB, 0 views)
idrees khan is offline   Reply With Quote

Reply

Tags
ddt, lagrangian derivative


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



All times are GMT -4. The time now is 10:27.