|
[Sponsors] |
September 21, 2010, 21:11 |
|
#81 |
Senior Member
Join Date: Mar 2009
Posts: 225
Rep Power: 18 |
Many very thanks for your reply and assistance!
Best! K |
|
November 16, 2010, 11:55 |
|
#82 |
New Member
Joseph Urich
Join Date: Mar 2009
Location: Pittsburgh, PA
Posts: 21
Rep Power: 17 |
First of all, thanks Bernhard for the patch.
Does the FOAM_SIGFPE environment setting work with this patch on OS X? It doesn't for my installation. Having it set or unset makes no difference, the signal seems to be ignored. If mess up a run and get a NaN in a variable, the solver keeps right on ticking. I don't see any changes made by the patch in the sigFpe source files, so I don't think it should work, but I thought I'd ask, in case I'm missing something. Thanks. JU |
|
November 16, 2010, 12:56 |
|
#83 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
November 16, 2010, 18:23 |
|
#84 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Quote:
If I'm not mistaken, check the patches for the file "src/OpenFOAM/primitives/Scalar/doubleFloat.H", right after the "#include <cmath>":
Best regards, Bruno
__________________
|
||
November 17, 2010, 06:24 |
|
#85 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
November 17, 2010, 23:16 |
|
#86 |
New Member
Joseph Urich
Join Date: Mar 2009
Location: Pittsburgh, PA
Posts: 21
Rep Power: 17 |
Thanks Bernhard.
Floating point exceptions seem to be handled in sigFpe.C, and there are some Linux calls in there (feenableexcept() for example) that aren't implemented in OS X. Don't know the corresponding functions in OSX, but I can keep looking. Thanks for the pointer to FreeFoam, Bruno. It doesn't seem like they implemented this functionality, but I haven't been through it completely yet. Regards, Joe |
|
November 18, 2010, 07:35 |
|
#87 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Bernhard and Joe,
I'm sorry, but I assumed this issue was resolved already, due to this post on Symscape's blog. My deduction was that since the patches already had this fixed for MinGW, it would only be reasonable that a POSIX respecting Darwin system would have this more than solved... but I guessed it wrong Also a bad assumption was that FreeFOAM (which does have support for Mac OS X for a while now) would already have this fixed as well. By the way Joe, you might want to see the pu branch of FreeFOAM, which is the bleeding edge of FreeFOAM. Best regards and good luck! Bruno PS: I've tried having a look at GNU-Darwin, OpenDarwin and PureDarwin, but they currently seem to be dead ends Too bad there still isn't a RHEL/CentOS like thing with Mac OS X... oh well.
__________________
|
|
December 8, 2010, 09:40 |
Troubles with MPI
|
#88 |
New Member
Daniele Trimarchi
Join Date: Mar 2010
Location: Southampton, Uk
Posts: 11
Rep Power: 16 |
Hi foamers,
I successifully installed OF, but I'm getting troubles with MPI. I'm following the wiki: http://openfoamwiki.net/index.php/Ho...enFOAM_v17_Mac Point 3 states that one should make some links in /Volumes/OpenFOAM/1.7.0/ThirdParty-1.7.0/platforms/darwinIntel64/openmpi-1.4.1/lib However, this directory does not exist in my case. I have another version of mpi on my computer (MacBook Pro with Snow leopard), which runs well if the OpenFOAM.dmg is not linked. I try then to link this direcly, making a ln -s to the location where the libmpi.dylib is. In any case, as the OpenFOAM.dmg disk is linked I get: > mpirun -------------------------------------------------------------------------- Sorry! You were supposed to get help about: orterun:usage from the file: help-orterun.txt But I couldn't find any file matching that name. Sorry! -------------------------------------------------------------------------- Any guess..? Thanks, Daniele |
|
December 9, 2010, 16:02 |
Solved!
|
#89 |
New Member
Daniele Trimarchi
Join Date: Mar 2010
Location: Southampton, Uk
Posts: 11
Rep Power: 16 |
Hi Foamers,
I found the solution, and I thought it would be nice to post it, perhaps it will be useful. During the compilation of MPI, a series of files are created and sequentially used for the continuation of the compilation. For some reason (if anyone has guesses...let me know..!) these files are created with the .loT extension, whereas the compiler searches for .lo files. The solution I found is then recompile by hand MPI: HTML Code:
cd ThirdParty-1.7.x/openmpi-1.4.1/ ./autogen.sh ./configure --prefix=~/OpenFOAM/ThirdParty-1.7.x/platforms/darwinintel64/openmpi-1.4.1 make all HTML Code:
for file in *.loT; do mv "$file" "`echo $file | sed -e 's/\.loT/.lo/g'`" ; done Furtermore, for some reasons the wrappers are not well named (mpi at the place of openmpi). So it is necessary to create links in the dir: HTML Code:
/OpenFOAM/ThirdParty-1.7.x/platforms/darwinintel64/openmpi-1.4.1/share/openmpi HTML Code:
ln -s mpic++-wrapper-data.txt openmpic++-wrapper-data.txt ln -s mpicxx-wrapper-data.txt openmpicxx-wrapper-data.txt Regards, Daniele Last edited by Daniele Trimarchi; December 10, 2010 at 06:39. |
|
December 25, 2010, 09:43 |
Prebuilt disk image of OpenFOAM 1.7.x for OS X 10.6.5
|
#90 |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Hi Foamers,
Thanks to gschaider's ingenious patches I have a fully working (sans Tecplot360) installation of OF 1.7.x on Snow Leopard 10.6.5 (DPOpt on 64-bit). By deleting the build files, wmake files, documentation, sources, tutorials and other miscellany, I could bring down the used space on the disk image to just about 280mb. It only has the binaries now. Compressing this dmg made it 104MB. I hope it's okay to post a link to this, in case someone wants a prebuilt image of OF1.7.x for OS X. You can get it at http://macof17x.blogspot.com. It has all the standard solvers and utilities except Tecplot360 conversion. You can decompose (including w/ metis) and run cases in parallel. Thank you gschaider for a massive effort. Thanks to chrisb for a great and crisp explanation on his blog. |
|
December 26, 2010, 18:00 |
|
#91 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Nice that somebody takes it upon him to support a binary release of 1.7 on the Mac. Using the attached patch (inspired by the symscape-patches) I managed to compile the tecplot-converter. When running it fails with an unresolved reference in the tecio-library. I didn't have a deeper look as I don't use Tecplot anyway. Bernhard tecPlotOnMac.patch |
||
March 2, 2011, 21:33 |
Problem (Probably Stupid) Using Precompiled Distribution
|
#92 |
New Member
Theron
Join Date: Mar 2011
Posts: 1
Rep Power: 0 |
Hi everyone,
I'm brand new to OpenFOAM and relatively to heavy command line work in Unix systems. I've installed successfully using the tutorial on Sushant's website (thanks again!), but I'm having issues running the tutorials. So far I've tried running blockMesh and paraFoam. They seem to run correctly but both return an error along the lines of "file does not exist: './system/controlDict'". Should I have a system directory in my OpenFOAM installation, or do I need to change some environment variables somewhere? Thanks, Theron |
|
March 3, 2011, 10:33 |
|
#93 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
April 27, 2011, 01:42 |
|
#94 | |
Member
Charlie
Join Date: Dec 2010
Location: USA
Posts: 85
Rep Power: 15 |
Quote:
Can you tell me how to use this? hdiutil attach "/path/to/your/disk_image.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null I just used "Disk Utility" to create a case-sensitive disk named OpenFOAM. the path to it is /Volumes/OpenFOAM I tried to create a file ~/.bashrc, and edit it as: hdiutil attach "/Volumes/OpenFOAM/" -mountpoint "$HOME/OpenFOAM" > /dev/null . $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc Then when I try to source it by command line ". ~/.bashrc", I get the following error messages: hdiutil: attach failed - not recognized -bash: /Users/zcheng/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory So how Can I point the $HOME/OpenFOAM to /Volumes/OpenFOAM ? I get confused at this step. Thank you for any help! |
||
April 27, 2011, 02:33 |
|
#95 |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Charlie,
Did you use Disk Utility to create a disk image or did you create a partition on your existing hard disk for use with OpenFOAM? You need to use hdiutil only if you have a disk image (.dmg or .sparseimage) file. If you have a partition that mounts automatically to /Volumes/OpenFOAM (i.e. the volume is always accessible, you don't have to manually mount it) then just do: (make sure you haven't already created a $HOME/OpenFOAM folder; or else move it) cd ln -sf /Volumes/OpenFOAM OpenFOAM
__________________
If you only have a hammer, you tend to see every problem as a nail. Last edited by sushant; April 28, 2011 at 03:38. Reason: wrongly addressed Chris instead of Charlie ... should learn to read :) |
|
April 27, 2011, 15:06 |
Thank you
|
#96 |
Member
Charlie
Join Date: Dec 2010
Location: USA
Posts: 85
Rep Power: 15 |
Thank you for your prompt reply!
Right now, I'm trying to use Prebuilt OpenFOAM-1.7.x which is in your signature. However, after I install it, I found that there is no tutorials folder, so where can we find these files? can I just copy the tutorials from the other places? Thank you again ! |
|
April 28, 2011, 03:37 |
|
#97 |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Yep - sorry about that - there is no tutorials folder in the prebuilt image.
The source is also kept out - you won't find the src folder either. I figured if someone wants the source, they'd be the kind who would compile it (and thus not need a binary). In other words, those who need a binary don't usually need source, if they did, they would probably be able to compile it themselves. An exception is someone who wants the code just to study and understand it and not necessarily compile. The tutorials folder was a gray area - probably a (silly) reason to decide on keeping it out was that it made the final disk image less than 100MB (99MB) but with the tutorials it was about 25% more. I used to have a ~ 25MB zip file with the tutorials - just the tutorials - on the sourceforge page for this (hmm, I realize I have a sourceforge page on which I have uploaded just a binary and no source - violation of their TOS) but later removed that file because I felt it was redundant (OpenFOAM-1.7.1.gtgz provides the tutorials and it is around 50MB itself) So coming back to the point ( ) the best place for now to get the tutorials would be OpenFOAM-1.7.1.gtgz from the OpenCFD website.
__________________
If you only have a hammer, you tend to see every problem as a nail. |
|
June 14, 2011, 00:28 |
|
#98 |
Member
桂莹
Join Date: Apr 2011
Posts: 36
Rep Power: 15 |
hi,leo
I use coalChemistryFoam of OF1.7.1 to deal with my case which is about coal injection combustion,I run the simplifiedSiwek case,it work well,but for my case,it "out of temperature range",can you help me to solve it? best regards ying |
|
June 14, 2011, 02:28 |
|
#99 | |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Quote:
In general when I get out of temperature range errors I modify the solver to bound temperatures between the working range. This may happen in hypersonic flows or combustion simulations. For example, just after the energy equation is solved, do (use h or e as appropriate): Code:
h = max(h, hMin); h = min(h, hMax); Obviously, the bounds you set must be realistic and must allow for some leg space, and your converged solution field must not have this bounding. (To be sure, just print out a message to the screen when you bound; such messages are often spit out for k and epsilon for example). AND/OR try lowering your relaxation factors way down. A combination of both usually works for me. Again, do not trust bounding unless your temperature limits are realistically set, and your converged solution is well within bounds. Setting limits is not always easy; h=Cp*T and you are trying to limit T by limiting h, but Cp may or may not be constant depending on your modelling. It's worse when you're dealing with e. (This may have been better off in another thread?) Hope this helps, Sushant
__________________
If you only have a hammer, you tend to see every problem as a nail. |
||
June 14, 2011, 03:50 |
|
#100 | |||
Member
桂莹
Join Date: Apr 2011
Posts: 36
Rep Power: 15 |
1.
Quote:
2. Quote:
3. Quote:
Another question:can I just change the temperature bound?--I just think of it,but I don't know where to set the temperature bound |
||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Default patches not appearing in paraview | ozzythewise | OpenFOAM Meshing & Mesh Conversion | 9 | September 22, 2017 10:51 |
[snappyHexMesh] internal faces between patches created with snappyHexMesh | romant | OpenFOAM Meshing & Mesh Conversion | 0 | August 17, 2009 09:40 |
Courant number, patches, etc | oort | OpenFOAM | 1 | July 24, 2009 19:05 |
[snappyHexMesh] SnappyHexMesh large number of patches written | prapanj | OpenFOAM Meshing & Mesh Conversion | 0 | July 15, 2009 09:11 |
radiation patches, viewfactors | beams | Siemens | 1 | March 12, 2009 08:39 |