CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [cfMesh] renameBoundary (https://www.cfd-online.com/Forums/openfoam-community-contributions/168888-renameboundary.html)

adorean March 31, 2016 04:53

renameBoundary
 
Hello,

Is it only me, or cfMesh v1.1.1 windows and cfMesh in foam-extend 3.2 only renames boundaries with specified newName, but does not change type, with the one specified in newType?
All types are wall in the resulting constant/polyMesh/boundary file, no matter what (type) one specifies in newPatchNames subdictionary.

For reference, cfMesh cartesianMesh tutorial "elbow_90degree".

Thank you!

Best regards,

Ervin

adorean March 31, 2016 05:43

Well, I found the culprit;

in the meshDict, one needs to put "type" as in the UserGuide, not "newType" as in the tutorial file.

Best regards,

Ervin

baugier April 7, 2016 09:34

Hi Ervin,
I have the same issue, but it is not solved by your simple typo change.
The only command working in my case is defaultName. Nothing regarding the type is working. Have you figure something else out?

Best,
Ben

adorean April 8, 2016 05:15

Hi,

I really do not understand your statements.
I have given all the necessary details about the issue and the fix, in my 2 posts.
All you have to do is search in the manual and the tutorial (both mentioned in my posts).

Ervin

baugier April 8, 2016 09:35

I found my answer in the tutorial you mentionned.
Thanks

indy07cz February 5, 2020 04:23

Hi meshers, I have some strange problem with renaming boundaries in the case of fms input file. FMS file is exported from Salome with 5 patches:

Code:

5
(
inlet    wall
outletTG2    wall
privadec    wall
natok    wall
krizeni    wall
)

Since I need different refinement levels for each of them I can't have 1 geometry for wall. Then I want to have "krizeni|provadec|natok" renamed to staticWall. But here comes the problem defaultName and defaultType doesn't work and I must define each part separately (below).

Code:

renameBoundary
{
    defaultName        staticWall;
    defaultType        wall;

    newPatchNames
    {
        inlet
        {
            newName    inlet;
            type    patch;
        }

        outletTG2
        {
            newName    outletTG2;
            type    patch;
        }
       
        privadec
        {
            newName    staticWall;
            type    wall;
        }

        natok
        {
            newName    staticWall;
            type    wall;
        }

        krizeni
        {
            newName    staticWall;
            type    wall;
        }
    }
}

Strange that for STL file everything works fine. So it's not a big problem but maybe a bug? I don't know.

Krao February 5, 2020 10:50

Hi Honza,

Try something like this

Quote:

"(privadec|natok|krizeni)"
{
newName staticWall;
type wall;
}
K. Rao

indy07cz February 7, 2020 03:50

Thank you, already know about this. I wanted to point out, that defaultName and defaultType don't work properly.


All times are GMT -4. The time now is 10:11.