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

problem in toposet

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2017, 06:47
Default
  #21
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Quote:
Yes, I did it with faceset. But I want to try the same with cellset also
If you want to define a patch with a BOUNDARY condition, you have to define it on the faces of the BOUNDARIES of your domain (and the condition is applied to the face center).

I think it's correct to say that:
you can't define a BOUNDARY CONDITION on a cell center (in case of openFOAM); because if you're setting a condition on a cell center (in case of openFOAM) you're setting an INITIAL CONDITION, that furthermore it can be constant during your simulation, or dependent by the BOUNDARY CONDITIONS of the BOUNDARIES of your domain...that's the reason createPatch utility complains about and ask for a faceSet or subset of faces...

So you can't obtain it directly, but:
if you have to set a boundary condition on the BOUNDARY of your domain, that has a different shape, you should extract you circular patch with other tools (e.g. setSet) or prepare your starting mesh differently...

hint: take for example the tJunctionFan tutorial

Regards
student666 is offline   Reply With Quote

Old   November 2, 2017, 11:10
Default
  #22
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 13
me12p1006 is on a distinguished road
Thanks student666

I already created 3D rectangular geometry with block mesh (20cm*20cm*50cm). Now I just want to pump air in to this 3D geometry (initially filled with water) through a circular inlet on the bottom face (radius = 2 cm). I used faceset with cylindertocell source. p1 and p2 points lies on the same face (center of the bottom wall: x=10 cm, y=10 cm, z=0 cm).

The code is running with out any errors this time. But I was unable to see the circular inlet and air flow through it. I am attaching my files below. Please Help me with it.
Attached Files
File Type: zip bubblereactorthreedim.zip (12.5 KB, 13 views)
me12p1006 is offline   Reply With Quote

Old   November 2, 2017, 12:28
Default
  #23
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Code:
Create polyMesh for time = 0

Reading createPatchDict

Adding new patch inlets as patch 3 from
{
    type            patch;
}


Read 0 faces from faceSet faceGrabbed

Doing topology modification to order faces.

Not synchronising points.

Removing patches with no faces in them.

No patches removed.
Writing repatched mesh to 0

End
this is the output of the createPatch utility, it has not selected any faces, maybe your coordinates are wrong.

Hint:

check one more time....

NOTE:
In any case, OpenFoam differently from other codes, gives full explanations about errors, please read carefully the outputs!
student666 is offline   Reply With Quote

Old   November 2, 2017, 13:17
Default
  #24
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 13
me12p1006 is on a distinguished road
Thanks student666

I have double checked the coordinates. In TopoSet dictionary as given below:

actions
(
//Grabbing Faces
{
name faceGrabbed;
type faceSet;
action new;
source cylinderToCell;
sourceInfo
{
p1 (0.1 0.1 0);
p2 (0.1 0.1 0);
radius 0.02;
}

}

);

I tried to make a circle on the bottom face of the 3D rectangular enclosure (0.2metre*0.2metre*0.5metre). My enclosure coordinates are (x=0.2 y=0.2 z=0.5). Now in the above toposet dictionary: I selected p1 as (0.1 0.1 0), this keeps the circle center exactly on the bottom face. However, since I need a circular inlet and the source is a cylinder, my p2 will coincide with p1 and hence the cylinder confines to circle.

If possible, you try to make a circle of your choice in the files i sent you. Let me know if any thing works or if any way is possible to solve this.

Thanks in advance.
me12p1006 is offline   Reply With Quote

Old   January 19, 2021, 04:04
Default
  #25
Senior Member
 
starter
Join Date: Sep 2012
Posts: 125
Rep Power: 16
sihaqqi is on a distinguished road
I have remved my question from here soplease disregard. I have asked complete query in a new thread named topoSetDict
sihaqqi is offline   Reply With Quote

Old   April 30, 2021, 03:07
Default
  #26
New Member
 
Shanqin Jin
Join Date: Mar 2017
Posts: 8
Rep Power: 9
love_huang is on a distinguished road
Quote:
Originally Posted by sihaqqi View Post
I have remved my question from here soplease disregard. I have asked complete query in a new thread named topoSetDict
Dear sihaqqi,

I am learning to use the topset for defining the regions of overset grids. The following is an example of openfoam tutorial.

I don't know how to define the value of insidePoints, and what is the mean of invert. Can you help me?

actions
(
{
name c0;
type cellSet;
action new;
source regionToCell;
sourceInfo
{
insidePoints ((0 1.5 0));
}
}

{
name c1;
type cellSet;
action new;
source cellToCell;
sourceInfo
{
set c0;
}
}

{
name c1;
type cellSet;
action invert;
}
);


------
Shanqin
love_huang is offline   Reply With Quote

Old   December 16, 2022, 06:03
Default
  #27
New Member
 
Reda aftiss
Join Date: Apr 2022
Posts: 3
Rep Power: 4
Reda123 is on a distinguished road
Quote:
Originally Posted by AliRezaJafari View Post
Hi
How can be defined for a triangular box?
Hello Ali,
Did you find the solution for this geometry. I also have same problem?
Reda123 is offline   Reply With Quote

Old   March 3, 2023, 22:12
Default extract the patch between two cellsets
  #28
jzy
New Member
 
金卓颖
Join Date: Mar 2023
Posts: 3
Rep Power: 3
jzy is on a distinguished road
Quote:
Originally Posted by Mahdi2010 View Post
Hi all

I am building a test case with 2 main regions (1 solid and 1 fluid attached together). I built it simply by using topoSet. My question is if I wanna create a wallFilmRegion between these two regions, how can I address the source info for that? I mean what it the correct source info for this patch?

If you look at the case "tutorail/lagrangian/reactingParcelFilmFoam/rivuletpanel", the wallFilmRegion is created using a source from blockMeshDict.
{
name wallFilm;
type faceSet;
action new;
source patchToFace;
sourceInfo
{
name filmWalls;
}
}
{
name wallFilm;
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet wallFilmFaces;
}
}

But in my case the connecting patch between solid region and fluid region is not defined in advance and should be created within the topoSet itself! (First by topoSet I define 2 regions and now I wanna address the patch in between as source for wallFilmRegion.) any idea for that!?
Hi, I also want to extract the patch between two cellsets with topoSet, did you solve this problems?
jzy is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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