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

chtMultiRegionSimpleFoam basic example--noob problem with OF2.2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 20
Rep Power: 5
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: 4
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: 20
Rep Power: 5
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: 4
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: 3
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, 16:51
Default
  #6
Member
 
Sergey
Join Date: Nov 2013
Posts: 86
Rep Power: 3
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, 16:52
Default
  #7
Member
 
Sergey
Join Date: Nov 2013
Posts: 86
Rep Power: 3
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, 15:27
Default
  #8
Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 95
Rep Power: 4
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conduction problem venkataramana OpenFOAM 3 December 1, 2013 08:30
Problem Importing Geometry ProE to CFX fatb0y CFX 3 January 14, 2012 20: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 08:23.