|
[Sponsors] |
subtract volvectorfield and dimensionedvector |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 22, 2012, 07:37 |
subtract volvectorfield and dimensionedvector
|
#1 |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
Dear Foamers,
I got a problem with calculating volVectorField and dimensionedVector dimensionedVector Omega ( "Omega", dimensionSet(0, 0, -1, 0, 0, 0, 0), //RPM 10 rad/s vector(0, 10, 0) ); dimensionedVector Origin ( "Origin", dimensionSet(0, 1, 0, 0, 0, 0, 0), point(0.0, 0.0, 0.0) ); volVectorField Fcoriolis = Omega ^ (mesh.C().internalField()[cellLabels[cellI]] - Origin); Running wmake, there is error message for calculation. myinit.C:136: error: no match for ‘operator-’ in ‘((const Foam::Field<Foam::Vector<double> >*)((const Foam::volVectorField*)mesh.Foam::fvMesh::C())->Foam::GeometricField<Type, PatchField, GeoMesh>::internalField [with Type = Foam::Vector<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]())->Foam::Field<Foam::Vector<double> >::<anonymous>.Foam::List<Foam::Vector<double> >::<anonymous>.Foam::UList<T>:perator[] [with T = Foam::Vector<double>](((const Foam::labelList*)cellLabels)->Foam::List<int>::<anonymous>.Foam::UList<T>:per ator[] [with T = int](cellI)) - Origin’ I guess there is difference type for operation. Have any idea for this problem? |
|
January 28, 2014, 15:54 |
|
#2 |
Member
India
Join Date: Oct 2012
Posts: 84
Rep Power: 14 |
Hi deok-kyu choi,
Did you find solution to your problem. I am facing the same error messages. Regards, Mayank. |
|
|
|