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

chtMultiRegionSimpleFoam basic example--noob problem with OF2.2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2013, 02:30
Default chtMultiRegionSimpleFoam basic example--noob problem with OF2.2
  #1
New Member
 
Join Date: Oct 2011
Location: Sydney, NSW
Posts: 21
Rep Power: 14
the.drizzle is on a distinguished road
Hi there,

I'm trying to learn how to use chtMultiRegionSimpleFoam, and found this nice starter example here:

http://openfoamwiki.net/index.php/Ge..._-_planeWall2D

I am running OF 2.2.0, and the sample case runs fine, or so it seems... When I try to post-process, loading either planeWall2D{topAir}.OpenFOAM or planeWall2D{bottomAir}.OpenFOAM leads to paraFoam crashing with the error:

--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type empty and patchField type calculated

Which makes sense in that I understand what it is telling me, but I don't know how to go about addressing this problem. Oh, and for what it's worth, the results for the wall are clearly wrong as well, as it ends up being a uniform 300K throughout.

I'm suspecting that something has changed in the way topoSet works between 2.1 and 2.1, but I'm struggling to see how...

Many thanks in advance!
the.drizzle is offline   Reply With Quote

Old   June 7, 2013, 10:30
Default
  #2
New Member
 
Ian Pond
Join Date: Jan 2013
Posts: 11
Rep Power: 13
steezorigineez is on a distinguished road
Hey,

I've been trying to learn conjugate heat transfer on openfoam and attempted to run this case and got the same error as you. To fix the error, you need to edit the changeDictionarydict files located in system/bottomAir and system/topAir. Those files apply specific BCs to each region defined by topoSet. If you look at the P and p_rgh sections of those two files you will notice that frontAndBack is not redefined to be empty, so you must add frontAndBack to the P and p_rgh sections for both bottomAir and topAir and define it to be empty. Hope that helps.

I'm still having trouble getting the case to run even after fixing that. Let me know if you are able to successfully run the simulation.

-Ian
steezorigineez is offline   Reply With Quote

Old   June 7, 2013, 21:36
Default
  #3
New Member
 
Join Date: Oct 2011
Location: Sydney, NSW
Posts: 21
Rep Power: 14
the.drizzle is on a distinguished road
Heya!

Actually, it seems like there needs to be a number of changes, including the addition of the (new?) makeCellSets.setSet file in the case directory. I almost finished doing this yesterday, but have been doing too many things at once and didn't quite finish. I hope to complete this example this evening, at which time I will post a .tar.gz case file to the wiki page.

Cheers!
the.drizzle is offline   Reply With Quote

Old   June 7, 2013, 22:03
Default
  #4
New Member
 
Ian Pond
Join Date: Jan 2013
Posts: 11
Rep Power: 13
steezorigineez is on a distinguished road
Hey,

Just to let you know I fixed about 4 different errors until I came upon one that I could not figure out. I believe the makecellset file is old, the newer application is the toposetdict, but I haven't tried to run the case with out the setSet file, but both appear to do the same thing. Just a heads up. I gave up and started working with the other xhtmultiregion tutorials. Let me know if you get that one working.
steezorigineez is offline   Reply With Quote

Old   August 13, 2013, 09:14
Default
  #5
New Member
 
tobyB
Join Date: Aug 2013
Posts: 11
Rep Power: 12
tobyB is on a distinguished road
I have also been trying to get this example working, to no avail.
tobyB is offline   Reply With Quote

Old   December 20, 2013, 15:51
Default
  #6
Member
 
Sergey
Join Date: Nov 2013
Posts: 87
Rep Power: 12
skuznet is on a distinguished road
hello! was anyone able to run chtMultiRegionSimpleFoam with water instead of air?
skuznet is offline   Reply With Quote

Old   December 20, 2013, 15:52
Default
  #7
Member
 
Sergey
Join Date: Nov 2013
Posts: 87
Rep Power: 12
skuznet is on a distinguished road
The case planeWall2D
http://openfoamwiki.net/index.php/Ge..._-_planeWall2D
was updated recently and I was able to run it with no problem.
skuznet is offline   Reply With Quote

Old   March 29, 2014, 14:27
Default
  #8
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
there are still challenges in planewall2D on going to 2.3 it need Tnbr defining then it works

However ts has problems if you try to run it on multiple processors as it exposes a fact that splitMeshRegions creates
a cellToRegion file with
Code:
boundaryField
{
    bottomAir_bottom
    {
        type            zeroGradient;
    }
    leftLet
which conflicts with the /system/bottomAir/changeDictionaryDict having
Code:
 boundary
    {
        bottomAir_bottom
        {
            type            symmetryPlane;
        }
    }
which then causes this error in log.decomposePar


Code:
--> FOAM FATAL IO ERROR: 
inconsistent patch and patchField types for 
    patch type symmetryPlane and patchField type zeroGradient

file: /home/derekm/OpenFOAM/derekm-2.3.0/run/tutorials/heatTransfer/planeWall2D/0/bottomAir/cellToRegion.boundaryField.bottomAir_bottom from line 26 to line 26.

    From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
    in file /home/sergio/rpmBuild/BUILD/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 172.
I havent found a fix for this yet

can anyone shine a light as to where splitMeshRegions gets the boundary fields from
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm 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
conduction problem venkataramana OpenFOAM 3 December 1, 2013 07:30
Problem Importing Geometry ProE to CFX fatb0y CFX 3 January 14, 2012 19:42
FSI problem , Help needed for my basic questions kmgraju CFX 1 July 29, 2011 00:04
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 16:27.