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

Different dimensions Error !!!

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By agustinvo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2016, 10:35
Question Different dimensions Error !!!
  #1
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 10
Mohammad Jam is on a distinguished road
Hi

i implemented especial heat transfer Eq. to chtMultiRegionFoam , it compiles correctly But when i run the case it gives this error :

Quote:
--> FOAM FATAL ERROR:
Different dimensions for =
dimensions : [0 -1 0 1 0 0 0] = [0 1 -2 1 0 0 0]
i have checked all of Eq. Terms dimension and were OK.
Eq. is:
Quote:
fvm::ddt(rho*cp, q)-fvm::laplacian(K, q)
K= conductivity [0 2 -1 0 0 0 0]
q= heat flux (vector field) [0 1 -1 1 0 0 0]
rho & cp = Non Dimensional terms

any idea?

thanks in advance
Mohammad Jam is offline   Reply With Quote

Old   October 19, 2016, 06:47
Default
  #2
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Quote:
Originally Posted by Mohammad Jam View Post
Hi

i implemented especial heat transfer Eq. to chtMultiRegionFoam , it compiles correctly But when i run the case it gives this error :



i have checked all of Eq. Terms dimension and were OK.
Eq. is:

K= conductivity [0 2 -1 0 0 0 0]
q= heat flux (vector field) [0 1 -1 1 0 0 0]
rho & cp = Non Dimensional terms

any idea?

thanks in advance
Hi,

it seems that in your equation you have a term like dT/dt...

let's see

Code:
fvm::ddt(rho*cp, q)
[0 0 -1 0 0 0 0] + [0 0 0 0 0 0 0] +[0 1 -1 1 0 0 0] = [0 1 -2 1 0 0 0]

fvm::laplacian(K, q) 			 		
[0 -2 0 0 0 0 0] + [0 2 -1 0 0 0 0] +[0 1 -1 1 0 0 0] = [0 1 -2 1 0 0 0]
Are they the only terms you have in the equation? How do you define the parameters?
vivek05 likes this.
agustinvo is offline   Reply With Quote

Old   October 19, 2016, 16:19
Default
  #3
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 10
Mohammad Jam is on a distinguished road
Quote:
Originally Posted by agustinvo View Post
Hi,

it seems that in your equation you have a term like dT/dt...

let's see

Code:
fvm::ddt(rho*cp, q)
[0 0 -1 0 0 0 0] + [0 0 0 0 0 0 0] +[0 1 -1 1 0 0 0] = [0 1 -2 1 0 0 0]

fvm::laplacian(K, q) 			 		
[0 -2 0 0 0 0 0] + [0 2 -1 0 0 0 0] +[0 1 -1 1 0 0 0] = [0 1 -2 1 0 0 0]
Are they the only terms you have in the equation? How do you define the parameters?
Hi Agustín,

Thank you for your kind reply,
Yes there was a [0 -1 0 1 0 0 0] term before solving Eq. and i removed it and then problem solved.

regards,
Mohammad

Last edited by Mohammad Jam; October 19, 2016 at 18:02.
Mohammad Jam 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
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 07:43
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 10:25.