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

Problem using transform(..)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 25, 2013, 06:12
Default Problem using transform(..)
  #1
Member
 
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 7
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
AnjaMiehe is offline   Reply With Quote

Reply

Tags
transform, voltensorfield

Thread Tools
Display Modes

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 On
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 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


All times are GMT -4. The time now is 17:35.