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/)
-   -   Interface Creation Problem with chtMultiRegionSimpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/227627-interface-creation-problem-chtmultiregionsimplefoam.html)

AC CFD June 4, 2020 06:35

Interface Creation Problem with chtMultiRegionSimpleFoam
 
Hello everyone,


Im actually trying to solve a simple case of a solid heated tube (fff_solid region) with internal flow (fluid_fluid region).



My mesh is imported from Fluent.



I get the following message :



Code:

--> FOAM FATAL ERROR:
' not type 'mappedPatchBase'
    for patch solid_fluid-zone_de_contact-trg of field T in file "/home/temisth/Documents/FlowHeatANDMultiRegion/chtMultiRegionSimpleFoam/TEM_Tube/0/fff_solid/T"

I already read https://www.cfd-online.com/Forums/openfoam-solving/216782-mappedpatchbase-error-chtmultiregionfoam.html

and related threads but can not make it works for me



Here are the following output i get from openfoam :


From SplitMesh, it seems that the fluent interface is not automatically detected :



Code:

Create time

Create mesh for time = 0

Creating single patch per inter-region interface.

Trying to match regions to existing cell zones.


Number of regions:2

Writing region per cell file (for manual decomposition) to "/home/temisth/Documents/FlowHeatANDMultiRegion/chtMultiRegionSimpleFoam/TEM_Tube/constant/cellToRegion"

Writing region per cell as volScalarField to "/home/temisth/Documents/FlowHeatANDMultiRegion/chtMultiRegionSimpleFoam/TEM_Tube/0/cellToRegion"

Region    Cells
------    -----
0    183362
1    89410

Region    Zone    Name
------    ----    ----
0    0    fluid_fluid
1    1    fff_solid

Sizes of interfaces between regions:

Interface    Region    Region    Faces
---------    ------    ------    -----

Reading volScalarField: T cellToRegion epsilon k p p_rgh
Reading volVectorField: U


Adding patches


Adding patches


Region 0
--------
Creating mesh for region 0 fluid_fluid
Mapping fields
Mapping field cellToRegion
Mapping field k
Mapping field p_rgh
Mapping field p
Mapping field T
Mapping field epsilon
Mapping field U
Deleting empty patches
Writing new mesh
Writing addressing to base mesh
Writing map pointRegionAddressing from region0 points back to base mesh.
Writing map faceRegionAddressing from region0 faces back to base mesh.
Writing map cellRegionAddressing from region0 cells back to base mesh.
Writing map boundaryRegionAddressing from region0 boundary back to base mesh.

Region 1
--------
Creating mesh for region 1 fff_solid
Mapping fields
Mapping field cellToRegion
Mapping field k
Mapping field p_rgh
Mapping field p
Mapping field T
Mapping field epsilon
Mapping field U
Deleting empty patches
Writing new mesh
Writing addressing to base mesh
Writing map pointRegionAddressing from region1 points back to base mesh.
Writing map faceRegionAddressing from region1 faces back to base mesh.
Writing map cellRegionAddressing from region1 cells back to base mesh.
Writing map boundaryRegionAddressing from region1 boundary back to base mesh.
End

I edited manually the constant/polymesh/boundary and /constant/region/polymesh/boundary file


from

Code:

    solid_fluid-zone_de_contact-trg
    {
        type            mappedPatchBase;
        nFaces          29210;
        startFace      179561;
    }

to


Code:

    solid_fluid-zone_de_contact-trg
    {
        type            mappedWall;
        nFaces          29210;
        startFace      179561;
        sampleMode    nearestPatchFace;
        sampleRegion    fluid_fluid;
        samplepatch    fluid_solid-zone_de_contact-src;
    }

But it is still not working.


Code:

--> FOAM FATAL ERROR:
Supply either a patchName or a coupleGroup for patch solid_fluid-zone_de_contact-trg in region fff_solid

    From function const Foam::word& Foam::mappedPatchBase::samplePatch() const
    in file mappedPatches/mappedPolyPatch/mappedPatchBaseI.H at line 67.

Does someone have an idea of where the error comes from ?


Thank you

crubio.abujas June 5, 2020 15:58

Maybe a typo?
 
I've just checked a tutorial case and the "p" in samplePatch is in upper case. OpenFoam is case sensitive so maybe the problem is there.

Code:

    solid_fluid-zone_de_contact-trg
    {
        type            mappedWall;
        nFaces          29210;
        startFace      179561;
        sampleMode    nearestPatchFace;
        sampleRegion    fluid_fluid;
        samplePatch    fluid_solid-zone_de_contact-src;
    }

It is common to miss some of these typos ;), Lets hope that could fix it!

batteryFoamer November 14, 2022 02:33

Supply either a patchName or a coupleGroup for patch solid_fluid-zone_de_contact-trg
 
Quote:

Originally Posted by AC CFD (Post 773348)
Hello everyone,


Im actually trying to solve a simple case of a solid heated tube (fff_solid region) with internal flow (fluid_fluid region).



My mesh is imported from Fluent.



I get the following message :



Code:

--> FOAM FATAL ERROR:
' not type 'mappedPatchBase'
    for patch solid_fluid-zone_de_contact-trg of field T in file "/home/temisth/Documents/FlowHeatANDMultiRegion/chtMultiRegionSimpleFoam/TEM_Tube/0/fff_solid/T"

I already read https://www.cfd-online.com/Forums/openfoam-solving/216782-mappedpatchbase-error-chtmultiregionfoam.html

and related threads but can not make it works for me



Here are the following output i get from openfoam :


From SplitMesh, it seems that the fluent interface is not automatically detected :



Code:

Create time

Create mesh for time = 0

Creating single patch per inter-region interface.

Trying to match regions to existing cell zones.


Number of regions:2

Writing region per cell file (for manual decomposition) to "/home/temisth/Documents/FlowHeatANDMultiRegion/chtMultiRegionSimpleFoam/TEM_Tube/constant/cellToRegion"

Writing region per cell as volScalarField to "/home/temisth/Documents/FlowHeatANDMultiRegion/chtMultiRegionSimpleFoam/TEM_Tube/0/cellToRegion"

Region    Cells
------    -----
0    183362
1    89410

Region    Zone    Name
------    ----    ----
0    0    fluid_fluid
1    1    fff_solid

Sizes of interfaces between regions:

Interface    Region    Region    Faces
---------    ------    ------    -----

Reading volScalarField: T cellToRegion epsilon k p p_rgh
Reading volVectorField: U


Adding patches


Adding patches


Region 0
--------
Creating mesh for region 0 fluid_fluid
Mapping fields
Mapping field cellToRegion
Mapping field k
Mapping field p_rgh
Mapping field p
Mapping field T
Mapping field epsilon
Mapping field U
Deleting empty patches
Writing new mesh
Writing addressing to base mesh
Writing map pointRegionAddressing from region0 points back to base mesh.
Writing map faceRegionAddressing from region0 faces back to base mesh.
Writing map cellRegionAddressing from region0 cells back to base mesh.
Writing map boundaryRegionAddressing from region0 boundary back to base mesh.

Region 1
--------
Creating mesh for region 1 fff_solid
Mapping fields
Mapping field cellToRegion
Mapping field k
Mapping field p_rgh
Mapping field p
Mapping field T
Mapping field epsilon
Mapping field U
Deleting empty patches
Writing new mesh
Writing addressing to base mesh
Writing map pointRegionAddressing from region1 points back to base mesh.
Writing map faceRegionAddressing from region1 faces back to base mesh.
Writing map cellRegionAddressing from region1 cells back to base mesh.
Writing map boundaryRegionAddressing from region1 boundary back to base mesh.
End

I edited manually the constant/polymesh/boundary and /constant/region/polymesh/boundary file


from

Code:

    solid_fluid-zone_de_contact-trg
    {
        type            mappedPatchBase;
        nFaces          29210;
        startFace      179561;
    }

to


Code:

    solid_fluid-zone_de_contact-trg
    {
        type            mappedWall;
        nFaces          29210;
        startFace      179561;
        sampleMode    nearestPatchFace;
        sampleRegion    fluid_fluid;
        samplepatch    fluid_solid-zone_de_contact-src;
    }

But it is still not working.


Code:

--> FOAM FATAL ERROR:
Supply either a patchName or a coupleGroup for patch solid_fluid-zone_de_contact-trg in region fff_solid

    From function const Foam::word& Foam::mappedPatchBase::samplePatch() const
    in file mappedPatches/mappedPolyPatch/mappedPatchBaseI.H at line 67.

Does someone have an idea of where the error comes from ?


Thank you

Hi bro, recently I had the same question. Have you solve this problem? really thank you!


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