CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Error in createPatch

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gmori

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2022, 13:22
Default Error in createPatch
  #1
New Member
 
mo
Join Date: May 2022
Posts: 24
Rep Power: 4
gmori is on a distinguished road
Hello everyone.
I am looking to install a small ventilation opening on the ceiling surface of a simple rectangular model, and I am planning to use topoSet and createPatch for this purpose.
The topoSetDict and createPatchDict are attached below.
topoSetDict:
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
// inlet
{
name f0;
type faceSet;
action new;
source boxToFace;
box (0.19000 0.39000 3.49000)(0.59600 0.791 100);
}

// outlet
{
name f1;
type cellSet;
action new;
source boxToFace;
box (5.40000 3.20000 3.49000)(5.81000 3.61000 100);
}
);
createPatchDict:
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatchDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pointSync false;

patches
(
{
name "inlet";
patchInfo
{
type patch;
}
constructFrom set;
set f0;
}
{
name "outlet";
patchInfo
{
type patch;
}
constructFrom set;
set f1;
}
);
However, when I do the createPatch, I get the following error.
Quote:
Create time

Create polyMesh for time = 0

Reading "system/createPatchDict"

Adding new patch inlet as patch 14 from
{
type patch;
}

Adding new patch outlet as patch 15 from
{
type patch;
}


Read 64 faces from faceSet f0


--> FOAM FATAL IO ERROR:
unexpected class name cellSet expected faceSet
while reading object f1

file: /home/gaito/OpenFOAM/gaito-v2006/run/honban2/constant/polyMesh/sets/f1 at line 15.

From Foam::Istream& Foam::regIOobject::readStream(const Foam::word&, bool)
in file db/regIOobject/regIOobjectRead.C at line 170.

FOAM exiting
If anyone knows anything about this, please let me know. Also, I would like to know if there is any other way to add a small ventilation opening on a certain surface.
Thank you in advance.
gmori is offline   Reply With Quote

Old   December 15, 2022, 04:19
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

Lets go step by step. Here is your error:

Code:
--> FOAM FATAL IO ERROR:
unexpected class name cellSet expected faceSet
while reading object f1
the object f1 is expected to be a faceSet, but it is actually a cellSet.
Now lets have a look at your topoSetDict:

Code:
// outlet
{
name f1;
type cellSet;
action new;
source boxToFace;
box (5.40000 3.20000 3.49000)(5.81000 3.61000 100);
}
As you can see in topoSetDict, f1 is created as a cellSet rather than a faceSet, contrary to f0.

Cheers,
Yann
Yann is offline   Reply With Quote

Old   December 15, 2022, 04:33
Default
  #3
New Member
 
mo
Join Date: May 2022
Posts: 24
Rep Power: 4
gmori is on a distinguished road
Hello.
Thank you for your reply!

I had overlooked the basics.
I changed it to faceset and it worked. Thank you!
Yann likes this.
gmori is offline   Reply With Quote

Reply


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
[mesh manipulation] createpatch not working when using layer addition in snappyHexMesh Dikkeunit OpenFOAM Meshing & Mesh Conversion 0 February 3, 2020 10:46
createPatch cyclic boundary condition KateEisenhower OpenFOAM Pre-Processing 3 September 4, 2018 15:30
There is a bug in createPatch? feno102 OpenFOAM Pre-Processing 6 November 1, 2017 03:24
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 03:01
[Salome] unv mesh corrupted after createPatch maddalena OpenFOAM Meshing & Mesh Conversion 1 February 18, 2010 08:43


All times are GMT -4. The time now is 14:35.