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

fixedMeanValue compilation in OpenFOAM 4.0

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

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 8, 2016, 06:02
Default fixedMeanValue compilation in OpenFOAM 4.0
  #1
Member
 
Bruno
Join Date: Jun 2016
Location: Siegen, Germany
Posts: 56
Rep Power: 2
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, 07:48
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: UK
Posts: 219
Rep Power: 10
hk318i is on a distinguished road
DataEntry has been renamed Function1, check this commit [LINK]
MBttR likes this.
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   August 8, 2016, 09:04
Default
  #3
Member
 
Bruno
Join Date: Jun 2016
Location: Siegen, Germany
Posts: 56
Rep Power: 2
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, 2 views)
hk318i likes this.
MBttR is offline   Reply With Quote

Old   August 8, 2016, 09:19
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 1,139
Rep Power: 20
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.
*Join the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oHPxcPqde7HtA2
akidess is offline   Reply With Quote

Old   August 9, 2016, 18:41
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 383
Rep Power: 11
jherb is on a distinguished road
See Pressure outlet boundary condition
akidess and MBttR like this.
jherb is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 15 May 18, 2016 06:08
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 06:55
OpenFOAM compilation MrAnderson OpenFOAM 2 September 30, 2010 20:29
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 06:25


All times are GMT -4. The time now is 14:58.