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

How to compile Foam code using blueCFD

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By piu58

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2017, 22:35
Default How to compile Foam code using blueCFD
  #1
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Hi everyone,

It appreciate if someone could help me to fix the following issue.

I am using OpenFoam v-4.x of blueCFD on my Window 7. It installed well and I can run some tutorial applications. Now I want to modify myFoam code and compile it to build new solver. However, it always shows error like that:
[Make/mingw_w64GccDPInt320pt/version_of_build.o] Error 1

I am using wmake that is similar to wmake on Ubuntu
Attached Images
File Type: png error.png (44.9 KB, 62 views)
ndtrong is offline   Reply With Quote

Old   June 12, 2017, 00:06
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
The output file does not fit a linux environment, it is Windows like (with backslashes. You have to use the equivalent path for the shell here. Easiest may be to use the point folder and move it afterward (with windows tools).
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 12, 2017, 00:32
Default
  #3
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by piu58 View Post
The output file does not fit a linux environment, it is Windows like (with backslashes. You have to use the equivalent path for the shell here. Easiest may be to use the point folder and move it afterward (with windows tools).
Dear Uwe Pilz

Thank you very much on your comments.
However, I do not understand your suggestions well. Could you please help me to make it more clear?
ndtrong is offline   Reply With Quote

Old   June 12, 2017, 05:01
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Quote:
Originally Posted by ndtrong View Post
Dear Uwe Pilz

Thank you very much on your comments.
However, I do not understand your suggestions well. Could you please help me to make it more clear?
You used a path like
Code:
C:\\PROGRA~1\\BLUECF~1\\...
This is not a valid path for a linux like shell.

A path looks rather like
Code:
/home/ofuser/blueCFD/...
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 12, 2017, 17:43
Default
  #5
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by piu58 View Post
You used a path like
Code:
C:\\PROGRA~1\\BLUECF~1\\...
This is not a valid path for a linux like shell.

A path looks rather like
Code:
/home/ofuser/blueCFD/...
Dear Uwe Pilz

If possible, could you please guide me how to change the patch like that.
Do you mean I have to install blueCFD in another folder with home folder outside of C://Program//... ??
ndtrong is offline   Reply With Quote

Old   June 13, 2017, 00:21
Default
  #6
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
> If possible, could you please guide me how to change the patch like that.

I see the line which causes the problem. But I don't have your environement here and cannot say what to change.

Your makefile contains a pointer to c:\... in an direct or indirect way (by parameter). You have to look and to understand what happens there.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 13, 2017, 02:40
Default
  #7
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by piu58 View Post
> If possible, could you please guide me how to change the patch like that.

I see the line which causes the problem. But I don't have your environement here and cannot say what to change.

Your makefile contains a pointer to c:\... in an direct or indirect way (by parameter). You have to look and to understand what happens there.
I installed blueCFD directly on my PC C:\\Programs Files\\ blueCFD\\ as shown in the following link:
http://bluecfd.github.io/Core/UserGuide/
If possible, could you try to follows it
ndtrong is offline   Reply With Quote

Old   June 13, 2017, 02:50
Default
  #8
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
I use the CFD windows port form CFDSupport:

http://www.cfdsupport.com/download-o...r-windows.html

It works without any problems at different computers.
ndtrong likes this.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 13, 2017, 22:07
Default
  #9
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by piu58 View Post
I use the CFD windows port form CFDSupport:

http://www.cfdsupport.com/download-o...r-windows.html

It works without any problems at different computers.
Dear Uwe Pilz

It is great to see your suggestion on using different version of OpenFoam for Windows,
I installed and run it well. However, I see some differences of source code in this version comparing with OpenFoam in blueCFD and building code get errors. Could you please help me to explain the difference between them?
ndtrong is offline   Reply With Quote

Old   June 14, 2017, 00:29
Default
  #10
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Quote:
Originally Posted by ndtrong View Post
Dear Uwe Pilz

It is great to see your suggestion on using different version of OpenFoam for Windows,
I installed and run it well. However, I see some differences of source code in this version comparing with OpenFoam in blueCFD and building code get errors. Could you please help me to explain the difference between them?
There exist some OF pathways. Their software base is not identical. It is discussed for time to toime here.

At the moment, we have to live with that.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)

Last edited by piu58; June 19, 2017 at 00:11.
piu58 is offline   Reply With Quote

Old   December 31, 2017, 14:39
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all,

I've moved the line of discussion that ndtrong had about building the custom solver with CFDSupport's port to here: Various problems compiling interFoam with CFDSupport's v1706 port of OpenFOAM


As for the original problem with blueCFD-Core, I'm rather late now to explain this, but here goes just the same:

Instructions on how to compile custom code with it are provided here: https://github.com/blueCFD/Core/wiki...ng-custom-code

More specifically, the original problem was that there was a bug in blueCFD-Core 2016-1, which required users to set-up the work environment, as explained here: https://github.com/blueCFD/Core/wiki...rk-environment - this would create a short-cut drive letter "X:" which would act as short-cut to where blueCFD-Core was installed, so that the space in "C:\Program Files" would not give problems anymore.
This bug was fixed in blueCFD-Core 2016-2.

The second issue is that the source code changes needed to the custom source code, needed to account for some of the file name changes made in blueCFD-Core's port of OpenFOAM, which is detailed here: https://github.com/blueCFD/Core/wiki...e#introduction

Best regards,
Bruno
__________________
wyldckat 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
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 5 June 22, 2019 02:56
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 11:59
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 04:14
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
gmsh2ToFoam sarajags_89 OpenFOAM 0 November 24, 2009 22:50


All times are GMT -4. The time now is 22:09.