CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   fixedMeanValue compilation in OpenFOAM 4.0 (https://www.cfd-online.com/Forums/openfoam-programming-development/175905-fixedmeanvalue-compilation-openfoam-4-0-a.html)

MBttR August 8, 2016 06:02

fixedMeanValue compilation in OpenFOAM 4.0
 
Hi,

I'm trying to compile fixedMeanValue BC from this forumpost on OpenFOAM 4.0 using wmake libso, but get the following error:

Code:

bruno@bruno-VirtualBox:~/OpenFOAM/bruno-4.0/fixedMeanValue$ wmake libso
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file fixedMeanValueFvPatchFields.C
could not open file DataEntry.H for source file fixedMeanValueFvPatchFields.C due to No such file or directory
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam4/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude  -fPIC -c fixedMeanValueFvPatchFields.C -o Make/linux64GccDPInt32Opt/fixedMeanValueFvPatchFields.o
In file included from fixedMeanValueFvPatchFields.H:38:0,
                from fixedMeanValueFvPatchFields.C:29:
fixedMeanValueFvPatchField.H:39:23: fatal error: DataEntry.H: No such file or directory
compilation terminated.
/opt/openfoam4/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/fixedMeanValueFvPatchFields.o' failed
make: *** [Make/linux64GccDPInt32Opt/fixedMeanValueFvPatchFields.o] Error 1

Any idea what might go wrong? What is this DataEntry.H? I have found that this folder no longer seems to exist under OF4.0: https://github.com/OpenFOAM/OpenFOAM...ry/DataEntry.H

Just to make sure, I currently put the fixedMeanValue folder on the same level as the $FOAM_RUN folder, correct? Hence for me the fixedMeanValue folder is in OpenFOAM/bruno-4.0, and in that folder is the Make folder and the C and H files.

Thanks!

Bruno

hk318i August 8, 2016 07:48

DataEntry has been renamed Function1, check this commit [LINK]

MBttR August 8, 2016 09:04

1 Attachment(s)
Quote:

Originally Posted by hk318i (Post 613151)
DataEntry has been renamed Function1, check this commit [LINK]

Thank you so much!

For the others and random Googlers, I changed the files to work with OF4.0 thanks to hk318i, see attachment. Just unpack to your user folder, open a terminal in the fixedMeanValue folder and execute:

Code:

wmake libso
Then add the following to your controldict:

Code:

libs ( "libfixedMeanValue.so");
Cheers!

akidess August 8, 2016 09:19

Is this BC in any way different than the standard fixedMean BC already included in OpenFOAM?

jherb August 9, 2016 18:41

See http://www.cfd-online.com/Forums/ope...tml#post480824


All times are GMT -4. The time now is 11:32.