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

Different dimensions for = dimensions : [0 2 -1 0 0 0 0] = [0 4 -3 0 0 0 0]

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sturgeon

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2017, 09:54
Default Different dimensions for = dimensions : [0 2 -1 0 0 0 0] = [0 4 -3 0 0 0 0]
  #1
New Member
 
Mohak Lapsiwala
Join Date: Sep 2017
Location: Germany
Posts: 2
Rep Power: 0
mohakbl111 is on a distinguished road
Hello,
I am trying to perform cyclone simulation (steady, single phase) using available LRR model. As my knowledge in openfoam is quite limited I am not able to know what exactly the mentioned error suggests.

Different dimensions for =
dimensions : [0 2 -1 0 0 0 0] = [0 4 -3 0 0 0 0]

From function bool Foam::dimensionSet:perator=(const Foam::dimensionSet&) const
in file dimensionSet/dimensionSet.C at line 171.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::dimensionSet:perator=(Foam::dimensionSet const&) const at ??:?
#3 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>:perator=(Foam::tmp<Foam::Geometri cField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:?
#4 Foam::RASModels::LRR<Foam::IncompressibleTurbulenc eModel<Foam::transportModel> >::correctNut() at ??:?
#5 ? at ??:?
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7 ? at ??:?
Aborted (core dumped)


I would be very much thankful for any suggestions.

Regards,
Mohak.

Last edited by mohakbl111; October 9, 2017 at 10:24. Reason: To provide more information for the mentioned error
mohakbl111 is offline   Reply With Quote

Old   October 9, 2017, 12:35
Default
  #2
Member
 
Join Date: Jun 2017
Posts: 58
Rep Power: 9
sturgeon is on a distinguished road
I am very inexperienced with OpenFOAM but I did have this error when I was trying to move a case between solvers that used different units for pressure and phi. Maybe you could compare your unit definitions in your /0 folder to ones from a tutorial to make sure they're consistent?
hogsonik likes this.
sturgeon is offline   Reply With Quote

Old   October 9, 2017, 12:37
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

as Surgeron said, you mixed files and units. Check out the units in your time folder 0/ to be correct. One of the simplest ways is to copy a tutorial of the solver you want to use and adjust it to your needs.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 9, 2017, 12:42
Default
  #4
New Member
 
Mohak Lapsiwala
Join Date: Sep 2017
Location: Germany
Posts: 2
Rep Power: 0
mohakbl111 is on a distinguished road
Thank you for your suggestions... I will try to do as you both have said and get back to you with the details (Probably tomorrow).

Regards,
Mohak.
mohakbl111 is offline   Reply With Quote

Old   February 6, 2019, 06:06
Smile Dimension set error
  #5
Member
 
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8
vivek05 is on a distinguished road
Hi everyone,

I am trying to implement turbulent integral Length scale in my code

PHP Code:
integralL pow(turbulence->k(),3/2)/dissip
This is the error when I solved a test case using a newly compiled solver.


PHP Code:
smoothSolver:  Solving for kInitial residual 0.0396987, Final residual 2.03498e-11No Iterations 4
bounding k
min: -6.26895e-08 max3e-05 average6.72389e-08
[1
[
1
[
1] --> FOAM FATAL ERROR
[
1Different dimensions for =
     
dimensions : [0 1 0 0 0 0 0] = [0 0 1 0 0 0 0]
[
1
[
1
[
1]     From function bool Foam::dimensionSet::operator=(const Foam::dimensionSet&) const
[
1]     in file dimensionSet/dimensionSet.C at line 171. 
I have declared a new variable in code as follows
PHP Code:
volScalarField integralL
         
(
         
IOobject
         
(
                 
"integralL",
                 
runTime.timeName(),
                 
mesh,
                 
IOobject::NO_READ,
                 
IOobject::AUTO_WRITE
         
),
         
mesh,
         
dimensionSet(01000,0,0),
         
"zeroGradient"
         
); 
Could anyone direct me to find the cause of this error? I have checked units of all declared variable thoroughlly.
vivek05 is offline   Reply With Quote

Old   February 6, 2019, 06:37
Default
  #6
Member
 
Join Date: Mar 2016
Posts: 73
Rep Power: 10
sufjanst is on a distinguished road
I had this kind of problem when I tried running different solvers on the same Case like potentialFoam and simpleFoam.

The solution was quite easy, I just had to delete the phi-file.

Your phi-field will be calculated from your velocity field anyway before the first iteration even starts.
sufjanst 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
contact angle behavior in micro & nano dimensions Jimbomet OpenFOAM Running, Solving & CFD 7 June 18, 2016 17:18
FOAM FATAL ERROR for Different dimensions rupesh_w OpenFOAM Running, Solving & CFD 2 April 27, 2016 05:14
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 05:14
Software that can stretch the overall dimensions of a mesh. Robert_B Main CFD Forum 2 January 27, 2012 08:39
fields + dimensions santiagomarquezd OpenFOAM Programming & Development 3 March 7, 2011 13:47


All times are GMT -4. The time now is 13:03.