|
[Sponsors] | |||||
|
|
|
#22 |
|
New Member
Jano
Join Date: Oct 2010
Posts: 3
Rep Power: 4 ![]() |
Dear all,
I was trying to follow the above steps in OpenFoam 1.7 and something was wrong Iḿ new with linux and OpenFoam; could someone help me? |
|
|
|
|
|
|
|
|
#23 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Greetings Jano and welcome to the forum!
For OpenFOAM 1.7.0 and above, all you have to do to build ccm26ToFoam is: Code:
$FOAM_APP/utilities/mesh/conversion/Optional/Allwmake Bruno
__________________
|
|
|
|
|
|
|
|
|
#24 |
|
New Member
Jano
Join Date: Oct 2010
Posts: 3
Rep Power: 4 ![]() |
Many thanks for your fast reply Bruno!
when I have tried: /opt/openfoam171/applications$ utilities/mesh/conversion/Optional/Allwmake cd + ./AllwmakeLibccmio utilities/mesh/conversion/Optional/Allwmake: 1: ./AllwmakeLibccmio: not found + [ -e /libccmio.so ] Do you know where the problem could be? Again many thanks! Jano |
|
|
|
|
|
|
|
|
#25 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Jano,
I forgot about asking you which version you were using ...OK, you're using the Debian packages for Ubuntu that OpenCFD made available. Unfortunately, they've made the packages without taking into account those who wish to build ccm26ToFoam. Therefore, here it is the step-by-step mini-guide for getting your own ccm26ToFoam built with your installed version of OpenFOAM:
Good luck! Best regards, Bruno
__________________
Last edited by wyldckat; October 23, 2010 at 13:14. Reason: see "edit:" |
|
|
|
|
|
|
|
|
#26 |
|
New Member
Jano
Join Date: Oct 2010
Posts: 3
Rep Power: 4 ![]() |
This is quite complicated!
I think that there is some problem with the third party folder sudo sed -i -e 's=cd $WM_THIRD_PARTY_DIR && ==' -e 's=FOAM_LIBBIN=FOAM_USER_LIBBIN=' Allwmake sed: non se puido ler Allwmake: No such file or directory Ifeel I'm heavy with this theme, but do not know what to do? Best regards |
|
|
|
|
|
|
|
|
#27 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Jano,
Sorry about that I forgot that you were new to this.OK, new instructions, simplified:
Good luck! Bruno
__________________
|
|
|
|
|
|
|
|
|
#29 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Greetings to all!
Since the deb packages for OpenFOAM 2.0.0 have been changed considerably, here's a modified package for 2.0.0. Keep in mind that this modification will not work for 1.7.0 nor 1.7.1. Instructions are the same as the ones from the before-previous post ![]() Best regards, Bruno
__________________
|
|
|
|
|
|
|
|
|
#30 |
|
New Member
Gustavo
Join Date: Feb 2010
Location: Curitiba - PR - Brasil
Posts: 13
Rep Power: 5 ![]() |
Hi Bruno,
thanks once again. Excellent. Best regards, Gustavo. |
|
|
|
|
|
|
|
|
#31 |
|
Member
Join Date: Nov 2011
Posts: 44
Rep Power: 3 ![]() |
Hello.
I get this error when running the script. I am running OF 2.0.0 on a Mac. Anyone know what I can do? Thank you ![]() Francesco-Ferronis-MacBook-Pro esktop MacbookPro$ ./ccm26localsed: -e: No such file or directory + /Users/MacbookPro/OpenFOAM/ThirdParty-2.0.x/AllwmakeLibccmio downloading libccmio-2.6.1.tar.gz from https://wci.llnl.gov/codes/visit/3rd...o-2.6.1.tar.gz etc/tools/ThirdPartyFunctions: line 72: wget: command not found no download/libccmio-2.6.1.tar.gz to unpack + cd libccmio-2.6.1 /Users/MacbookPro/OpenFOAM/ThirdParty-2.0.x/AllwmakeLibccmio: line 67: cd: libccmio-2.6.1: No such file or directory + exit 1 + '[' -e /Users/MacbookPro/OpenFOAM/ThirdParty-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib/libccmio.so ']' |
|
|
|
|
|
|
|
|
#32 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi fferroni,
Apparently you don't have GNU shell tools installed or whatever it's called on Mac... and possibly is available on Mac ports. I say this because sed doesn't seem to work the same way it does on Linux and you don't even have wget installed either.It will probably be faster to manually do the commands shown in the script, instead of simply running the script. sed acts a fast text editor and wget acts as a downloader. The two scripts that need some steps done manually are:
Bruno
__________________
|
|
|
|
|
|
|
|
|
#33 |
|
Member
Join Date: Nov 2011
Posts: 44
Rep Power: 3 ![]() |
Hi,
Thanks for the really quick response. I did the commands manually, substituting WM_THIRD_PARTY_DIR with . and FOAM_EXT_LIBBIN with FOAM_USER_LIBBIN in the appropriate files. Then I downloaded libccmio-2.6.1, ran the scripts etc. but I get these errors with MacBook-Pro:Optional MacbookPro$ ./AllwmakeLibccmio + cd libccmio-2.6.1 + mkdir Make mkdir: Make: File exists + cp -n ../wmakeFiles/libccmio/files ../wmakeFiles/libccmio/options Make/ + wmake libso /bin/sh: g++-mp-4.5: command not found make: *** [libNULL.dylib] Error 127 So far, I have a folder Optional in $WM_PROJECT_USER_DIR with Allwmake, AllwmakeLibccmio, build.log, cc26ToFoam folder, tools folder, wmakeFiles folder and libccmio-2.6.1 folder. Not sure what the problem is! Any help is appreciated ![]() Thank you again. Best, Francesco Last edited by fferroni; February 19, 2012 at 16:00. |
|
|
|
|
|
|
|
|
#34 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Francesco,
Well, you're missing g++-mp-4.5, one of the parts of the gcc 4.5 compiler toolkit... which is another big indication that you are missing several tools. On the following post is a recent guide on how to install OpenFOAM 2.1.x on Macs: OF 1.9 (aka OF 2.1) on Mac OS X post #22 - there you should find a lot of instructions that are needed for both 2.0.0 and 2.1.x ![]() I don't have a Mac myself, so I can't help much more than this ![]() Good luck! Bruno
__________________
|
|
|
|
|
|
|
|
|
#35 |
|
Member
Join Date: Nov 2011
Posts: 44
Rep Power: 3 ![]() |
Hmm this is very strange.
I have gcc45 installed. I checked in Macports and I have: gcc45 @4.5.3_1 (active) Furthermore, just today I compiled an openfoam solver, and in the messages there was: ... g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 ... etc. So perhaps the Allwmake file is somehow not compatible with a Mac? :S I really have no idea.. my knowledge of these things is far from enough ![]() Thanks wyldckat for helping me so far though! ![]() Anyone? |
|
|
|
|
|
|
|
|
#36 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Francesco,
Have you tried doing the following commands manually, from where AllwmakeLibccmio is being executed? Code:
cd libccmio-2.6.1 wmake libso ![]() Good luck! Bruno
__________________
|
|
|
|
|
|
|
|
|
#37 |
|
Senior Member
Ziad Boutanios
Join Date: Mar 2009
Location: Montréal, Canada
Posts: 104
Rep Power: 6 ![]() |
Hi everybody,
Finished compiled the stock version of ccm26ToFoam on 2.1.x and I thought I'd share it, just in case anyone could use it:
Code:
EXE_LIBS = \
-lfiniteVolume \
-lmeshTools \
-lccmio \
-L$(FOAM_EXT_LIBBIN) \
-L$(FOAM_USER_LIBBIN) <--- this line right here
Happy foaming... Z. |
|
|
|
|
|
|
|
|
#38 |
|
New Member
Ashish
Join Date: Sep 2012
Posts: 2
Rep Power: 0 ![]() |
Hi Bruno ,
I have done same as you have given the second instructions but its giving the error like... unpack download/libccmio-2.6.1.tar.gz + cd libccmio-2.6.1 + mkdir Make + cp -n ../wmakeFiles/libccmio/files ../wmakeFiles/libccmio/options Make/ + wmake libso /opt/OpenFOAM-2.1.0/wmake/wmake: Zeile 222: make: Kommando nicht gefunden. /opt/OpenFOAM-2.1.0/wmake/wmake: Zeile 223: make: Kommando nicht gefunden. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/student12/OpenFOAM/student12-2.1.0/Optional/libccmio-2.6.1 + '[' -e /home/student12/OpenFOAM/student12-2.1.0/platforms/linux64GccDPOpt/lib/libccmio.so ']' student12@rela-d1:~/Convertor> I dont know what to do now , i have actually .CCM file and i want to convert it into OpenFoam 2.1 please help me out of this as i am new too in OpenFoam. Your help will be appreciable. |
|
|
|
|
|
|
|
|
#39 | |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Greetings Ashish,
Looks like you haven't built any source code yet, because this message: Quote:
Install the missing packages. I'm guessing you'll need to tun this before trying again: Code:
sudo apt-get install build-essential flex bison zlib1g-dev Best regards, Bruno
__________________
|
||
|
|
|
||
|
|
|
#40 |
|
New Member
Ashish
Join Date: Sep 2012
Posts: 2
Rep Power: 0 ![]() |
Thanx for your reply,
I have tried it out as what u said , actually its Opensuse linux so i m trying it what the commands given now i have installed the both packages into the Openfoam installation folder and then tried with Opensuse Installation code given but still its giving smthing like this --------- Zum Installieren oder Deinstallieren von Paketen werden Root-Rechte benötigt. Can u tell me whts happening ?? |
|
|
|
|
|
![]() |
| Tags |
| .msh, .vrt, mesh conversion, star-ccm |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mesh Transfer from ICEM to STAR CCM+ | Waseem Siddique | CD-adapco | 4 | February 12, 2009 06:02 |
| Problem wih MESh in Star Design | Waseem Siddique | CD-adapco | 3 | January 28, 2009 07:19 |
| fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |
| basic of mesh refinement | arya | CFX | 4 | June 19, 2007 12:21 |
| unstructured vs. structured grids | Frank Muldoon | Main CFD Forum | 1 | January 5, 1999 10:09 |