CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Incompatible dimensions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 8, 2013, 13:18
Default Incompatible dimensions
  #1
Senior Member
 
sfigato's Avatar
 
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 4
sfigato is on a distinguished road
Send a message via Skype™ to sfigato
Hi,

During I add the temperature equation to cavitatingFoam I Got a problem! The new solver is compiled without any errors. Nevertheless, when I use it the terminal displays:

--> FOAM FATAL ERROR:
incompatible dimensions for operation
[T[0 0 -1 1 0 0 0] ] + [T[1 -3 -1 1 0 0 0] ]

From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
in file /home/ifas/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvMatrix.C at line 1316.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/home/ifas/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/ifas/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 void Foam::checkMethod<double>(Foam::fvMatrix<double> const&, Foam::fvMatrix<double> const&, char const*) in "/home/ifas/OpenFOAM/ifas-2.1.1/platforms/linuxGccDPOpt/bin/thermalCavitatingFoam"
#3 Foam::tmp<Foam::fvMatrix<double> > Foam:perator+<double>(Foam::tmp<Foam::fvMatrix<d ouble> > const&, Foam::tmp<Foam::fvMatrix<double> > const&) in "/home/ifas/OpenFOAM/ifas-2.1.1/platforms/linuxGccDPOpt/bin/thermalCavitatingFoam"
#4
in "/home/ifas/OpenFOAM/ifas-2.1.1/platforms/linuxGccDPOpt/bin/thermalCavitatingFoam"
#5 __libc_start_main in "/lib/libc.so.6"
#6
at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/i386/elf/start.S:122

Anyone can help me?
Thanks
Marco
sfigato is offline   Reply With Quote

Old   January 22, 2013, 18:31
Default
  #2
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 543
Rep Power: 18
chegdan will become famous soon enough
Marco,

The error is telling you that you are attempting to add a term with the units kelvin per second to a term with a term with the units kilogram kelvin per meter cubed per second. Make sure your temperature equation units/dimensions are consistent throughout. For some help on the dimensions, look at Basic input/output file format.
chegdan is offline   Reply With Quote

Old   January 22, 2013, 18:50
Default
  #3
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
Further to this discussion, it appears that either the first term should be divided by density, or the second one multiplied by it.
mturcios777 is offline   Reply With Quote

Reply

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
Incompatible dimensions.... Amiga500 OpenFOAM Running, Solving & CFD 13 June 1, 2012 07:20
Software that can stretch the overall dimensions of a mesh. Robert_B Main CFD Forum 2 January 27, 2012 08:39
incompatible dimensions for operation (rhoSimpleFoam) dongest OpenFOAM Running, Solving & CFD 3 July 19, 2011 04:51
Incompatible dimensions for operation pramodopen4foam OpenFOAM 8 October 15, 2009 05:00
Dimensions of laplacian in PISO loop kumar2 OpenFOAM Running, Solving & CFD 2 July 3, 2006 14:34


All times are GMT -4. The time now is 00:29.