|
[Sponsors] |
How to convert from GeometricField to fvMatrix |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 21, 2009, 18:01 |
Hi everyone:
i have faced a e
|
#1 |
Senior Member
|
Hi everyone:
i have faced a error message in OF1.5 as : Potentialke/Potentialke.C:384: error: conversion from 'Foam::tmp<foam::geometricfield<foam::vector<doubl e>, Foam::fvPatchField, Foam::volMesh> >' to non-scalar type 'Foam::tmp<foam::fvmatrix<foam::vector<double> > >' requested and in line 384 of Potentialke.C,i have the code : tmp<fvvectormatrix> Potentialke::divR() const { return ( fvc::grad(Tphi_) +scalar(2)*fvc::curl(Tpsi_) ); } and the Tphi and Tpsi is defined as : volScalarField Tphi_; volVectorField Tpsi_; how can i resolve it? thanks! yours wayne |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 14:38 |
Manipulation of cellvalue of a geometricField | ivan_cozza | OpenFOAM Running, Solving & CFD | 2 | September 25, 2008 13:58 |
Create GeometricField without IOobject | nadine | OpenFOAM Running, Solving & CFD | 3 | August 15, 2008 09:24 |
Duplicate GeometricField | reimund | OpenFOAM Running, Solving & CFD | 9 | June 9, 2008 13:47 |
Accessing data of geometricField | bird | OpenFOAM Running, Solving & CFD | 1 | August 28, 2007 18:21 |