|
[Sponsors] |
June 4, 2013, 10:56 |
About UEqn in icoFoam.
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Hi All,
This is UEqn code in icoFoam: Code:
fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(nu, U) ); Thanks in advance. |
|
June 4, 2013, 12:37 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Forrest,
The key point is the type of the matrix, namely Code:
fvVectorMatrix Kind regards Niels |
|
June 4, 2013, 20:40 |
|
#3 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Quote:
Can you tell me in this situations below,what is the fvvectormatrix? If there were just three nodes,after dixcretisation of the governing equation.I have: Code:
1 2 3 u_1 2 4 5 6 u_2 = 3 7 8 9 u_3 4 11 22 33 v_1 22 44 55 66 v_2 = 33 77 88 99 v_3 44 111 222 333 w_1 222 444 555 666 w_2 = 333 777 888 999 w_3 444 Code:
1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 99 111 222 333 444 555 666 777 888 999 Code:
11 22 33 44 55 66 77 88 99 |
||
June 6, 2013, 01:02 |
|
#4 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Any ideas?
|
|
June 6, 2013, 23:44 |
|
#5 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
I try to print the UEqn:
Code:
fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) ); Info<< UEqn << endl; Code:
Lower triangle = 4(-0.05 -0 -0 -0.05) diagonal = 4(0.05 0 0.05 0) Upper triangle = 4{0} [0 4 -2 0 0 0 0] 4{(0 0 0)} 3 ( 2{(0 0 0)} 6{(0 0 0)} 0() ) 3 ( 2{(0 0 0)} 6((0.05 0 0) (0.05 0 0) (-0.05 0 0) (-0.05 0 0) (0 0 0) (0 0 0)) 0() ) Code:
Lower triangle = 7(-0.05 -0 -0.05 -0 -0 -0.05 -0.05) diagonal = 6(0.05 0.05 0 0.05 0.05 0) Upper triangle = 7{0} [0 4 -2 0 0 0 0] 6{(0 0 0)} 3 ( 3{(0 0 0)} 7{(0 0 0)} 0() ) 3 ( 3{(0 0 0)} 7((0.05 0 0) (0.05 0 0) (-0.05 0 0) (-0.05 0 0) (0 0 0) (0 0 0) (0 0 0)) 0() ) |
|
June 12, 2013, 20:37 |
|
#6 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
no one is here?
|
|
June 20, 2013, 05:00 |
|
#7 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
[LaTeX Error: Syntax error]
In this formula, I think the left equation in Jasak's thesis page.145 eqn(3.136) have three componets, so there are three equations, but why is there only one matrix:Ueqn?where is Veqn and Weqn? Last edited by sharonyue; June 27, 2013 at 23:07. |
|
June 27, 2013, 23:06 |
|
#8 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Still does not get anywhere now.
|
|
June 30, 2013, 22:15 |
|
#9 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Code:
Lower triangle = 7(-0.05 -0 -0.05 -0 -0 -0.05 -0.05) diagonal = 6(0.05 0.05 0 0.05 0.05 0) |
|
June 30, 2013, 23:48 |
|
#10 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
This is a piece in Fabian Peng Karrholm's Ph.D thesis, :see the image.
OpenFOAM use A.22 to represent this three equations: A.18 A.19 A.20. But in this thesis there are no more explanations regarding this. |
|
July 3, 2013, 00:27 |
|
#11 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
Hi, the matrix coefficients for the momentum equation are the same, so you have only one matrix. The source term has different values in each direction. Check lines 143-208 in http://foam.sourceforge.net/docs/cpp/a04765_source.html
Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D. Research Scientist Research Center for Computational Methods (CIMEC) - CONICET/UNL Tel: 54-342-4511594 Int. 7032 Colectora Ruta Nac. 168 / Paraje El Pozo (3000) Santa Fe - Argentina. http://www.cimec.org.ar |
|
July 3, 2013, 00:44 |
|
#12 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Quote:
After a long struggle, I just made a discretisation of momentum equation manully and found you are right, so I know why there was only one matrix.but I still have many problems so I didnot update this. While do you know why Ueqn.A() do not equal to the diag.term of Ueqn?http://www.cfd-online.com/Forums/ope...term-ueqn.html And why is this Ueqn looks so mass. Its not like a matrix. BTW, I read your note regarding to interFoam solve. Its totally wonderful and help me alot. Thanks for your answer about the momentum predictor. I need time to look it deeply, and I tried to download your thesis about several weeks ago but failed, can you send me one copy? Email:chivasbeijing@qq.com Regards! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
icoFoam crash with unreasonable velocity. | Bylund | OpenFOAM Running, Solving & CFD | 2 | November 20, 2011 21:48 |
Source term problem in UEqn of simpleFoam | fisch | OpenFOAM Programming & Development | 1 | June 17, 2011 11:57 |
Density in icoFoam Densidad en icoFoam | manuel | OpenFOAM Running, Solving & CFD | 8 | September 22, 2010 05:10 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 08:52 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |