CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

systematic dimension checking?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 21, 2012, 06:44
Default systematic dimension checking?
Join Date: Oct 2010
Posts: 76
Rep Power: 7
Farshad_Noravesh is on a distinguished road
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

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/"
#1 Foam::error::abort() in "/home/farshad/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/"
#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"
in "/home/farshad/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/fsd1"
#5 __libc_start_main in "/lib64/"
at /usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:116

Thanks alot,

Farshad_Noravesh is offline   Reply With Quote

Old   April 21, 2012, 07:33
Senior Member
maysmech's Avatar
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 8
maysmech is on a distinguished road
Originally Posted by Farshad_Noravesh View Post
Hi ,

incompatible dimensions for operation
[c[1 -3 -1 0 0 0 0] ] - [(((p*psiu)*0.2)*sigma)[1 -3 0 0 0 0 0] ]

Hi Farshad,
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.
maysmech is offline   Reply With Quote

Old   April 22, 2012, 03:50
Senior Member
niaz's Avatar
Join Date: Jun 2009
Posts: 118
Rep Power: 8
niaz is on a distinguished road
Dear Farhad
in pressure equation you have 2 parantezes it seems that c and others have not the same dimension
niaz is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03: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 05:41
Help%7e%7einstall openfoam13 on fc5%7e%7e aderliner OpenFOAM Installation 2 September 11, 2006 07:24
Gerris software installation mer Main CFD Forum 2 November 12, 2005 09:50

All times are GMT -4. The time now is 04:15.