CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] refineMesh in parallel - cut on coupled patch

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By huazhongdk@gmail.com

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2022, 05:24
Default refineMesh in parallel - cut on coupled patch
  #1
New Member
 
Marius
Join Date: Aug 2020
Location: Germany
Posts: 11
Rep Power: 6
Muerio is on a distinguished road
Hello,

I'm currently trying to run refineMesh in parallel after completing the castellated mesh step in snappyHexMesh.
My goal is to refine the mesh in the x direction only.

My refineMeshDict_xRefine looks like this:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      refineMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

set xRefine;

globalCoeffs
{
    tan1 (1 0 0);
    tan2 (0 1 0);
}

(
    tan1
);

useHexTopology  true;

geometricCut    false;

writeMesh       false;

// ************************************************************************* //
When running
Code:
runParallel refineMesh -overwrite -noFunctionObjects -dict system/refineMeshDict_xRefine
it results in errors like this one for every processor:
Code:
[1] 
[1] 
[1] --> FOAM FATAL ERROR: 
[1] Cut (8143888 2468835) on face (0.055919118 0.18161516 0.0017083333) of coupled patch procBoundary1to0 is not consistent with coupled cut (1860044 8143888)
[1] 
[1]     From function void Foam::cellCuts::syncProc()
[1]     in file meshCut/cellCuts/cellCuts.C at line 256.
[1] 
FOAM parallel run exiting
Changing the switches for useHexTopology and geometricCut results in the same errors.

Does anyone know how to prevent this error?
Muerio is offline   Reply With Quote

Old   October 21, 2024, 10:34
Default
  #2
New Member
 
Join Date: Nov 2022
Posts: 4
Rep Power: 4
huazhongdk@gmail.com is on a distinguished road
Quote:
Originally Posted by Muerio View Post
Hello,

I'm currently trying to run refineMesh in parallel after completing the castellated mesh step in snappyHexMesh.
My goal is to refine the mesh in the x direction only.

My refineMeshDict_xRefine looks like this:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      refineMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

set xRefine;

globalCoeffs
{
    tan1 (1 0 0);
    tan2 (0 1 0);
}

(
    tan1
);

useHexTopology  true;

geometricCut    false;

writeMesh       false;

// ************************************************************************* //
When running
Code:
runParallel refineMesh -overwrite -noFunctionObjects -dict system/refineMeshDict_xRefine
it results in errors like this one for every processor:
Code:
[1] 
[1] 
[1] --> FOAM FATAL ERROR: 
[1] Cut (8143888 2468835) on face (0.055919118 0.18161516 0.0017083333) of coupled patch procBoundary1to0 is not consistent with coupled cut (1860044 8143888)
[1] 
[1]     From function void Foam::cellCuts::syncProc()
[1]     in file meshCut/cellCuts/cellCuts.C at line 256.
[1] 
FOAM parallel run exiting
Changing the switches for useHexTopology and geometricCut results in the same errors.

Does anyone know how to prevent this error?
hi Muerio,
you can try to run snappyHexMesh with only setting castellatedMesh as true, then use refineMesh to refine the mesh. After that, remove the cellLevel and pointLevel files in constant/polyMesh, and run snappyHexMesh again with snap as true. I solve the similar problem by doing these steps, hope it will help you.

1. blockMesh -dict ./system/blockMeshDict
2. snappyHexMesh -dict ./system/snappyHexMeshDict -overwrite
3. topoSet -dict ./system/topoSetDict
4. refineMesh -dict ./system/refineMeshDict -overwrite
5. cd ./constant/polyMesh && rm cellLevel && rm pointLevel
6. snappyHexMesh -dict ./system/snappyHexMeshDict.snappy -overwrite
Muerio likes this.
huazhongdk@gmail.com is offline   Reply With Quote

Reply

Tags
refinemesh -parallel


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
[Commercial meshers] Fluent msh and cyclic boundary cfdengineering OpenFOAM Meshing & Mesh Conversion 49 November 29, 2024 22:16
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 12:58
[mesh manipulation] multiple calls to refineMesh parallel w/ dict failing Regis_ OpenFOAM Meshing & Mesh Conversion 2 June 4, 2015 14:44
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 05:32.