CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Incompatible dimensions for operation (https://www.cfd-online.com/Forums/openfoam-solving/153695-incompatible-dimensions-operation.html)

ruben23 June 1, 2015 17:22

Incompatible dimensions for operation
 
Hello everyone,
I am doing an school project in which i need to simulate an high speed fluid (1000m/s) entering a venturi tube. I want to simulate the pressure and speed in the venturi tube. I am doing this in the online-simulator Simscale which uses openFoam. At this high-speed density changes cannot be ignored, so i choose compressible in the options panel. Evertime I try to run the simulation I get the following error:
Code:

[15]
FOAM parallel run aborting
[15]
[16]
[16]
[16] --> FOAM FATAL ERROR:
[16] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[16]
[16] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[16] in file at line 1332.
[16]
FOAM parallel run aborting
[16]
[17]
[17]
[17] --> FOAM FATAL ERROR:
[17] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[17]
[17] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[17] in file at line 1332.
[17]
FOAM parallel run aborting
[17]
[31] #0 Foam::error::printStack(Foam::Ostream&)[13] #0 Foam::error::printStack(Foam::Ostream&)[20]
[20]
[20] --> FOAM FATAL ERROR:
[20] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[20]
[20] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[20] in file at line 1332.
[20]
FOAM parallel run aborting
[20]
[4] #0 Foam::error::printStack(Foam::Ostream&)[22]
[22]
[22] --> FOAM FATAL ERROR:
[22] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[22]
[22] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[22] in file at line 1332.
[22]
FOAM parallel run aborting
[22]
[21] #0 Foam::error::printStack(Foam::Ostream&)[24]
[24]
[24] --> FOAM FATAL ERROR:
[24] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[24]
[24] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[24] in file at line 1332.
[24]
FOAM parallel run aborting
[24]
[25]
[25]
[25] --> FOAM FATAL ERROR:
[25] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[25]
[25] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[25] in file at line 1332.
[25]
FOAM parallel run aborting
[25]
[26]
[26]
[26] --> FOAM FATAL ERROR:
[26] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[26]
[26] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[26] in file at line 1332.
[26]
FOAM parallel run aborting
[26]
[27]
[27]
[27] --> FOAM FATAL ERROR:
[27] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[27]
[27] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[27] in file at line 1332.
[27]
FOAM parallel run aborting
[27]
[28]
[28]
[28] --> FOAM FATAL ERROR:
[28] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[28]
[28] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[28] in file at line 1332.
[28]
FOAM parallel run aborting
[28]
[29]
[29]
[29] --> FOAM FATAL ERROR:
[29] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[29]
[29] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[29] in file at line 1332.
[29]
FOAM parallel run aborting
[29]
[30]
[30]
[30] --> FOAM FATAL ERROR:
[30] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[30]
[30] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[30] in file at line 1332.
[30]
FOAM parallel run aborting
[30]
[7] #0 Foam::error::printStack(Foam::Ostream&)[23] #0 Foam::error::printStack(Foam::Ostream&)[0]
[0]
[0] --> FOAM FATAL ERROR:
[0] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[0]
[0] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[0] in file at line 1332.
[0]
FOAM parallel run aborting
[0]
[1]
[1]
[1] --> FOAM FATAL ERROR:
[1] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[1]
[1] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[1] in file at line 1332.
[1]
FOAM parallel run aborting
[1]
[14] #0 Foam::error::printStack(Foam::Ostream&)[3]
[3]
[3] --> FOAM FATAL ERROR:
[3] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]
[3]
[3] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
[3] in file at line 1332.
[3]
FOAM parallel run aborting
[3]
[18] #0 Foam::error::printStack(Foam::Ostream&)[19] #0 Foam::error::printStack(Foam::Ostream&)[29] #0 Foam::error::printStack(Foam::Ostream&)[30] #0 [17] #0 Foam::error::printStack(Foam::Ostream&)[20] #0 [27] #0 Foam::error::printStack(Foam::Ostream&)[16] #0 Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)[8] #0 Foam::error::printStack(Foam::Ostream&)[1] #0 Foam::error::printStack(Foam::Ostream&)[3] #0 Foam::error::printStack(Foam::Ostream&)[22] #0 [25] #0 [12] #0 Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)[24] #0 Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)[28] #0 Foam::error::printStack(Foam::Ostream&)[9] #0 Foam::error::printStack(Foam::Ostream&)[0] #0 Foam::error::printStack(Foam::Ostream&)[26] #0 Foam::error::printStack(Foam::Ostream&)[15] #0 Foam::error::printStack(Foam::Ostream&) at ??:?
[11] #1 Foam::error::abort() at ??:?
[6] #1 Foam::error::abort() at ??:?
[13] #1 Foam::error::abort() at ??:?
[31] #1 Foam::error::abort() at ??:?
[4] #1 Foam::error::abort() at ??:?
[19] #1 Foam::error::abort() at ??:?
[29] #1 Foam::error::abort() at ??:?
[14] #1 Foam::error::abort() at ??:?
[5] #1 Foam::error::abort() at ??:?
[15] #1 Foam::error::abort() at ??:?
[2] #1 Foam::error::abort() at ??:?
[27] #1 Foam::error::abort() at ??:?
[16] #1 Foam::error::abort() at ??:?
[17] #1 Foam::error::abort() at ??:?
[8] #1 Foam::error::abort() at ??:?
[18] #1 Foam::error::abort() at ??:?
[7] #1 Foam::error::abort() at ??:?
[10] #1 Foam::error::abort() at ??:?
[12] #1 Foam::error::abort() at ??:?
[23] #1 Foam::error::abort() at ??:?
[28] #1 Foam::error::abort() at ??:?
[24] #1 Foam::error::abort() at ??:?
[30] #1 Foam::error::abort() at ??:?
[22] #1 Foam::error::abort() at ??:?
[3] #1 Foam::error::abort() at ??:?
[26] #1 Foam::error::abort() at ??:?
[21] #1 Foam::error::abort() at ??:?
[1] #1 Foam::error::abort() at ??:?
[20] #1 Foam::error::abort() at ??:?
[25] #1 Foam::error::abort() at ??:?
[0] #1 Foam::error::abort() at ??:?
[9] #1 Foam::error::abort() at ??:?
[27] #2 at ??:?
[17] #2 at ??:?
[10] #2 at ??:?
[26] #2 at ??:?
[14] #2 at ??:?
[11] #2 at ??:?
[6] #2 at ??:?
[31] #2 at ??:?
[13] #2 at ??:?
[4] #2 at ??:?
[29] #2 at ??:?
[15] #2 at ??:?
[16] #2 at ??:?
[18] #2 at ??:?
[2] #2 at ??:?
[30] #2 at ??:?
[7] #2 at ??:?
[3] #2 at ??:?
[25] #2 at ??:?
[12] #2 at ??:?
[8] #2 at ??:?
[22] #2 at ??:?
[28] #2 at ??:?
[19] #2 at ??:?
[21] #2 at ??:?
[23] #2 at ??:?
[5] #2 at ??:?
[9] #2 at ??:?
[0] #2 at ??:?
[1] #2 at ??:?
[24] #2 at ??:?
[20] #2 void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*)void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::fvMatrix<Foam::Vector<double> > const&, char const*) at ??:?
[27] #3 at ??:?
[2] #3 at ??:?
[10] #3 at ??:?
[6] #3 at ??:?
[17] #3 at ??:?
[31] #3 at ??:?
[14] #3 at ??:?
[0] #3 at ??:?
[15] #3 at ??:?
[4] #3 at ??:?
[26] #3 at ??:?
[11] #3 at ??:?
[18] #3 at ??:?
[29] #3 at ??:?
[8] #3 at ??:?
[16] #3 at ??:?
[13] #3 at ??:?
[7] #3 at ??:?
[12] #3 at ??:?
[25] #3 at ??:?
[20] #3 at ??:?
[9] #3 at ??:?
[19] #3 at ??:?
[30] #3 at ??:?
[21] #3 at ??:?
[5] #3 at ??:?
[3] #3 at ??:?
[28] #3 at ??:?
[23] #3 at ??:?
[24] #3 at ??:?
[1] #3
at ??:?
[22] #3
[10] at ??:?
[10] #4 [26] at ??:?
[26] #4
[6] at ??:?
[6] #4 [27] at ??:?
[27] #4 [31] at ??:?
[31] #4 [17] at ??:?
[17] #4 [5] at ??:?
[5] #4 [2] at ??:?
[2] #4 [15] at ??:?
[15] #4 [11] at ??:?
[11] #4 [4] at ??:?
[4] #4 [14] at ??:?
[14] #4 [30] at ??:?
[30] #4 [8] at ??:?
[8] #4 [3] at ??:?
[3] #4 [29] at ??:?
[29] #4 [0] at ??:?
[0] #4 [18] at ??:?
[18] #4 [7] at ??:?
[7] #4 [13] at ??:?
[13] #4 [12] at ??:?
[12] #4 [1] at ??:?
[1] #4 [20] at ??:?
[20] #4 [16] at ??:?
[16] #4 [19] at ??:?
[19] #4 [25] at ??:?
[25] #4 [9] at ??:?
[9] #4
[21] at ??:?
[21] #4 [28] at ??:?
[28] #4 [23] at ??:?
[23] #4
[22] at ??:?
[22] #4
[24] at ??:?
[24] #4
[5] at ??:?
[5] #5 __libc_start_main
[10] at ??:?
[10] #5 __libc_start_main
[6] at ??:?
[6] #5 __libc_start_main[26] at ??:?
[26] #5 __libc_start_main
[11] at ??:?
[11] #5 __libc_start_main[27] at ??:?
[27] #5 __libc_start_main[25] at ??:?
[25] #5 __libc_start_main[19] at ??:?
[19] #5 __libc_start_main[31] at ??:?
[31] #5 __libc_start_main[18] at ??:?
[18] #5 __libc_start_main[17] at ??:?
[17] #5 __libc_start_main[0] at ??:?
[0] #5 __libc_start_main[15] at ??:?
[15] #5 __libc_start_main[2] at ??:?
[2] #5 __libc_start_main[30] at ??:?
[30] #5 __libc_start_main[3] at ??:?
[3] #5 __libc_start_main[28] at ??:?
[28] #5 __libc_start_main[20] at ??:?
[20] #5 __libc_start_main[4] at ??:?
[4] #5 __libc_start_main[29] at ??:?
[29] #5 __libc_start_main[12] at ??:?
[12] #5 __libc_start_main[14] at ??:?
[14] #5 __libc_start_main[1] at ??:?
[1] #5 __libc_start_main[13] at ??:?
[13] #5 __libc_start_main[16] at ??:?
[16] #5 __libc_start_main[7] at ??:?
[7] #5 __libc_start_main[8] at ??:?
[8] #5 __libc_start_main in "
[10] #6 [21] at ??:?
[21] #5 __libc_start_main[23] at ??:?
[23] #5 __libc_start_main[9] at ??:?
[9] #5 __libc_start_main in "
[19] #6 in "
[5] #6 [22] at ??:?
[22] #5 __libc_start_main[24] at ??:?
[24] #5 __libc_start_main in "
[26] #6 in "
[6] #6 in "
[11] #6 in "
[27] #6 in "
[15] #6 in "
[31] #6 in "
[17] #6 in "
[25] #6 in "
[2] #6 in "
[0] #6 in "
[30] #6 in "
[18] #6 in "
[3] #6 in "
[28] #6 in "
[29] #6 in "
[14] #6 in "
[12] #6 in "
[20] #6 in "
[1] #6 in "
[16] #6 in "
[7] #6 in "
[4] #6 in "
[8] #6 in "
[13] #6 in "
[21] #6
in "
[23] #6
in "
[9] #6
in "
[24] #6 in "
[22] #6
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 3 in communicator MPI_COMM_WORLD
with errorcode 1.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
[5] at ??:?
[3] at ??:?
[10] at ??:?
[0] at ??:?
[19] at ??:?
[26] at ??:?
[6] at ??:?
[25] at ??:?
[16] at ??:?
[28] at ??:?
[22] at ??:?
[14] at ??:?
[27] at ??:?
[13] at ??:?
[23] at ??:?
[29] at ??:?
[11] at ??:?
[18] at ??:?
[9] at ??:?
[15] at ??:?
[20] at ??:?
[21] at ??:?
[24] at ??:?
[30] at ??:?
[8] at ??:?
[12] at ??:?
[7] at ??:?
[31] at ??:?
[17] at ??:?
--------------------------------------------------------------------------
mpirun has exited due to process rank 3 with on
node exiting improperly. There are two reasons this could occur:
1. this process did not call "init" before exiting, but others in
the job did. This can cause a job to hang indefinitely while it waits
for all processes to call "init". By rule, if one process calls "init",
then ALL processes must call "init" prior to termination.
2. this process called "init", but exited without calling "finalize".
By rule, all processes that call "init" MUST call "finalize" prior to
exiting or it will be considered an "abnormal termination"
This may have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[:03895] 28 more processes have sent help message help-mpi-api.txt / mpi-abort
[:03895] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
×Free storag

I think the main problems lies with the:
Code:

[17] incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ]

I am however, a newbie to the program, so I don't know how to fix this.
Does anyone have an idea?
Kind-regards
Ruben

joi June 2, 2015 02:23

Do you by any chance initialize the solution with the potential flow? If yes, then just uncheck it and you are good to go.

ruben23 June 12, 2015 04:14

Solved
 
Thanks to this, the error has dissappeared.:)


All times are GMT -4. The time now is 15:26.