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

porting nuSgsWallFunction from foam-extend to OpenFOAM 2.2.0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 16, 2014, 11:39
Default porting nuSgsWallFunction from foam-extend to OpenFOAM 2.2.0
  #1
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
Dear Foamers,

As I understand the wall-function nuSgsWallFunction now only lives int the foam-extend version of OpenFOAM. I am trying to compile it against the official release 2.2.0.
For some reason I get the following problem:

Code:
nuSgsWallFunctionFvPatchScalarField.C:129:9: error: ‘lookupPatchField’ was not declared in this scope
         lookupPatchField<volVectorField, vector>(UName_);
         ^
nuSgsWallFunctionFvPatchScalarField.C:129:40: error: expected primary-expression before ‘,’ token
         lookupPatchField<volVectorField, vector>(UName_);
                                        ^
nuSgsWallFunctionFvPatchScalarField.C:134:40: error: expected primary-expression before ‘,’ token
         lookupPatchField<volScalarField, scalar>(nuName_);
                                        ^
make: *** [Make/linux64GccDPOpt/nuSgsWallFunctionFvPatchScalarField.o] Error 1
Here are my "options" and "files":
Code:
nuSgsWallFunctionFvPatchScalarField.C

LIB =  $(FOAM_USER_LIBBIN)/libnuSgsWallFunctionFvPatchScalarField
Code:
EXE_INC = \
	-I$(LIB_SRC)/turbulenceModels \
	-I$(LIB_SRC)/transportModels \
	-I$(LIB_SRC)/finiteVolume/lnInclude \
	-I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = \
	-lincompressibleTurbulenceModel \
	-lfiniteVolume \
	-lmeshTools
I digged a bit. The method that the compiler cannot find is defined in fvPatch.H, so this should be visible through -I$(LIB_SRC)/finiteVolume/lnInclude if I understand correctly. Indeed, if I append the method with Foam::fvPatch:: then it seems to find it, but gies another bug instead. But the code should probably compile without change anyway. Any thoughts?

Best,
Timofey
tiam is offline   Reply With Quote

 


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
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 14:07
Getting crazy with all the problems I have in OpenFoam Nicacio OpenFOAM Running, Solving & CFD 7 June 9, 2014 19:08
Density_based turbo with OpenFoam 2.2.0 eddykendo OpenFOAM 4 March 2, 2014 06:05
cavity 3D in OpenFOAM Extend alquimista OpenFOAM Running, Solving & CFD 7 May 4, 2013 07:20
[Other] cgnsToFoam problems with "QUAD_4" cells lentschi OpenFOAM Meshing & Mesh Conversion 1 March 9, 2011 04:49


All times are GMT -4. The time now is 08:37.