|
[Sponsors] |
June 11, 2017, 22:35 |
How to compile Foam code using blueCFD
|
#1 |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
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 |
|
June 12, 2017, 00:06 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
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) |
|
June 12, 2017, 00:32 |
|
#3 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
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? |
||
June 12, 2017, 05:01 |
|
#4 | |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
Quote:
Code:
C:\\PROGRA~1\\BLUECF~1\\... 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) |
||
June 12, 2017, 17:43 |
|
#5 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
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//... ?? |
||
June 13, 2017, 00:21 |
|
#6 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
> 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) |
|
June 13, 2017, 02:40 |
|
#7 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
http://bluecfd.github.io/Core/UserGuide/ If possible, could you try to follows it |
||
June 13, 2017, 02:50 |
|
#8 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
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.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
June 13, 2017, 22:07 |
|
#9 | |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Quote:
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? |
||
June 14, 2017, 00:29 |
|
#10 | |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
Quote:
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. |
||
December 31, 2017, 14:39 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
|
|
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 |