CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Problem using transform(..)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AnjaMiehe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2013, 05:12
Default Problem using transform(..)
  #1
Member
 
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 16
AnjaMiehe is on a distinguished road
Hello there,

I want to rotate a volSymmTensorField A. The transformation matrix (trans) is set up successfully.
Code:
tansform(trans, A)
works well, as long as I only use it this way. Using Info<< to write it out shows me, that everything is as it should be.
However, I am not allowed to assign the value to a new tensor Field, no matter if symmetric or not.
Code:
B = transform(trans, A)
does not compile. The error says
Code:
error: no match for 'operator=' in 'PermInv = Foam::transform(const tensorField&, const Foam::Field<Type>&) [with Type = Foam::SymmTensor<double>, Foam::tensorField = Foam::Field<Foam::Tensor<double> >]((*(const Foam::Field<Foam::SymmTensor<double> >*)(& PermInv.Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh>::<anonymous>.Foam::DimensionedField<Foam::SymmTensor<double>, Foam::volMesh>::<anonymous>)))'
UEqn.H:46:45: note: candidates are:
/opt/openfoam211/src/OpenFOAM/lnInclude/GeometricField.C:1083:6: note: void Foam::GeometricField<Type, PatchField, GeoMesh>::operator=(const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]
/opt/openfoam211/src/OpenFOAM/lnInclude/GeometricField.C:1083:6: note:   no known conversion for argument 1 from 'Foam::tmp<Foam::Field<Foam::SymmTensor<double> > >' to 'const Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh>&'
/opt/openfoam211/src/OpenFOAM/lnInclude/GeometricField.C:1108:6: note: void Foam::GeometricField<Type, PatchField, GeoMesh>::operator=(const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]
/opt/openfoam211/src/OpenFOAM/lnInclude/GeometricField.C:1108:6: note:   no known conversion for argument 1 from 'Foam::tmp<Foam::Field<Foam::SymmTensor<double> > >' to 'const Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh> >&'
/opt/openfoam211/src/OpenFOAM/lnInclude/GeometricField.C:1144:6: note: void Foam::GeometricField<Type, PatchField, GeoMesh>::operator=(const Foam::dimensioned<Form>&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]
/opt/openfoam211/src/OpenFOAM/lnInclude/GeometricField.C:1144:6: note:   no known conversion for argument 1 from 'Foam::tmp<Foam::Field<Foam::SymmTensor<double> > >' to 'const Foam::dimensioned<Foam::SymmTensor<double> >&'
With constant tensors (not volFields) like in Test-tensor, everything works.
Any help will be very much appreciated.

Thanks in advance, Regards, Anja
Tushar@cfd likes this.
AnjaMiehe is offline   Reply With Quote

Reply

Tags
transform, voltensorfield


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 16:01.