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

Error with dimensions (interFoam)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2012, 11:31
Default Error with dimensions (interFoam)
  #1
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 13
Sagun is on a distinguished road
Hello,

I am getting this error while trying to run my case files:

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


From function operator+(const dimensionSet&, const dimensionSet&)
in file dimensionSet/dimensionSet.C at line 514.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Foam:perator+(Foam::dimensionSet const&, Foam::dimensionSet const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3
at interFoam.C:0
#4
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/interFoam"
#5 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#6
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/interFoam"


I think this has something to do with the dimensions of pressure (the ones which I have used are [0 2 -2 0 0 0 0]).

Any help will be much appreciated.
Sagun is offline   Reply With Quote

Old   September 4, 2012, 11:44
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Dimension of pressure in interFoam should be [1 -1 -2 0 0 0 0];

In incompressible and single phase solver, usually, p/rho is used instead of just p. You're trying to use the former one for interFoam, which is not correct.
Bernhard is offline   Reply With Quote

Old   September 4, 2012, 12:29
Default Thank you!
  #3
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 13
Sagun is on a distinguished road
Thank you so much. It worked!

But now I am getting time step continuity errors in my simulations. I just went through some of the old forums on the same and found out that they are related to the pressure solver tolerance. Typical values that I'm getting:

time step continuity errors : sum local = 6.68285e-06, global = -5.08031e-07, cumulative = -0.000199826


Is the cumulative value too big and a cause for concern? If yes, how can I fix it?
Sagun is offline   Reply With Quote

Old   September 4, 2012, 12:49
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Quote:
Originally Posted by Sagun View Post
I just went through some of the old forums on the same and found out that they are related to the pressure solver tolerance.
Quote:
Originally Posted by Sagun View Post
If yes, how can I fix it?
Did you try your own suggestion?
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   September 4, 2012, 12:55
Default
  #5
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 13
Sagun is on a distinguished road
Hello!

No I haven't tried that yet since my simulations are still running. I figured that I should let it run atleast once and see what the results looks like.

But is the cumulative value too large and something to be worried about?
Sagun is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 9 July 25, 2020 07:36
Outlet BC with Interfoam danvica OpenFOAM Running, Solving & CFD 7 June 14, 2012 10:00
Different solutions comparing pisoFoam and interFoam AnjaMiehe OpenFOAM Running, Solving & CFD 8 June 13, 2012 17:12
Slow interFoam compared with other CFD tools? Ralph M OpenFOAM Programming & Development 1 November 17, 2010 07:46
Open Channel Flow using InterFoam type solver sxhdhi OpenFOAM Running, Solving & CFD 3 May 5, 2009 22:58


All times are GMT -4. The time now is 22:02.