Problem adding rhoPhi
I am trying to solve this:
Code:
fvScalarMatrix SEqn Code:
Info<< "Reading field rho\n" << endl; Code:
createFields.H:90: error: no matching function for call to ‘Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>::GeometricField(Foam::IOobject, Foam::tmp<Foam::Field<double> >)’ |
In your case rho is a volScalarField while in interFoam rho1 is a dimensionedScalar.
You can't multiply a surfaceScalarField (phi) with a volScalarField (rho). For a volScalarField all values are defined at the cell centres and for surfaceScalarFields at the face centres of each cell. So you first have to interpolate the centre values of the rho field to the face centres. Afterwards you can multiply phi with this new rho field: Code:
surfaceScalarField rhoPhi Code:
surfaceScalarField rhoPhi http://openfoamwiki.net/index.php/Op...eInterpolation |
Thank you very much, fixed.
|
All times are GMT -4. The time now is 07:48. |