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/)
-   -   icoFoam incompatible dimensions (https://www.cfd-online.com/Forums/openfoam-solving/154983-icofoam-incompatible-dimensions.html)

student12345 June 23, 2015 09:20

icoFoam incompatible dimensions
 
Hi,

im new to OpenFOAM and trying to do my first simulation.

I always get the error: incompatible dimensions for operatin

[U[0 1 -2 0 0 0 0] ] == [-grad(p)[1 -2 -2 0 0 0 0]]

The Dimensions in the "0-folder" for U=[0 1 -1 0 0 0 0] and P=[1 2 -1 0 0 0 0]

I tried to change, but didnt work out.
I was looking for the U==-grad(p) equation, but couldnt find it.
In wich file is this written down?

I searched older posts and found some similar problems, but couldnt fix it.

Can anyone help me?

sharonyue June 24, 2015 14:35

P=[1 2 -1 0 0 0 0]

Change this to P=[0 2 -2 0 0 0 0]

student12345 June 24, 2015 14:45

thanks, i figured it out now. But i have another problem now ( see me other thread) do you also know how to fix this?


All times are GMT -4. The time now is 04:25.