CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Incompatible fields for operation (http://www.cfd-online.com/Forums/openfoam-pre-processing/62029-incompatible-fields-operation.html)

su_junwei October 15, 2008 06:44

Hi Khaled From the mess
 
Hi Khaled

From the message above, we can infer that the type of alpha and U are incompatible. for instance, volScalarField + volVectorField

I also noticed that the code segment below
+ fvm::Sp(ix, alpha)
it is a impilit operation, if alpha and U are not the same object, adding them will also cause the problems.

Hope this helps

Junwei

booz October 15, 2008 08:34

Hi Junwei, thanks for the a
 
Hi Junwei,

thanks for the answer.
For alpha i add

volVectorField alpha
(
IOobject
(
"alpha",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

I thought for ix it is enough to be a volScalar or a Scalar.

Khaled


All times are GMT -4. The time now is 11:51.