CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   MULES::explicitSolve dimensions inconsistence (http://www.cfd-online.com/Forums/openfoam-programming-development/89898-mules-explicitsolve-dimensions-inconsistence.html)

santiagomarquezd June 24, 2011 19:29

MULES::explicitSolve dimensions inconsistence
 
Hi FOAMers I have a question about following lines in MULESTemplates.C

Code:

00117    {
00118        psiIf =
00119        (
00120            rho.oldTime().field()*psi0/deltaT
00121          + Su.field()
00122          - psiIf
00123        )/(rho.field()/deltaT - Sp.field());
00124    }

they look like not dimensionally consistent, particularly:

rho.oldTime().field()*psi0/deltaT-psiIf

psiIf was previously used in and integration, nevertheless it wasn't multiplied by rho ever.

So, what's the trick?

Regards.

lindstroem September 22, 2011 04:09

Hello Santiago!

I was considering the same question, have you found out sth? Do you know why i cant get an output via
Code:

Info << Su.field() << endl;
The error is sth like
Code:

MULESTemplates.C:132:5: error: no match for ‘operator<<’ in ‘Foam::operator<<(((F...
Greetings!

bojiezhang November 7, 2011 10:09

Quote:

Originally Posted by santiagomarquezd (Post 313487)
Hi FOAMers I have a question about following lines in MULESTemplates.C

Code:

00117    {
00118        psiIf =
00119        (
00120            rho.oldTime().field()*psi0/deltaT
00121          + Su.field()
00122          - psiIf
00123        )/(rho.field()/deltaT - Sp.field());
00124    }

they look like not dimensionally consistent, particularly:

rho.oldTime().field()*psi0/deltaT-psiIf

psiIf was previously used in and integration, nevertheless it wasn't multiplied by rho ever.

So, what's the trick?

Regards.


hi:
I am also confused by this problem. Have you solved it?
bojiezhang


All times are GMT -4. The time now is 13:34.