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

How to chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2011, 18:38
Default How to chtMultiRegionFoam
  #1
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
Anyone got a simple case or "how to" tip for getting started in chtMultiRegionFoam? My tutorials don't run. Pretty complicated. Thanks
Scot is offline   Reply With Quote

Old   April 21, 2011, 03:59
Default
  #2
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17
val46 is on a distinguished road
the tutorial case should run. Maybe your openfoam isn't properly installed?
What is the error message you get?
val46 is offline   Reply With Quote

Old   April 21, 2011, 06:45
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
yes - the tutorials should run.!

i 'll looking for my old simple case - maybe i find it.!
Tobi is offline   Reply With Quote

Old   April 21, 2011, 10:30
Default
  #4
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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
Scot is offline   Reply With Quote

Old   April 21, 2011, 10:47
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Scot,

you started the tutorials with "./Allrun" ?
Tobi is offline   Reply With Quote

Old   April 21, 2011, 10:51
Default
  #6
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by Scot View Post
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
Use Allrun and check the log files. My bet is on log.splitMeshRegions that will point the way. All of my missing "points" file errors were traced there.

Mirko
mirko is offline   Reply With Quote

Old   April 21, 2011, 11:46
Default
  #7
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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.
Scot is offline   Reply With Quote

Old   April 21, 2011, 13:23
Default
  #8
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by Scot View Post
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.
How do the plots look?
mirko is offline   Reply With Quote

Old   April 21, 2011, 14:10
Default
  #9
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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
Scot is offline   Reply With Quote

Old   April 21, 2011, 14:35
Default
  #10
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by Scot View Post
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
On 1.7.1 I cannot run the chtMultiRegionFoam/multiRegionHeater tutorial. A keyword is undefined in one of fvSchemes files.

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?
mirko is offline   Reply With Quote

Old   April 21, 2011, 16:53
Default
  #11
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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
Scot is offline   Reply With Quote

Old   April 21, 2011, 16:59
Default
  #12
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by Scot View Post
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

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
mirko is offline   Reply With Quote

Old   April 21, 2011, 17:13
Default
  #13
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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?
Scot is offline   Reply With Quote

Old   April 21, 2011, 17:18
Default
  #14
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by Scot View Post
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?
Yes, I can see the results in paraFoam.

One thought: You need a file whatever.foam in the run directory for paraFoam to read the files.
mirko is offline   Reply With Quote

Old   April 21, 2011, 17:27
Default
  #15
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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
Scot is offline   Reply With Quote

Old   April 21, 2011, 17:43
Default
  #16
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by Scot View Post
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
No, somewhere you need to have a directory with 0, constant, system directories, and Allrun and Allclean. That is your run directory.
mirko is offline   Reply With Quote

Old   April 21, 2011, 17:59
Default
  #17
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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
Scot is offline   Reply With Quote

Old   April 21, 2011, 18:05
Default
  #18
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by Scot View Post
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
Sorry, but I'm out of ideas
mirko is offline   Reply With Quote

Old   April 21, 2011, 20:48
Default
  #19
New Member
 
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15
Scot is on a distinguished road
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
Scot is offline   Reply With Quote

Old   April 22, 2011, 06:29
Default
  #20
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Attached Files
File Type: zip chtMultiRegionSimpleFoam.zip (70.7 KB, 44 views)
Tobi 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
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


All times are GMT -4. The time now is 00:06.