|
[Sponsors] |
March 25, 2015, 09:22 |
|
#21 |
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16 |
Hi all
I have only the question why divU = fvc::div(phi) When we see in the prof. Jasak's PhD in Eqn. 3.15 we have that: divU = sum(S.Uf)/Vp where Vp is a volume of the cell. So why in the code we don't have to do division by the cell volume?
__________________
best regards pblasiak |
|
May 26, 2018, 04:23 |
|
#22 | |
New Member
Join Date: Apr 2018
Posts: 3
Rep Power: 8 |
Quote:
How did you find out these numerical values? i am very new to OF. so my question might appear as silly. But, please do reply. Thanks in advance!! |
||
May 26, 2018, 04:28 |
|
#23 | |
New Member
Join Date: Apr 2018
Posts: 3
Rep Power: 8 |
Quote:
|
||
May 26, 2018, 10:23 |
|
#24 |
Member
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 14 |
||
May 26, 2018, 10:30 |
|
#25 |
New Member
Join Date: Apr 2018
Posts: 3
Rep Power: 8 |
||
July 1, 2018, 13:44 |
|
#26 | |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
Quote:
2. However, I am still confused that why fvc::div(U) = fvc::div(phi) ? Isn't the phi = U*A? |
||
October 13, 2020, 01:39 |
Display value of fvc::div(HbyA)
|
#27 | |
New Member
Duc Anh
Join Date: Dec 2018
Posts: 22
Rep Power: 8 |
Quote:
Code:
volScalarField rAU(1.0/UEqn.A()); volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p)); surfaceScalarField phiHbyA ( "phiHbyA", fvc::flux(HbyA) + MRF.zeroFilter(fvc::interpolate(rAU)*fvc::ddtCorr(U, phi)) ); Info<<"fvc::div(phiHbyA): "<<fvc::div(phiHbyA)<<endl; Info<<"fvc::div(HbyA): "<<fvc::div(HbyA)<<endl; Code:
FOAM FATAL IO ERROR: keyword div(HbyA) is undefined in dictionary "/home/anh/OpenFOAM/anh-6/applications/solvers/src/cyclicSimpleFoam/system/fvSchemes.divSchemes" Code:
divSchemes { default none; div(HybA) Gauss upwind; //vda add // div(U) Gauss upwind; //vda add div(phi,U) bounded Gauss linearUpwind grad(U); div(phi,k) bounded Gauss limitedLinear 1; div(phi,epsilon) bounded Gauss limitedLinear 1; div(phi,omega) bounded Gauss limitedLinear 1; div(phi,v2) bounded Gauss limitedLinear 1; div((nuEff*dev2(T(grad(U))))) Gauss linear; div(nonlinearStress) Gauss linear; } |
||
October 13, 2020, 09:35 |
|
#28 |
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16 |
add this
Code:
div(HbyA) Gauss upwind; you have the typo "HybA" instead of "HbyA"
__________________
best regards pblasiak |
|
October 13, 2020, 10:13 |
|
#29 | |
New Member
Duc Anh
Join Date: Dec 2018
Posts: 22
Rep Power: 8 |
Quote:
Code:
divSchemes { default none; div(HbyA) Gauss upwind; //vda add // div(U) Gauss upwind; //vda add div(phi,U) bounded Gauss linearUpwind grad(U); div(phi,k) bounded Gauss limitedLinear 1; div(phi,epsilon) bounded Gauss limitedLinear 1; div(phi,omega) bounded Gauss limitedLinear 1; div(phi,v2) bounded Gauss limitedLinear 1; div((nuEff*dev2(T(grad(U))))) Gauss linear; div(nonlinearStress) Gauss linear; } Code:
fvc::div(HbyA): --> FOAM FATAL IO ERROR: attempt to read beyond EOF file: /home/anh/OpenFOAM/anh-6/applications/solvers/src/vda_meanVelocityForce/testcode/cyclicSimpleFoam/system/fvSchemes.divSchemes.div(HbyA) at line 31. |
||
October 13, 2020, 12:10 |
|
#30 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Hi
I want to write below equation to foam-extend 4.0 I thought to use Quote:
Thanks. |
||
October 13, 2020, 13:03 |
|
#31 | ||
New Member
Duc Anh
Join Date: Dec 2018
Posts: 22
Rep Power: 8 |
Quote:
In your equation, does not grad p, It should be lapacian(p). You can try: Quote:
|
|||
October 13, 2020, 13:40 |
|
#32 | |
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16 |
Quote:
you wrote something in fvSchemes
__________________
best regards pblasiak |
||
October 13, 2020, 23:22 |
|
#33 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Quote:
I want to use fractional-step projection method. the index "p" and n+1 is not matter. they are predicted velocity and next time step, respectively. my mistake may be comparison delta_t with delta_p in Eq. 10. |
||
May 3, 2022, 15:43 |
|
#34 |
Member
Sai Guruprasad Jakkala
Join Date: Jan 2017
Posts: 34
Rep Power: 9 |
I am trying to write a new Particle Dispersion Model in OpenFOAM. The model requires the divergence of the Reynolds stress tensor. I am able to read the Reynolds stress tensor into the model and am able to perform the fvc::div operation.
My doubt is if this approach is correct. I tried fvc::div(U) in the same way and it gave really high values (O(1)) which are not correct because the simulation has converged and the fvc::div(U) should be a small value (O(1e-3)). So now I have doubts if fvc::div(R) is giving the right values. I have the phi variable too which I think is U*surfaceArea. I computed div(phi, U) and div(phi), and both gave small values in O(1e-3). Should I be using phi to compute the divergence of R? I am getting an error if I use fvc::div(phi,R). What is the difference between using div(R) and div(phi,R)? |
|
July 29, 2022, 15:05 |
|
#35 |
New Member
Not applicable
Join Date: Sep 2018
Posts: 15
Rep Power: 8 |
Hi Sai,
Have you found any clue, I found a similar problem. fvc::div(U) has a much greater value than fvc::div(phi) but they have the same dimension! Thanks |
|
July 30, 2022, 09:40 |
|
#36 |
Member
Sai Guruprasad Jakkala
Join Date: Jan 2017
Posts: 34
Rep Power: 9 |
Hi Kagen816.
It seems that div(phi) is correct if you want to verify the continuity equation. phi corresponds to the flux, while U is the cell centre value of velocity. Divergence needs to be calculated at the faces. But I am not sure how this applies to other variables. I am still looking at div(R), where R is the Reynolds Stress. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cyclic Boundary creation, what's the meaning of "separationVector" | panda60 | OpenFOAM | 5 | April 12, 2023 18:51 |
What's meaning of UDF FUNCTION | zhaoxinyu | Fluent UDF and Scheme Programming | 0 | March 31, 2010 09:04 |
meaning of residual p-mass ? | Dele | CFX | 0 | March 4, 2008 04:23 |
want to know meaning | Sangamesh | Siemens | 0 | May 15, 2007 06:15 |
What's the meaning of "combustion scalar"and.... | cfdbeginner | CFX | 0 | November 27, 2003 10:02 |