|
[Sponsors] |
December 1, 2010, 12:58 |
multiRegion version of pisoFoam
|
#1 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Hello developers,
Perhaps somewhat of a double post, as I posted a similar message in the Running/Solving section of this forum, but to no avail.... Well, my problem is that I'm trying to run a double region simulation by implementing a modified version of pisoFoam. I think I've come quite far in my implementation, and when starting a run my solver reads the correct meshes, with the correct number of cells, the right names, correct implementation of the turbulence model, etc. So far so good. However, when starting the time loop, OpenFOAM complains about not finding region0 (which is the standard region, but which I don't have since I named my regions differently.) I get the following error: Code:
--> FOAM FATAL ERROR: request for objectRegistry region0 from objectRegistry doubleDomain_split failed available objects of type objectRegistry are 2 ( region1 region2 ) Would someone have an idea on how to fix this? Kind regards, Francois. |
|
December 1, 2010, 13:09 |
|
#2 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Hum..
I've pinpointed the error origin to the command: Code:
runTime++; Looking forward to your replies! Francois. |
|
December 1, 2010, 14:45 |
|
#3 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
And in Time.C, the problem occurs in the function:
Code:
Foam::Time& Foam::Time::operator++() Code:
00645 if (!subCycling_) 00646 { 00647 if (timeIndex_ == startTimeIndex_) 00648 { 00649 functionObjects_.start(); 00650 } 00651 else 00652 { 00653 functionObjects_.execute(); 00654 } 00655 } Kind regards, Francois. |
|
December 2, 2010, 01:20 |
|
#4 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
You can just use my chtIcoMultiRegion solver with zero solid regions.
http://www.cfd-online.com/Forums/ope...egionfoam.html |
|
December 2, 2010, 13:33 |
|
#5 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Dear Fabio,
Thank you for your reply and for the solver. But oh my! Is it Christmas coming early? I'll look through it and come back to you if I have any questions. Kind regards, Francois. |
|
December 7, 2010, 11:46 |
|
#6 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Dear Fabio,
I used the incompressible multiRegion solver you developed to try and run the case I was describing, but I encounter the same error... The only modifications I made to the solver was to kick out the reading of the "K", "T", "Pr" etc variables since I was not planning on using them, and my programme compiled without errors. I then used the same two region meshes I had defined earlier, and set solidRegionNames in the ./constant/regionProperties file to Code:
solidRegionNames ( ) Any ideas? Kind regards, Francois. |
|
December 7, 2010, 15:23 |
|
#7 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
Add a dummy region.. that do nothing.. zeroGradient in all boundaries.
|
|
May 30, 2011, 18:57 |
|
#8 |
New Member
Jean El-Hajal
Join Date: Jun 2010
Location: Ulm
Posts: 16
Rep Power: 16 |
Hi,
I had a problem with chtIcoMultiRegionFoam compilation with 1.7.x In the file: chtIcoMultiRegionFoam/derivedFvPatchFields/solidWallMixedTemperatureCoupled/solidWallMixedTemperatureCoupledFvPatchScalarField .C just add #include "mapDistribute.H" like this: #include "solidWallMixedTemperatureCoupledFvPatchScalarFiel d.H" #include "addToRunTimeSelectionTable.H" #include "fvPatchFieldMapper.H" #include "volFields.H" #include "directMappedPatchBase.H" #include "mapDistribute.H" #include "regionProperties.H" maybe could help someone. Jean |
|
Tags |
multi region, objectregistry, region0, region1 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
paraview installation woes | vex | OpenFOAM Installation | 15 | January 30, 2011 08:11 |
bubbleFoam validation case | balkrishna | OpenFOAM Running, Solving & CFD | 24 | August 30, 2010 05:37 |
version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found | ovie | Main CFD Forum | 1 | April 19, 2010 15:00 |
[OpenFOAM] Problem with paraFoam on a linux-64 bit | bunni | ParaView | 4 | April 14, 2010 21:55 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |