|
[Sponsors] |
January 18, 2024, 07:58 |
toposetdict application
|
#1 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
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); } ); // ************************************************************************* // Thanks. |
|
January 18, 2024, 08:05 |
|
#2 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
topoSet utility is used to create cellSets, cellZones, faceSets, etc.
Check this answer for details about these sets: cellZone-cellSet I hope this helps
__________________
Don't keep making the same mistakes. Try to make new mistakes. |
|
January 18, 2024, 08:42 |
|
#3 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
NotOverUnderated, thanks for the reply.
I couldn't understand the application of that, could you provide more details?😅 |
|
January 18, 2024, 10:07 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27 |
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 |
|
January 18, 2024, 13:06 |
|
#5 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
I got it. Thank you for your help.
|
|
|
|
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 |