|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19 ![]() |
I try to describe the role of flux() method and how it achieves it's role in OpenFOAM.
This topic is difficult for me to comprehend, so I'm grad if the following explanations could be of some help ![]()
Please correct the mistakes, if any. Best regards, Fumiya Last edited by fumiya; March 21, 2013 at 10:09. |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 855
Rep Power: 18 ![]() |
Quote:
BTW, do you think Code:
fvScalarMatrix pEqn ( fvm::laplacian(rAU, p) == fvc::div(phiHbyA) ); fvScalarMatrix pEqn ( fvm::div(A*fvc::grad(p)) == fvc::div(phiHbyA) ); |
||
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
longyun wang
Join Date: Dec 2016
Posts: 6
Rep Power: 10 ![]() |
Quote:
I am studing icofoam now, and I found the code: [/CODE] 77 surfaceScalarField phiHbyA 78 ( 79 "phiHbyA", 80 fvc::flux(HbyA) 81 + fvc::interpolate(rAU)*fvc::ddtCorr(U, phi) 82 ); [/CODE] I can't understand why there is an item "fvc::interpolate(rAU)*fvc::ddtCorr(U, phi)"? According to the equation above, there should be only the first item. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19 ![]() |
Hi,
The term "ddtCorr" is considered in the transient solvers. The following references could be of some help: Best regards, Fumiya
__________________
[Personal]
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
yuancong
Join Date: Sep 2016
Posts: 2
Rep Power: 0 ![]() |
i do not think so. fvc::grad(p) returns a volscalarfield. so the second pEqn is actually based on grad(p).
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Member
Join Date: May 2017
Posts: 44
Rep Power: 9 ![]() |
Dear Foamers,
I am trying to add a source term to alpha using mass flux. I am starting with a circle and while using .flux(), I can see my circle changes to a square. I am wondering if .flux() can be used in 2D the same as 1D. Thanks, |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sign of Heat Flux at wall | Kyung | FLUENT | 2 | February 26, 2016 16:25 |
Comparison: Finite Volume Method vs. Analytic Method | m-fry | Main CFD Forum | 1 | April 20, 2010 14:40 |
About the Flux splitting method | maximus | Main CFD Forum | 0 | February 24, 2006 00:05 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |
total mass flux correction for compressible fluid? | Francesco Di Maio | Main CFD Forum | 0 | August 21, 2000 04:23 |