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

LHS and RHS of - have different dimensions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2024, 05:53
Default LHS and RHS of - have different dimensions
  #1
New Member
 
Reza
Join Date: May 2018
Posts: 2
Rep Power: 0
Reza_hmd is on a distinguished road
Hello everyone.

I am trying to solve particles distributions inside a box, but when I try to run it, I got an error which is :

"--> FOAM FATAL ERROR:
LHS and RHS of - have different dimensions
dimensions : [0 3 -2 0 0 0 0] - [1 0 -2 0 0 0 0]


From function Foam::dimensionSet Foam :: operator-(const Foam::dimensionSet&, const Foam::dimensionSet&)
in file dimensionSet/dimensionSet.C at line 527.

FOAM aborting "

Unfortunately, It didn't show where the problem was. I was wondering if anyone has encountered the same problem.
Reza_hmd is offline   Reply With Quote

Old   July 25, 2024, 10:38
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

So you have kg/s² versus m³/s², looks like somewhere there is a density missing. But as you said, there is no clue on where this may be. Maybe this remarks will help you isolate the problem.

Good luck,
Tom
tomf is offline   Reply With Quote

Old   July 28, 2024, 14:32
Default
  #3
New Member
 
Reza
Join Date: May 2018
Posts: 2
Rep Power: 0
Reza_hmd is on a distinguished road
Hi Tom.
Thank you for your reply.
It was a bit problematic for me to find the issue, but I found out that the p dimension differed from the default dimension in the solver.
Reza_hmd 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
Iterating through a field leads to not matching dimensions at some point of the loop überschwupper OpenFOAM Programming & Development 1 September 1, 2022 08:40
Duplicate entries and mismatch of dimensions when using new turbModel richard.chung.jones OpenFOAM Programming & Development 0 February 23, 2017 03:41
Porous media model in OpenFOAM 14 gac OpenFOAM Running, Solving & CFD 21 August 5, 2013 17:49
Error with dimensions (interFoam) Sagun OpenFOAM 4 September 4, 2012 11:55
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 20:27.