|
[Sponsors] |
April 21, 2012, 07:44 |
systematic dimension checking?
|
#1 |
Member
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 16 |
Hi ,
I am writing a code for premixed combustion based on flame surface density. I have the following error that is related to dimension of my variables but i dont know firstly which variable does not have a correct dimension, and secondly :is multiplying by a fake variable is the only method to fix this kind of problem? Time = 5.9988e-06 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 1.10082e-06, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 1.23009e-06, No Iterations 1 --> FOAM FATAL ERROR: incompatible dimensions for operation [c[1 -3 -1 0 0 0 0] ] - [(((p*psiu)*0.2)*sigma)[1 -3 0 0 0 0 0] ] From function checkMethod(const fvMatrix<Type>&, const GeometricField<Type, fvPatchField, volMesh>&) in file /home/farshad/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/fvMatrix.C at line 1218. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) in "/home/farshad/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/home/farshad/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so" #2 void Foam::checkMethod<double>(Foam::fvMatrix<double> const&, Foam:imensionedField<double, Foam::volMesh> const&, char const*) in "/home/farshad/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/fsd1" #3 Foam::tmp<Foam::fvMatrix<double> > Foam:perator-<double>(Foam::tmp<Foam::fvMatrix<double> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) in "/home/farshad/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/fsd1" #4 in "/home/farshad/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/fsd1" #5 __libc_start_main in "/lib64/libc.so.6" #6 at /usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:116 Aborted farshad@linux-0dde:~/OpenFOAM/farshad-1.7.1/run/flamesurfacedensity1> Thanks alot, Farshad |
|
April 21, 2012, 08:33 |
|
#2 | |
Senior Member
|
Quote:
From above error, it can be understood that it has dimension problem in this operation. One parameter is kg/(m^3.s) the other is kg/m^3. I suggest you to check your equations again dimensionally. Regards, |
||
April 22, 2012, 04:50 |
|
#3 |
Senior Member
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 17 |
Dear Farhad
in pressure equation you have 2 parantezes it seems that c and others have not the same dimension |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
OpenFOAM installation problem on Linux 32bit | kumar | OpenFOAM Installation | 0 | April 27, 2007 06:41 |
Help%7e%7einstall openfoam13 on fc5%7e%7e | aderliner | OpenFOAM Installation | 2 | September 11, 2006 08:24 |
Gerris software installation | mer | Main CFD Forum | 2 | November 12, 2005 09:50 |