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

pipeCyclic tutorial codeStream error in codedFixedValue BC specification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2014, 23:36
Default pipeCyclic tutorial codeStream error in codedFixedValue BC specification
  #1
New Member
 
Ralph Aldredge
Join Date: Nov 2013
Posts: 1
Rep Power: 0
fivewood is on a distinguished road
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);
}
}
fivewood is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 14:03.