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

Calculation of motion continuity error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By thomasArk47

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2013, 05:41
Default Calculation of motion continuity error
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Hi Dear Foamers,

I am trying to understand calculating of motion continuity error.
I think first line in below code is creating an object without any dimension and I don't understand the meaning of [d/dt ( Object ) ] . Also I couldn't understand what do meshPhi(U) do exactly .
Code:
volScalarField motionContErr =
        fvc::ddt(dimensionedScalar("1", dimless, 1.0), mesh)
      - fvc::div(fvc::meshPhi(U));
Can anybody help me for understanding this code?
I appreciate any help from you.

Thanks and best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Old   March 11, 2016, 15:24
Default
  #2
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18
sharonyue is on a distinguished road
Hi,

This is for space conservative law equation, check it out in Peric:

\frac{\partial 1}{\partial t} - \nabla \cdot u_b = 0

__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue is offline   Reply With Quote

Old   March 12, 2016, 17:15
Default
  #3
Member
 
Thomas Boucheres
Join Date: May 2013
Posts: 41
Rep Power: 13
thomasArk47 is on a distinguished road
Hello,

Sharonyue gives you good answer but maybe not so easy to understand if you are "new" to CFD discretization techniques If it is the case, maybe it is difficult to understand what means the time derivative of 1. Isn't it equalt to zero???

In fact, if you want to really understand the meshPhi(U) goal, you should read some courses on the topic "ALE technique" (for Arbitrary Lagrangian Eulerian) which allows the computation of flows on moving meshes. One difficulty in doing that is to respect a "hidden" conservation law which is called in the litterature the "GCL" (for Geometric Conservation Law). Roughly speaking, the time evolution of the mesh must be done in such a way that one respect a kind of compatibility condition( the so-called GCL) between the temporal evolution of the volume of a cell and the face flux resulting from the velocity associated with the mesh motion. This is precisely the meaning of the equation writtent by Sharonyue.
sharonyue likes this.
thomasArk47 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
Problem running perturbUCyl sen.1986 OpenFOAM 17 June 4, 2019 06:56
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 08:11
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43


All times are GMT -4. The time now is 17:52.