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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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

Old   October 18, 2014, 14:38
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Timofey,

I think you need to improve your online searching skills Although I have to say it isn't very linear how to figure this out... although, the trick was to search for the compressible version "muSgs". This is further explained in the following bug reports:
Quoting Andy from the last comment on the first link:
Quote:
The behaviour of the old muSgsWallFunction for LES cases can be recovered by using the mutUSpaldingWallFunction wall function.
Therefore, in theory, in your case you would need "nutUSpaldingWallFunction" instead of "nuSgsWallFunction".

Best regards,
Bruno
ykanani likes this.
__________________
wyldckat is offline   Reply With Quote

Old   February 25, 2015, 04:37
Default
  #3
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
Thank you Bruno!

We actually managed to find it before seeing your answer, more or less by chance .
tiam 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


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 11:56.