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

fixedMeanValue compilation in OpenFOAM 4.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree5Likes
  • 2 Post By hk318i
  • 1 Post By MBttR
  • 2 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2016, 07:02
Default fixedMeanValue compilation in OpenFOAM 4.0
  #1
Member
 
Bruno
Join Date: Jun 2016
Location: Siegen, Germany
Posts: 59
Rep Power: 9
MBttR is on a distinguished road
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
MBttR is offline   Reply With Quote

Old   August 8, 2016, 08:48
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
DataEntry has been renamed Function1, check this commit [LINK]
MBttR and charryzzz like this.
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   August 8, 2016, 10:04
Default
  #3
Member
 
Bruno
Join Date: Jun 2016
Location: Siegen, Germany
Posts: 59
Rep Power: 9
MBttR is on a distinguished road
Quote:
Originally Posted by hk318i View Post
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!
Attached Files
File Type: gz fixedMeanValueOF4.tar.gz (2.6 KB, 40 views)
hk318i likes this.
MBttR is offline   Reply With Quote

Old   August 8, 2016, 10:19
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Is this BC in any way different than the standard fixedMean BC already included in OpenFOAM?
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   August 9, 2016, 19:41
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
See http://www.cfd-online.com/Forums/ope...tml#post480824
akidess and MBttR like this.
jherb is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 14:55
OpenFOAM compilation MrAnderson OpenFOAM 3 October 16, 2017 19:04
Compilation error with OpenFOAM 2.1.x Martin_ OpenFOAM Installation 28 January 15, 2013 07:58
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25


All times are GMT -4. The time now is 01:56.