|
[Sponsors] |
September 25, 2013, 06:12 |
Problem using transform(..)
|
#1 |
Member
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 17 |
Hello there,
I want to rotate a volSymmTensorField A. The transformation matrix (trans) is set up successfully. Code:
tansform(trans, A) 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) 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> >&' Any help will be very much appreciated. Thanks in advance, Regards, Anja |
|
Tags |
transform, voltensorfield |
|
|
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 |