CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   chtMultiRegionSimpleFoam basic example--noob problem with OF2.2 (https://www.cfd-online.com/Forums/openfoam-solving/118709-chtmultiregionsimplefoam-basic-example-noob-problem-of2-2-a.html)

the.drizzle June 3, 2013 02:30

chtMultiRegionSimpleFoam basic example--noob problem with OF2.2
 
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!

steezorigineez June 7, 2013 10:30

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

the.drizzle June 7, 2013 21:36

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!

steezorigineez June 7, 2013 22:03

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.

tobyB August 13, 2013 09:14

I have also been trying to get this example working, to no avail.

skuznet December 20, 2013 15:51

hello! was anyone able to run chtMultiRegionSimpleFoam with water instead of air?

skuznet December 20, 2013 15:52

The case planeWall2D
http://openfoamwiki.net/index.php/Ge..._-_planeWall2D
was updated recently and I was able to run it with no problem.

derekm March 29, 2014 14:27

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


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