|
[Sponsors] |
April 20, 2011, 18:38 |
How to chtMultiRegionFoam
|
#1 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Anyone got a simple case or "how to" tip for getting started in chtMultiRegionFoam? My tutorials don't run. Pretty complicated. Thanks
|
|
April 21, 2011, 03:59 |
|
#2 |
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
the tutorial case should run. Maybe your openfoam isn't properly installed?
What is the error message you get? |
|
April 21, 2011, 10:30 |
|
#4 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Thanks Val46 and Tobi. I'd like to start with something simple like a block of iron is heated at one end, how does the temperature at the other end rise with time. So I'd probably use chtMultiRegionFoam. But for any of the tutorials in chtMultiRegionFoam and chtMultiRegionSimpleFoam, I try running and get the error: Foam fatal error: Cannot find file "points" in directory "bottomAir/polyMesh" in times 0 down to constant". However, the tutorials don't look anything like the case of a block heated at one end. Anybody got a similar case? Many thanks, Danke Sehr. Scot
|
|
April 21, 2011, 10:51 |
|
#6 | |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Quote:
Mirko |
||
April 21, 2011, 11:46 |
|
#7 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Thank you Tobi and Mirko, ./Allclean and ./Allrun made it run, but the results appear very bad. In directory 0, all fields look fine. But in directories 50, 100, 150, 200, I get subdirectories "bottomAir", "topAir", etc and these all have the usual files p, phi, T, etc but these files are filled with a lot of junk symbols instead of scalar numbers. Instead of recognizable numbers for Temperature, for example, I get one number like 1200 followed by many lines of symbols. The log files look fine.
|
|
April 21, 2011, 13:23 |
|
#8 | |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Quote:
|
||
April 21, 2011, 14:10 |
|
#9 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Hi Mirko- No plots of any fields except for the initial state (directory 0), presumably because the field files in directories 50, 100 etc are filled with junk symbols. The only clue is the warning: 'Detected wildcard ".*" in changeDictionaryDict' in all 5 log.changeDictionary files. Curiously, in the field files in directory 0 such as T, the boundaryField is defined using this wildcard ".*", which appears to be used as a shorthand in place of the names of the various boundaries (frontAndBack, fixedWalls, etc). Are you using version 1.7 and have no problem viewing the Temperature, for example, of the chtMultiRegion tutorials? Thank you! Scot
|
|
April 21, 2011, 14:35 |
|
#10 | |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Quote:
However I can run the chtMultiRegionSimpleFoam/multiRegionHeater I also get the wildcard warning in the log files. As for junk symbols, do you have compression set to yes in system/controlDict? |
||
April 21, 2011, 16:53 |
|
#11 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Mirko- I changed system/controlDict from "uncompressed" to "compressed". The result was that the field files were gzipped. But upon gunzipping, I see the same junk in the files rather than scalars. Please look in chtMultiRegionSimpleFoam/multiRegionHeater/100/topAir/T. Do you not see a bunch of symbols, many of which are a black ovals with a white question mark in it? Thank you again, Scot
|
|
April 21, 2011, 16:59 |
|
#12 | |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Quote:
Yes, I see junk too even though I am writing uncompressed. But I can preview the results in Paraview. Can you post (attach) a part of log.chtMultiRegionSimpleFoam for timesteps 0, 1, 2? That might tell us how the numerics are going. Mirko |
||
April 21, 2011, 17:13 |
|
#13 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Mirko- you see junk in the field files as I do, but you are able to view the results using paraFoam? I can select fields only for time = 0. For later times, I only have the possibility of selecting "Solid Color", "vtkCompositeIndex" and "cellNormals". I can't get T or U or anything else to show up in ParaFoam's object inspector. Can you view temperature, for example, at the end of the simulation?
|
|
April 21, 2011, 17:18 |
|
#14 | |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Quote:
One thought: You need a file whatever.foam in the run directory for paraFoam to read the files. |
||
April 21, 2011, 17:27 |
|
#15 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
In my "run" directory is only another directory "tutorials". Would you please say in more detail what your mean about needing a "whatever.foam in the run directory"? Thank you! Scot
|
|
April 21, 2011, 17:43 |
|
#16 |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
No, somewhere you need to have a directory with 0, constant, system directories, and Allrun and Allclean. That is your run directory.
|
|
April 21, 2011, 17:59 |
|
#17 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
My directory is /chtMultiRegionSimpleFoam/multiRegionHeater. What file is needed here for paraFoam to read the files? PS: I've had no trouble with other heat transfer solvers such as buoyantSimpleRadiationFoam. But in all those cases, the field files were filled with ascii numbers, never symbols. Thank you for your continued consideration! Scot
|
|
April 21, 2011, 18:05 |
|
#18 | |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Quote:
|
||
April 21, 2011, 20:48 |
|
#19 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Sometimes field files have format ascii, as seen at the the top of the file. The junky files I note have "format binary". So that's the answer to that, but I still can't view results in paraFoam. Will keep trying, Thank you for your help! Scot
|
|
April 22, 2011, 06:29 |
|
#20 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
hey - normally you can 'not open the files in 1 2 3 4 5 - like T or U - only in the "0" file you can open it correctly (it 's my experience).
Sometimes (if you using for example buoyantFoam) you got the files as a tar zip... so thats not a problem. I am using OF-1.7.x the tutorials are working fine... i added the tutorial files... Tobi |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in chtMultiRegionFoam | kirankarki | OpenFOAM | 6 | August 21, 2018 09:00 |
Using a Different Thermodynamics Package with the chtMultiRegionFoam Solver | m.nichols19 | OpenFOAM | 7 | March 17, 2011 17:26 |
chtmultiregionFoam | alvora | OpenFOAM | 9 | February 23, 2011 04:06 |
chtMultiRegionFoam......Help please.... | devesh.baghel | OpenFOAM | 8 | April 7, 2010 16:17 |
How to add 3rd region to chtMultiRegionFoam | benk | OpenFOAM | 1 | April 3, 2010 18:22 |