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

topoSetDict by Mesh from another Software

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 22, 2014, 17:42
Default topoSetDict by Mesh from another Software
  #1
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 5
Parisa_Khiabani is on a distinguished road
Hi,
I have imported a mesh from another software to OpenFOAM. Right now, I have all the faces in the boundary file in polymesh.
I am using chtMultiRegionFoam. How can I set the topoSetDict? In the sourceInfo, I would like to put all the faces that make the cell. What should be the keyword in the source?
Is that my strategy correct?

Regards,
Parisa
Parisa_Khiabani is offline   Reply With Quote

Old   September 22, 2014, 18:15
Default
  #2
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 5
Parisa_Khiabani is on a distinguished road
In a better way to ask, suppose that I have all the boundary faces.
How can I make the zone with the available faces, and then set the zone.

Thanks,
Parisa
Parisa_Khiabani is offline   Reply With Quote

Old   October 4, 2014, 13:01
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Parisa,

Since you didn't provide specific details, I'll have to give a general answer.
You can use this command to find tutorials that use topoSet:
Code:
find $FOAM_TUTORIALS -name Allrun | xargs grep -sl topoSet
In addition, the master example file for topoSetDict is pointed by this command:
Code:
find $FOAM_UTILITIES -name topoSetDict
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 12, 2014, 07:29
Default
  #4
Member
 
Join Date: Oct 2014
Posts: 42
Rep Power: 3
Wien3 is on a distinguished road
Good Morning,
I am very interested on this thread, so I will detail my problem. I guess it is exactly the same that Parisa_Khiabani had.

I have been working with engrid and I have a complete model (includin its mesh) which consists of a cube inside another cube. The fluid will enter from the inlet and it will go out by the outlet, and the idea is to analyse the influence on it about temperature.

For this purpose I have worked with chtMultiregionSimpleFoam. I achieved to do the same but creating the 2 cubes directly from OpenFoam, the first one with the mesh and the second one as a region in topoSetDict.
PHP Code:
convertToMeters 1;

vertices
(
    (
0 0 0)
    (
5 0 0)
    (
5 2 0)
    (
0 2 0)
    (
0 0 2)
    (
5 0 2)
    (
5 2 2)
    (
0 2 2)
);

blocks
(
    
hex (0 1 2 3 4 5 6 7) (100 30 30simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    
Top
    
{
        
type patch;
        
faces
        
(
            (
4 5 6 7)
        );
    }
    
Bottom
    
{
        
type patch;
        
faces
        
(
            (
0 1 2 3)
        );
    }
    
Inlet
    
{
        
type patch;
        
faces
        
(
            (
0 4 7 3)
        );
    }
    
Outlet
    
{
        
type patch;
        
faces
        
(
            (
1 2 6 5)
        );
    }
    
Back
    
{
        
type patch;
        
faces
        
(
            (
0 1 5 4)
        );
    }
    
Front
    
{
        
type patch;
        
faces
        
(
            (
3 2 6 7)
        );
    }


);

mergePatchPairs
(
); 
PHP Code:
actions
(
    
// cube
    
{
        
name    cube;
        
type    cellSet;
        
action  new;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (2.3 0.8 0.8 )(2.7 1.2 1.2);
        }
    }
    {
        
name    cube;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set cube;
        }
    }
    
// fluid
    
{
        
name    fluid;
        
type    cellZoneSet;
        
action  clear;
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  add;
        
source  cellToCell;
        
sourceInfo
        
{
            
set cube;
        }
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  invert;
    }
    {
        
name    fluid;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set fluid;
        }
    }
); 
Once I know how to work with this solver, I am trying to work with it but using my engrid model. From it export I obtain every single file inside polymesh folder except blockMeshdict (so they are boundary, faces, neighbour, owner and points).

If I just substitute this files in the polymesh of my OF model, it gaves problem with the fluid region. I have been testing and I got the conclusion that the cube of my engrid file would be cutting the fluid region, so it doesn't know how to interpret it.

So my question to the forum is: What I have to do to have my element of study (in this case is the little cube, but it could be a cylinder or whatever) to make it work as a region in topoSetDict and not having to create it?? In this case a cube it is not a problem, but you can imagine if it is a complex structure.

I guess it should be similiar to what I found here: https://github.com/OpenFOAM/OpenFOAM...SetDicthttp:// between lines 145 and 158. I post it here but I don't know why it doesn't paste well.

// // Select based on surface
// source surfaceToCell;
// sourceInfo
// {
// file "www.avl.com-geometry.stl";
// useSurfaceOrientation false; // use closed surface inside/outside
// // test (ignores includeCut,
// // outsidePoints)
// outsidePoints ((-99 -99 -59)); // definition of outside
// includeCut false; // cells cut by surface
// includeInside false; // cells not on outside of surf
// includeOutside false; // cells on outside of surf //
nearDistance -1; // cells with centre near surf // // (set to -1 if not used) //
curvature 0.9; // cells within nearDistance // // and near surf curvature // // (set to -100 if not used) // }

I attach the following pictures: engrid model and the case made directly from OF with this solver. If it is necessary to attach any further information don't hesitate to ask.
This is quite important for my and I don't know how to continue.

Thank you in advance!
Attached Images
File Type: jpg Screenshot from 2014-12-12 12:28:13.jpg (34.7 KB, 11 views)
File Type: jpg Screenshot from 2014-12-12 12:30:04.jpg (36.1 KB, 13 views)
Attached Files
File Type: zip engrid0_cht.zip (28.3 KB, 3 views)

Last edited by Wien3; December 12, 2014 at 08:31.
Wien3 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 44 April 14, 2016 06:41
sliding mesh problem in CFX Saima CFX 45 September 22, 2015 10:53
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
Mesh generation software is needed H.Dou Main CFD Forum 12 May 4, 2011 15:20
Gambit problems Althea FLUENT 21 February 6, 2001 08:05


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