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

fvc::ddt(alphac) equals zero

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2017, 03:10
Default fvc::ddt(alphac) equals zero
  #1
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
Hello guys,

Below is the pressure equation In MPPICInterFoam:
Code:
fvScalarMatrix p_rghEqn
        (
            fvm::laplacian(Dp, p_rgh)
         ==
            fvc::ddt(alphac) + fvc::div(alphacf*phiHbyA)
        );

//Info << fvc::ddt(alphac);
The problem is that fvc::ddt(alphac) is zero all the time. After commenting out this term, the solver gives the same result.

Below is from Jasak:
HTML Code:
Thus, if you try to evaluate the ddt the way it is written, it will recognise that the field does not have the oldTime() level stored and will use the current value to initialise it. Basically, fvc::ddt(magSqr(U)) will always give you zero, which is wrong.
One reason is that the alphac is so small, but it should not be zero. I am not sure ifs a bug.
__________________
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   July 19, 2019, 07:21
Default
  #2
New Member
 
Rahul Subburaj
Join Date: Apr 2019
Posts: 2
Rep Power: 0
RahulSubbu is on a distinguished road
Dear Sharonyue,
I am also trying to use the MPPICinterFoam. I have a few queries:
1. In the lines of UEqn.H, there is no alphaRhoPhic term. How did they include this term?
2. rhoPhi in alphaEqn.H seems to be similar to alphaRhoPhic.
Thanks in advance.
RahulSubbu is offline   Reply With Quote

Old   June 21, 2021, 10:16
Default
  #3
New Member
 
Armin Alavi
Join Date: May 2019
Location: Tehran
Posts: 22
Rep Power: 6
ArminAlavi is on a distinguished road
Hello Dongyue
I am facing the very same problem you had, and I wonder if you have managed to solve it. I am using OpenFoam6 by the way. I would really appreciate it if you could share your idea on this problem.
ArminAlavi is offline   Reply With Quote

Old   October 4, 2021, 04:49
Default alphaEqn.H has a bug
  #4
New Member
 
Rahul Subburaj
Join Date: Apr 2019
Posts: 2
Rep Power: 0
RahulSubbu is on a distinguished road
Quote:
Originally Posted by ArminAlavi View Post
Hello Dongyue
I am facing the very same problem you had, and I wonder if you have managed to solve it. I am using OpenFoam6 by the way. I would really appreciate it if you could share your idea on this problem.
Dear Armin,
I found a way to fix this issue. Change the nAlphaSubCycles in fvSolution to 1. Apparently having more than 1 subcycles defaults the ddtalphac to zero. Hope this helps!

Best regards,
Rahul Subburaj
RahulSubbu 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
Does pressure drop equals the dissipation within the fluid domain Onze Main CFD Forum 0 December 25, 2016 01:38
How to get motionU_ liu OpenFOAM Running, Solving & CFD 18 June 20, 2007 13:34


All times are GMT -4. The time now is 22:05.