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

Error with dimensions (interFoam)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 4, 2012, 10:31
Default Error with dimensions (interFoam)
  #1
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 5
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, 10:44
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
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, 11:29
Default Thank you!
  #3
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 5
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, 11:49
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   September 4, 2012, 11:55
Default
  #5
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 5
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
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
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 8 July 31, 2013 02:29
Outlet BC with Interfoam danvica OpenFOAM Running, Solving & CFD 7 June 14, 2012 09:00
Different solutions comparing pisoFoam and interFoam AnjaMiehe OpenFOAM Running, Solving & CFD 8 June 13, 2012 16: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 21:58


All times are GMT -4. The time now is 20:32.