CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] not compiling with openFoam 5

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By snowygrouch
  • 1 Post By pi__sec
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2017, 18:07
Default not compiling with openFoam 5
  #1
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Hi all, did anybody succeed in compiling cfmesh together with openFoam 5 ? It is failing for me at the moment. The log is a bunch of class not being appropriate...

Thanks for your help !
bennn is offline   Reply With Quote

Old   November 6, 2017, 11:59
Default CF Mesh and OF5
  #2
New Member
 
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 13
snowygrouch is on a distinguished road
Hi,
Yes it doesnt work at the moment because it has not been ported to OF5.

- I received this reply from CF-Mesh. I have not tried his suggestion yet, so I cannot tell you if this will work, or not.

---------------------------------------------------
Hello Callum,

There have been some incompatible changes in OpenFOAM. It compiles with older versions.
You can try port-v1606 branch. This branch is updated and it works with OpenFOAM-v1706 and foam-extend-4.0.

Regards,

Franjo
elmo555 likes this.
__________________
Calum Douglas
Director
Scorpion Dynamics Ltd
Email: calum.douglas@scorpion-dynamics.com
Web: www.scorpion-dynamics.com
snowygrouch is offline   Reply With Quote

Old   November 16, 2017, 11:10
Default
  #3
New Member
 
Thomas Lashbrooke
Join Date: Nov 2017
Posts: 4
Rep Power: 8
tLashbrooke is on a distinguished road
I really wish I'd visited here earlier! Spent the last hour and a half on this, installed an earlier version.. Why don't they state this anywhere clearly on the site...or in the README...

EDIT: forgot to say thanks!
tLashbrooke is offline   Reply With Quote

Old   November 16, 2017, 11:31
Default CF
  #4
New Member
 
Calum Douglas
Join Date: Apr 2013
Location: Coventry, UK
Posts: 26
Rep Power: 13
snowygrouch is on a distinguished road
By the way I tested this myself and it works (installing the v1606 branch of CF build into OF 5).

But yes - they could have done a better job with communication here.
__________________
Calum Douglas
Director
Scorpion Dynamics Ltd
Email: calum.douglas@scorpion-dynamics.com
Web: www.scorpion-dynamics.com
snowygrouch is offline   Reply With Quote

Old   December 6, 2017, 06:50
Default
  #5
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 9
linox is on a distinguished road
Quote:
Originally Posted by snowygrouch View Post
By the way I tested this myself and it works (installing the v1606 branch of CF build into OF 5).

But yes - they could have done a better job with communication here.
Hi Calum

Following your success to this topic, can you please guide me on how to install and compile cfmesh with OF 5.

I tried doing it but was not successful. I did the following:

git clone git://git.code.sf.net/p/cfmesh/code cfmesh
cd cfmesh
git checkout development
export WM_NCOMPPROCS=4
./Allwmake

Would really appreciate your support

thanks
Patrick
linox is offline   Reply With Quote

Old   December 11, 2017, 08:01
Default
  #6
New Member
 
Aäron Thijs
Join Date: Oct 2016
Location: Belgium
Posts: 10
Rep Power: 9
pi__sec is on a distinguished road
Quote:
Originally Posted by linox View Post
git clone git://git.code.sf.net/p/cfmesh/code cfmesh
Dear Patrick,

You didn't compile the right branch. As stated in the previous posts use the port-v1606+ branch. You can try the code below:

Code:
git clone https://git.code.sf.net/p/cfmesh/code cfmesh-code -b port-v1606+
Compiling this branch worked fine with OpenFOAM v1706.

Kind regards,
Aäron
elmo555 likes this.
pi__sec is offline   Reply With Quote

Old   December 12, 2017, 04:57
Default
  #7
Member
 
Lennart
Join Date: Feb 2016
Posts: 46
Rep Power: 10
elmo555 is on a distinguished road
Thanks pi__sec for finally solving my cfmesh problem!
elmo555 is offline   Reply With Quote

Old   December 18, 2017, 06:17
Default
  #8
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 9
linox is on a distinguished road
Quote:
Originally Posted by pi__sec View Post
Dear Patrick,

You didn't compile the right branch. As stated in the previous posts use the port-v1606+ branch. You can try the code below:

Code:
git clone https://git.code.sf.net/p/cfmesh/code cfmesh-code -b port-v1606+
Compiling this branch worked fine with OpenFOAM v1706.

Kind regards,
Aäron
Hi Aäron,

Thanks for your response. I followed your instruction but the compilation was not successful. I have attached the log file for your reference.

For example, I have several of this complain:
could not open file foamTime.H for source file utilities/workflowControls/workflowControls.C due to No such file or directory

These were accompanied with Errors such as

/opt/openfoam5/wmake/makefiles/general:140: recipe for target '/home/hp/OpenFOAM/hp-5.0/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh' failed
make[1]: *** [/home/hp/OpenFOAM/hp-5.0/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh] Error 1

Not sure how this helps, but there is no content in the newly created folder: platforms/linux64GccDPInt32Opt

I would appreciate any further support.
Thanks,
Patrick
Attached Files
File Type: gz log_make.tar.gz (6.7 KB, 13 views)
linox is offline   Reply With Quote

Old   December 18, 2017, 10:37
Default
  #9
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

@linox

1. Since wmkdep does no preprocessing (main reason why it is relatively fast), it does not resolve guard ifdefs. foamTime.H is a file from foam-extend, since you compile software under OpenFOAM 5.0, there is no such file. Yet, these warnings could be ignored.

2. Root error is here:

Code:
utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C:501:6
6: error: no matching function for call to ‘eigenVector(Foam::symmTensor&, const double&)’
                             vector normal = eigenVector(nt, ev[2]);
And it is caused by non-exhaustive ifs in meshLibrary/Make/options (or by breaking API changes). To resolve the problem, one can either just change this piece of code

Code:
ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
    ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
        CFMESH_MACROS = -DNoSizeType
        LIBS =
    else
        CFMESH_MACROS =
        LIBS =
    endif
endif
to this one

Code:
ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
    ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
        CFMESH_MACROS = -DNoSizeType -DOpenCFDSpecific
        LIBS =
    else
        CFMESH_MACROS =
        LIBS =
    endif
endif
to meshLibrary/Make/options. Or correct ifdefs in utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C to include OpenFOAM-specific macros to account for new API.
Mowgli likes this.
alexeym is offline   Reply With Quote

Old   December 19, 2017, 02:41
Default
  #10
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 9
linox is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

@linox

1. Since wmkdep does no preprocessing (main reason why it is relatively fast), it does not resolve guard ifdefs. foamTime.H is a file from foam-extend, since you compile software under OpenFOAM 5.0, there is no such file. Yet, these warnings could be ignored.

2. Root error is here:

Code:
utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C:501:6
6: error: no matching function for call to ‘eigenVector(Foam::symmTensor&, const double&)’
                             vector normal = eigenVector(nt, ev[2]);
And it is caused by non-exhaustive ifs in meshLibrary/Make/options (or by breaking API changes). To resolve the problem, one can either just change this piece of code

Code:
ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
    ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
        CFMESH_MACROS = -DNoSizeType
        LIBS =
    else
        CFMESH_MACROS =
        LIBS =
    endif
endif
to this one

Code:
ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
    ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
        CFMESH_MACROS = -DNoSizeType -DOpenCFDSpecific
        LIBS =
    else
        CFMESH_MACROS =
        LIBS =
    endif
endif
to meshLibrary/Make/options. Or correct ifdefs in utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C to include OpenFOAM-specific macros to account for new API.
Hi Alexeym,

Thanks very much for the support. My cfmesh is now working upon changing the code as suggested.

Kind regards,
Patrick
linox is offline   Reply With Quote

Old   March 12, 2018, 21:33
Default trouble with cfmesh in OF 5.0 (or 4.0)
  #11
New Member
 
Chaz
Join Date: Mar 2012
Posts: 20
Rep Power: 14
chaz is on a distinguished road
Hello,
I have been unsuccessful getting cfmesh to install in openfoam 5.0. I think I am following the process outlined here in this thread. Process:

git clone https://git.code.sf.net/p/cfmesh/code cfmesh-code -b port-v1606+
cd cfmesh-code/
git checkout development
export WM_NCOMPPROCS=4
( change the file 'options', as noted above)
./Allwmake > log.make 2>&1

The log file is attached.
Am I missing something?
Is there a more updated outline of how to get CFMesh working in OF5?
Thank you
Attached Files
File Type: gz log.make2.tar.gz (2.2 KB, 17 views)
chaz 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
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer wildfire230 OpenFOAM Installation 20 May 6, 2020 07:30
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 19:20
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54


All times are GMT -4. The time now is 19:23.