CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

toposetdict application

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By NotOverUnderated
  • 1 Post By Yann
  • 1 Post By saeed jamshidi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2024, 07:58
Default toposetdict application
  #1
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Hello,

I have seen frequently toposetDict in the tutorials,but I don't know exactly what is the application of it?!
So, I have attached a sample here:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    
    {
        name    inner;
        type    cellZoneSet;
        action  new;
        source  boxToCell;
        min     (-1 -0.5 0);
        max     ( 6  0.5 2);
    }
);


// ************************************************************************* //
I would appreciate it if you assist me with providing some information.\
Thanks.
saeed jamshidi is offline   Reply With Quote

Old   January 18, 2024, 08:05
Default
  #2
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
topoSet utility is used to create cellSets, cellZones, faceSets, etc.

Check this answer for details about these sets: cellZone-cellSet

I hope this helps
saeed jamshidi likes this.
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Old   January 18, 2024, 08:42
Default
  #3
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
NotOverUnderated, thanks for the reply.

I couldn't understand the application of that, could you provide more details?😅
saeed jamshidi is offline   Reply With Quote

Old   January 18, 2024, 10:07
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Saeed,

There is not a single answer to your question.
Sometimes you need a way to get data or to apply a specific treatment to a selection of cells, faces, points... This is what cellZone, cellSet, faceZone etc... are meant for.

For instance, in function objects, faceZone can be used to compute surface field values: https://doc.openfoam.com/2306/tools/...aceFieldValue/.
Same thing with cellZone for volume field values (https://doc.openfoam.com/2306/tools/...volFieldValue/)

fvOptions feature allows to add source terms which are often applied on cellZones: https://doc.openfoam.com/2306/tools/...ions/sources/#

Dynamic mesh also often use cellZones in order to define which part of the mesh is supposed to move. For instance on the propeller tutorial: https://develop.openfoam.com/Develop...ref_type=heads

Those are only random examples, there might be a lot of other features using these entities. When you bump into topoSetDict in a tutorial, have a look at what entities it creates and search where these entities are used in the case setup.
Also please note these entities are not always created with the topoSet utility. For instance you can define cellZone/faceZone in snappyHexMeshDict.

Yann
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   January 18, 2024, 13:06
Default
  #5
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
I got it. Thank you for your help.
NotOverUnderated likes this.
saeed jamshidi 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
[solids4Foam] Missing interpolate(sigma0) in fvSchemes in some tutorials Krapf OpenFOAM CC Toolkits for Fluid-Structure Interaction 8 June 23, 2024 08:59
SimpleFoam cannot open include file Marija OpenFOAM Running, Solving & CFD 1 October 28, 2020 11:35
Error in compute process - No Active Application yetlyg FLUENT 8 October 27, 2018 23:30
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 12:52
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53


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