|
[Sponsors] |
Implementing v2f turbulence model in 2.1.x - GName not declared error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 12, 2014, 07:06 |
Implementing v2f turbulence model in 2.1.x - GName not declared error
|
#1 |
Member
Thangam Natarajan
Join Date: Dec 2010
Location: Perth
Posts: 70
Rep Power: 17 |
hi,
Im trying to implement the v2f model in version 2.1.x but without any success. steps followed: 1) Downloaded the v2f.C and v2f.H files from https://github.com/OpenFOAM/OpenFOAM-2.2.x 2) created a new folder in my /src/turbulenceModels/incompressible/RAS/v2f 3) created a Make folder with files & options: Files: Code:
v2f.C LIB = $(FOAM_USER_LIBBIN)/libmyincompressibleRASModels Code:
EXE_INC = \ -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude LIB_LIBS = but resulted in the following error: Code:
wmakeLnInclude: linking include files to ./lnInclude SOURCE=v2f.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/thangam/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels -I/home/thangam/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/thangam/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/thangam/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/thangam/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/RAS/lnInclude -IlnInclude -I. -I/home/thangam/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/thangam/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/v2f.o v2f.C: In member function ‘virtual void Foam::incompressible::RASModels::v2f::correct()’: v2f.C:367:34: error: ‘GName’ was not declared in this scope make: *** [Make/linux64GccDPOpt/v2f.o] Error 1 Thanks. |
|
January 12, 2014, 08:28 |
|
#2 |
Senior Member
|
From 2.2.2's $FOAM_SRC/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H:
Code:
inline word GName() const { return word(type() + ":G"); } |
|
January 12, 2014, 22:13 |
|
#3 | |
Member
Thangam Natarajan
Join Date: Dec 2010
Location: Perth
Posts: 70
Rep Power: 17 |
Quote:
Thanks for the suggestion. Do you suggest to include the code you have mentioned in my 2.1.x ~/turbulenceModel.H as it is in 2.2.x ? (because you have replaced :G to .G) ? Any idea why this function is included in the 2.2.x and not the 2.1.x? |
||
January 13, 2014, 02:49 |
|
#4 | |
Senior Member
|
Quote:
You've got several options, two of them are: 1. Replace call to GName() with "RASModel::G" (I've just checked the naming in 2.1.0's kEpsilon.C). 2. Add GName method into turbulenceModel class (turbulenceModel.H) like Code:
inline word GName() const { return word("RASModel::G"); } |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
Compile calcMassFlowC | aurore | OpenFOAM Programming & Development | 13 | March 23, 2018 08:43 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 06:48 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |