incompatible dimensions for operation (rhoSimpleFoam)
good Morning Foamer,
can somebody help me about this error happen by running rhoSimpleFoam, thank you for your help :):D --> FOAM FATAL ERROR: incompatible dimensions for operation [U[0 1 -2 0 0 0 0] ] + [U[1 -2 -2 0 0 0 0] ] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&) in file /opt/CFD/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/fvMatrix.C at line 1191. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/opt/CFD/OpenFOAM/OpenFOAM-1.7.1/lib/linux64IccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/opt/CFD/OpenFOAM/OpenFOAM-1.7.1/lib/linux64IccDPOpt/libOpenFOAM.so" #2 Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > Foam::operator+<Foam::Vector<double> >(Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > const&, Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > const&) in "/opt/CFD/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64IccDPOpt/rhoSimpleFoam" #3 main in "/opt/CFD/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64IccDPOpt/rhoSimpleFoam" #4 __libc_start_main in "/lib64/libc.so.6" #5 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/opt/CFD/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64IccDPOpt/rhoSimpleFoam" Aborted |
How did you define the dimensions of U en p in the 0/ directory?
|
Hi,
i got this kind of error a few times and one reason was the dimension of pressure in incompressible cases its dimensions [0 2 -2 0 0 0 0]; and in compressible its dimensions [1 -1 -2 0 0 0 0]; hope this helps you regards, Dima |
thank you!
the dimension fo U are [0 1 -1 0 0 0 0] and for p I tried with [1 -1 -2 0 0 0 0] for compressible flow and [0 2 -2 0 0 0 0] for imcompressible flow |
All times are GMT -4. The time now is 14:57. |