CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

systematic dimension checking?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2012, 07:44
Default systematic dimension checking?
  #1
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 16
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


--> 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
Farshad_Noravesh is offline   Reply With Quote

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

--> 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] ]

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

Old   April 22, 2012, 04:50
Default
  #3
Senior Member
 
niaz's Avatar
 
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 17
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

Reply


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 Off
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 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


All times are GMT -4. The time now is 23:56.