incompatible dimension for operation means??
Hello,
I made a new solver and ran it successfully without any error. Afterwards, when I tried to run my case I got an error. What could be the reason behind this error??? Do I need to re-check my solver? Is it the error of solver? Error is shown below: Calculating face flux Starting time loop Time = 0.0005 Courant Number mean: 0 max: 0.0349808 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 incompatible dimensions for operation [U[0 1 -2 0 0 0 0] ] - [convection(phiB,((2*DBU)*B))[1 -2 -2 0 0 0 0] ]#0 Foam::error::printStack(Foam::Ostream&) in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so" #2 void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, char const*) in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam" #3 Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > Foam::operator-<Foam::Vector<double> >(Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > const&, Foam::tmp<Foam::GeometricField<Foam::Vector<double >, Foam::fvPatchField, Foam::volMesh> > const&) in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam" #4 in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam" #5 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6" #6 in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam" From function checkMethod(const fvMatrix<Type>&, const GeometricField<Type, fvPatchField, volMesh>&) in file /home/iitgn/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMatrix.C at line 1219. FOAM aborting Aborted |
openFOAM check the dimension of operator before execute it so look the dimension of ur equation!
|
Quote:
Quote:
|
Hello Joel,
"
Hello, I made a new solver and ran it successfully without any error. " By the above line. I mean to say I did a successful compilation of the new solver that I wrote. In the second part of the question It looks to me the first mentioned suggestion is right. I wrote an equation in the solver from there this error continued. Anyways thanks a lot.. |
Hello nimasam,
The problem actually came from the "dimension of operator" as you have mentioned. I rechecked my solver.
Thanks a lot.... |
All times are GMT -4. The time now is 21:36. |