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

[OpenFOAM.com] compile v2006 PDRsetFields failed

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By _el_jugador
  • 2 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2020, 21:59
Default compile v2006 PDRsetFields failed
  #1
New Member
 
Ery Djunaedy
Join Date: Mar 2009
Posts: 5
Rep Power: 17
erydj is on a distinguished road
Folks, I tried to build OpenFoam v2006, but found the following error.


I am using Ubuntu 18.04. I have followed the system requirement instructions (https://www.openfoam.com/documentati...quirements.php) and foamSystemCheck says I can continue to installation.


Here is the pertinent part of the log file:




Code:
wmake objects moveDynamicMesh
g++: error: /opt/OpenFOAM/OpenFOAM-v2006/build/linux64GccDPInt32Opt/applications/utilities/preProcessing/PDRsetFields/PDRsetFields/PDRsetFields.o: No such file or directory
/opt/OpenFOAM/OpenFOAM-v2006/wmake/makefiles/general:148: recipe for target '/opt/OpenFOAM/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/PDRsetFields' failed
make[2]: *** [/opt/OpenFOAM/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/PDRsetFields] Error 1
/opt/OpenFOAM/OpenFOAM-v2006/wmake/makefiles/apps:29: recipe for target 'PDRsetFields' failed
make[1]: *** [PDRsetFields] Error 2
/opt/OpenFOAM/OpenFOAM-v2006/wmake/makefiles/apps:29: recipe for target 'preProcessing' failed
make: *** [preProcessing] Error 2
make: *** Waiting for unfinished jobs....
    Ctoo: mergeMeshes.C
I have attached the log file below. Also the output of the foamInstallationTest. Any help would be appreciated.
Attached Files
File Type: zip logfile.zip (77.2 KB, 4 views)
erydj is offline   Reply With Quote

Old   August 11, 2020, 01:03
Default
  #2
New Member
 
_el_jugador's Avatar
 
Santiago Mosca
Join Date: Aug 2018
Location: La Plata, Buenos Aires, Argentina
Posts: 1
Rep Power: 0
_el_jugador is on a distinguished road
Hi Ery,


I ran into the same error when trying to compile v2006.



I got to compile OpenFOAM running the Allwmake script with '-k' flag (ignore errors). The first pass I got error warnings not only about PDRsetFields, but also regarding the applications where OpenQBMM libraries were involved.


After this first pass, if tried to run the tutorial case in $FOAM_TUTORIALS/preProcessing/PDRsetFields/simplePipeCage, and had no troubles.


Later I performed a second run of Allwmake, without -k flag. This time the log had no errors reported.


Let me know if this worked for you.


Santiago
mra-cfd and simrego like this.

Last edited by _el_jugador; August 12, 2020 at 15:57. Reason: Clarify sintax. Noticed the previous post already used a suggestion mentioned in my reply.
_el_jugador is offline   Reply With Quote

Old   September 22, 2020, 13:03
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
The problem was that the Allwmake for PDRsetFields was not managing the wmake '-q' (queuing option) properly. This has been fixed in the master branch. The simple solution is to compile without the '-q' option.
Adding the '-k' option will simply have compilation keep-goong (ignoring the failure). If you don't need PDRsetFields, it won't matter either way which solution you pick.
_el_jugador and NotDrJeff like this.
olesen is offline   Reply With Quote

Old   October 26, 2020, 14:37
Default
  #4
New Member
 
Jeffrey Johnston
Join Date: Oct 2020
Location: Belfast, Northern Ireland
Posts: 21
Rep Power: 5
NotDrJeff is on a distinguished road
Quote:
Originally Posted by olesen View Post
If you don't need PDRsetFields, it won't matter either way which solution you pick.
Noob here...

I found that when using Allwmake with the -q option not only resulted in the error described above but meant that openfoam commands were not being recognised (e.g. icoFoam, blockMesh...)

Building the code again but without the -q option seems to have resolved the issue (although this took much longer to run).

Hope this helps somebody in a similar predicament.
NotDrJeff is offline   Reply With Quote

Old   November 3, 2020, 15:11
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
This was fixed in the master branch a while ago. But you can (or should?) just use the Ubuntu binary packs.

https://develop.openfoam.com/Develop...ompiled/debian
olesen is offline   Reply With Quote

Reply

Tags
compile from source


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
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 03:35
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 15:00
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 09:54
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 10:25.