|
[Sponsors] |
pipeCyclic tutorial codeStream error in codedFixedValue BC specification |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 15, 2014, 23:36 |
pipeCyclic tutorial codeStream error in codedFixedValue BC specification
|
#1 |
New Member
Ralph Aldredge
Join Date: Nov 2013
Posts: 1
Rep Power: 0 |
I get the following errors when running decomposePar -cellDist. Any help would be greatly appreciated.
/Volumes/OpenFOAM-v2.2.2/aldredge-2.2.2/run/incompressible/simpleFoam/pipeCyclic/0/U.boundaryField.inlet.#codeStream:58:35: error: invalid use of 'this' in non-member function /Volumes/OpenFOAM-v2.2.2/aldredge-2.2.2/run/incompressible/simpleFoam/pipeCyclic/0/U.boundaryField.inlet.#codeStream:60:29: error: no matching function for call to 'operator==(Foam::vectorField&)' /Volumes/OpenFOAM-v2.2.2/aldredge-2.2.2/run/incompressible/simpleFoam/pipeCyclic/0/U.boundaryField.inlet.#codeStream:60:29: note: candidate is: /Users/aldredge/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/VectorSpaceI.H:634:13: note: template<class Form, class Cmpt, int nCmpt> bool Foam:perator==(const Foam::VectorSpace<Form, Cmpt, nCmpt>&, const Foam::VectorSpace<Form, Cmpt, nCmpt>&) make: *** [Make/darwinIntel64Gcc46DPOpt/codeStreamTemplate.o] Error 1 --> FOAM FATAL IO ERROR: Failed wmake "dynamicCode/_8d6280772013f7e6aea251f1c3fca7b6b529d0d9/platforms/darwinIntel64Gcc46DPOpt/lib/libcodeStream_8d6280772013f7e6aea251f1c3fca7b6b529 d0d9.dylib" file: /Volumes/OpenFOAM-v2.2.2/aldredge-2.2.2/run/incompressible/simpleFoam/pipeCyclic/0/U.boundaryField.inlet from line 28 to line 29. From function functionEntries::codeStream::execute(..) in file db/dictionary/functionEntries/codeStream/codeStream.C at line 196. My U file is: FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (1 0 0); boundaryField { //- Set patchGroups for constraint patches #include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes" inlet { type codedFixedValue; redirectType swirl; #codeStream { codeInclude #{ #include "vectorField.H" #}; code #{ const vector axis(1, 0, 0); vectorField v(2.0*this->patch().Cf() ^ axis); v.replace(vector::X, 1.0); operator==(v); #}; }; value $internalField; } outlet { type inletOutlet; inletValue $internalField; value $internalField; } walls { type fixedValue; value uniform (0 0 0); } } |
|
|
|