CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Action Subtract or delete doesn't work in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2023, 06:38
Default Action Subtract or delete doesn't work in OpenFOAM
  #1
TGS
New Member
 
TGS
Join Date: May 2023
Location: United Kingdom
Posts: 29
Rep Power: 3
TGS is on a distinguished road
Hi Foamers,

I m doing chtMultiRegion for a heat transfer problem in a fin geometry. The geometry contains 4 regions including heated boundary, cold boundary , fin and air. I made a toposet to split the regions. However, it seems action delete doesnt work at the moment. Previously it was fine with the action delete since in my OpenFOAM version subtract action doesn't work. Now both subtract and delete actions are not working. Therefore, any tips that I can use to make this possible?

Here I attached the toposet dict file for your reference.

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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name c0;
type cellSet;
action new;
source surfaceToCell;
file "constant/triSurface/coldBoundary.stl";
outsidePoints
(
( 62.3555 -22.8213 26)
( 61.7003 -12.4253 26)
( 60.3413 -2.4532 26)
( 60.2703 1.1459 26)
( 61.4681 10.8055 26)
(-30.4841 75.8165 26)
(-46.4045 63.2950 26)
( 62.2296 16.7956 26)
( 62.4428 26.4430 26)
( 47.5516 62.3842 26)
( 35.9529 72.5105 26)
( 26.8436 77.6257 26)
( 22.1089 79.5659 26)
( 15.2162 81.6420 26)
( 1.32577 83.4345 26)
(-52.5086 56.0043 26)
(-54.9512 52.0734 -26)
(-49.6239 59.9318 -26)
( 15.2162 81.6420 -26)
( 26.8436 77.6257 -26)
( 50.7199 58.5184 -26)
( 62.2296 16.7956 -26)
( 62.3555 -27.8737 -26)
( 62.5259 21.8822 -26)
( 60.5586 4.6584 -26)
( 60.3413 -2.4532 -26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}
{
name coldBoundary;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set c0;
}
}
{
name c1;
type cellSet;
action new;
source surfaceToCell;
file "constant/triSurface/heatedBoundary.stl";
outsidePoints
(
(-58.9874 43.3623 26)
(-58.9874 43.3623 -26)
(-61.0549 8.1383 26)
(-61.0549 8.1383 -26)
(-62.2505 29.0965 26)
(-62.2505 29.0965 -26)
( 62.2514 -29.0866 26)
( 61.5738 -33.9067 26)
( 61.5738 -33.9067 -26)
(-49.8505 -59.6325 26)
( 48.2942 -61.5394 -26)
( 48.2942 -61.5394 26)
( 51.5745 -57.3529 26)
(-49.8505 -59.6325 -26)
( 36.7776 -71.9431 -26)
( 41.0996 -68.6406 -26)
( 41.0996 -68.6406 26)
(-55.6761 -50.7508 26)
( 27.2445 -77.4402 -26)
( 27.2445 -77.4402 26)
( 33.2328 -74.8337 26)
(-59.5693 -41.7124 26)
( 11.1958 -82.4812 -26)
(-13.1881 -82.0916 26)
(-24.3284 -78.7057 26)
(-38.1901 -70.924 -26)
(-38.1901 -70.924 26)
(-33.6387 -74.0042 26)
(-28.9656 -76.6012 26)
(-28.9656 -76.6012 -26)
(-62.4899 -20.713 -26)
(-13.1881 -82.0916 -26)
( 11.1958 -82.4812 26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}
{
name heatedBoundary;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set c1;
}
}

{
name c2;
type cellSet;
action new;
source surfaceToCell;
file "constant/triSurface/fin.stl";
outsidePoints
(
( 96.7869 -88.4280 26)
( 15.4141 -130.1910 26)
( 65.7177 -113.439 26)
( -11.2302 -130.6180 26)
( 41.4216 -124.3840 26)
( -73.4613 -108.5850 26)
(-117.0650 -59.0175 26)
(-128.4100 -26.4235 26)
(-127.1630 31.8872 26)
( -95.5008 89.8155 26)
( -67.0162 101.7660 26)
( 13.1139 130.4420 26)
( 85.5588 99.3322 26)
( 13.1139 130.4420 -26)
( -64.0739 114.3750 -26)
( -95.5008 89.8155 -26)
(-111.6900 68.6488 -26)
(-127.1630 31.8872 26)
(-130.9840 5.5149 26)
(-128.4100 -26.4235 26)
( -93.9007 -91.4870 -26)
( -73.4613 -108.5850 -26)
( -49.9867 -121.1960 -26)
( -37.4106 -125.6490 26)
( -11.2302 -130.6180 26)
( 15.4141 -130.1910 26)
( 41.4216 -124.3840 26)
( 96.7869 -88.4280 26)
( 105.2730 -78.1335 -26)
( 15.4141 -130.1910 26)
( -11.2302 -130.6180 -26)
( -37.4106 -125.6490 -26)
( -49.9867 -121.1960 26)
( -93.9007 -91.4870 26)
(-111.6900 68.6488 26)
( -64.0739 114.3750 -26)
( -26.7164 128.3490 26)
( 39.2198 125.0960 26)
( 51.7305 120.4620 -26)
( -26.7164 128.3490 -26)
( -75.3663 107.2710 -26)
( -95.5008 89.8155 26)
(-127.1630 31.8872 -26)
( 130.9840 5.5149 -26)
(-128.4100 -26.4235 -26)
(-117.0650 -59.0175 -26)
( -93.9007 -91.4870 26)
( -73.4613 -108.5850 26)
( -49.9867 -121.1960 26)
( 15.4141 -130.1910 -26)
( 41.4216 -124.3840 -26)
( 65.7177 -113.4390 26)
( 96.7869 -88.4280 -26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}
name c2;
type cellSet;
action delete;
source surfaceToCell;
file "constant/triSurface/coldBoundary.stl";
outsidePoints
(
( 62.3555 -22.8213 26)
( 61.7003 -12.4253 26)
( 60.3413 -2.4532 26)
( 60.2703 1.1459 26)
( 61.4681 10.8055 26)
(-30.4841 75.8165 26)
(-46.4045 63.2950 26)
( 62.2296 16.7956 26)
( 62.4428 26.4430 26)
( 47.5516 62.3842 26)
( 35.9529 72.5105 26)
( 26.8436 77.6257 26)
( 22.1089 79.5659 26)
( 15.2162 81.6420 26)
( 1.32577 83.4345 26)
(-52.5086 56.0043 26)
(-54.9512 52.0734 -26)
(-49.6239 59.9318 -26)
( 15.2162 81.6420 -26)
( 26.8436 77.6257 -26)
( 50.7199 58.5184 -26)
( 62.2296 16.7956 -26)
( 62.3555 -27.8737 -26)
( 62.5259 21.8822 -26)
( 60.5586 4.6584 -26)
( 60.3413 -2.4532 -26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}
{
name c2;
type cellSet;
action delete;
source surfaceToCell;
file "constant/triSurface/heatedBoundary.stl";
outsidePoints
(
(-58.9874 43.3623 26)
(-58.9874 43.3623 -26)
(-61.0549 8.1383 26)
(-61.0549 8.1383 -26)
(-62.2505 29.0965 26)
(-62.2505 29.0965 -26)
( 62.2514 -29.0866 26)
( 61.5738 -33.9067 26)
( 61.5738 -33.9067 -26)
(-49.8505 -59.6325 26)
( 48.2942 -61.5394 -26)
( 48.2942 -61.5394 26)
( 51.5745 -57.3529 26)
(-49.8505 -59.6325 -26)
( 36.7776 -71.9431 -26)
( 41.0996 -68.6406 -26)
( 41.0996 -68.6406 26)
(-55.6761 -50.7508 26)
( 27.2445 -77.4402 -26)
( 27.2445 -77.4402 26)
( 33.2328 -74.8337 26)
(-59.5693 -41.7124 26)
( 11.1958 -82.4812 -26)
(-13.1881 -82.0916 26)
(-24.3284 -78.7057 26)
(-38.1901 -70.924 -26)
(-38.1901 -70.924 26)
(-33.6387 -74.0042 26)
(-28.9656 -76.6012 26)
(-28.9656 -76.6012 -26)
(-62.4899 -20.713 -26)
(-13.1881 -82.0916 -26)
( 11.1958 -82.4812 26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}

{
name fin;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set c2;
}
}
{
name c3;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-200 -200 -100) (200 200 100);

}
}

{
name c3;
type cellSet;
action delete;
source surfaceToCell;
file "constant/triSurface/fin.stl";
outsidePoints
(
( 96.7869 -88.4280 26)
( 15.4141 -130.1910 26)
( 65.7177 -113.439 26)
( -11.2302 -130.6180 26)
( 41.4216 -124.3840 26)
( -73.4613 -108.5850 26)
(-117.0650 -59.0175 26)
(-128.4100 -26.4235 26)
(-127.1630 31.8872 26)
( -95.5008 89.8155 26)
( -67.0162 101.7660 26)
( 13.1139 130.4420 26)
( 85.5588 99.3322 26)
( 13.1139 130.4420 -26)
( -64.0739 114.3750 -26)
( -95.5008 89.8155 -26)
(-111.6900 68.6488 -26)
(-127.1630 31.8872 26)
(-130.9840 5.5149 26)
(-128.4100 -26.4235 26)
( -93.9007 -91.4870 -26)
( -73.4613 -108.5850 -26)
( -49.9867 -121.1960 -26)
( -37.4106 -125.6490 26)
( -11.2302 -130.6180 26)
( 15.4141 -130.1910 26)
( 41.4216 -124.3840 26)
( 96.7869 -88.4280 26)
( 105.2730 -78.1335 -26)
( 15.4141 -130.1910 26)
( -11.2302 -130.6180 -26)
( -37.4106 -125.6490 -26)
( -49.9867 -121.1960 26)
( -93.9007 -91.4870 26)
(-111.6900 68.6488 26)
( -64.0739 114.3750 -26)
( -26.7164 128.3490 26)
( 39.2198 125.0960 26)
( 51.7305 120.4620 -26)
( -26.7164 128.3490 -26)
( -75.3663 107.2710 -26)
( -95.5008 89.8155 26)
(-127.1630 31.8872 -26)
( 130.9840 5.5149 -26)
(-128.4100 -26.4235 -26)
(-117.0650 -59.0175 -26)
( -93.9007 -91.4870 26)
( -73.4613 -108.5850 26)
( -49.9867 -121.1960 26)
( 15.4141 -130.1910 -26)
( 41.4216 -124.3840 -26)
( 65.7177 -113.4390 26)
( 96.7869 -88.4280 -26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}
{
name c3;
type cellSet;
action delete;
source surfaceToCell;
file "constant/triSurface/coldBoundary.stl";
outsidePoints
(
( 62.3555 -22.8213 26)
( 61.7003 -12.4253 26)
( 60.3413 -2.4532 26)
( 60.2703 1.1459 26)
( 61.4681 10.8055 26)
(-30.4841 75.8165 26)
(-46.4045 63.2950 26)
( 62.2296 16.7956 26)
( 62.4428 26.4430 26)
( 47.5516 62.3842 26)
( 35.9529 72.5105 26)
( 26.8436 77.6257 26)
( 22.1089 79.5659 26)
( 15.2162 81.6420 26)
( 1.32577 83.4345 26)
(-52.5086 56.0043 26)
(-54.9512 52.0734 -26)
(-49.6239 59.9318 -26)
( 15.2162 81.6420 -26)
( 26.8436 77.6257 -26)
( 50.7199 58.5184 -26)
( 62.2296 16.7956 -26)
( 62.3555 -27.8737 -26)
( 62.5259 21.8822 -26)
( 60.5586 4.6584 -26)
( 60.3413 -2.4532 -26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}
{
name c3;
type cellSet;
action delete;
source surfaceToCell;
file "constant/triSurface/heatedBoundary.stl";
outsidePoints
(
(-58.9874 43.3623 26)
(-58.9874 43.3623 -26)
(-61.0549 8.1383 26)
(-61.0549 8.1383 -26)
(-62.2505 29.0965 26)
(-62.2505 29.0965 -26)
( 62.2514 -29.0866 26)
( 61.5738 -33.9067 26)
( 61.5738 -33.9067 -26)
(-49.8505 -59.6325 26)
( 48.2942 -61.5394 -26)
( 48.2942 -61.5394 26)
( 51.5745 -57.3529 26)
(-49.8505 -59.6325 -26)
( 36.7776 -71.9431 -26)
( 41.0996 -68.6406 -26)
( 41.0996 -68.6406 26)
(-55.6761 -50.7508 26)
( 27.2445 -77.4402 -26)
( 27.2445 -77.4402 26)
( 33.2328 -74.8337 26)
(-59.5693 -41.7124 26)
( 11.1958 -82.4812 -26)
(-13.1881 -82.0916 26)
(-24.3284 -78.7057 26)
(-38.1901 -70.924 -26)
(-38.1901 -70.924 26)
(-33.6387 -74.0042 26)
(-28.9656 -76.6012 26)
(-28.9656 -76.6012 -26)
(-62.4899 -20.713 -26)
(-13.1881 -82.0916 -26)
( 11.1958 -82.4812 26)
);
includeCut true;
includeInside true;
includeOutside false;
nearDistance 0.5;
curvature 14.5;
}

{
name air;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set c3;
}

}
);


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



Thanks,
TGS

Last edited by TGS; August 16, 2023 at 11:52.
TGS is offline   Reply With Quote

Old   August 16, 2023, 11:52
Default
  #2
TGS
New Member
 
TGS
Join Date: May 2023
Location: United Kingdom
Posts: 29
Rep Power: 3
TGS is on a distinguished road
Hi

I solved the problem and it was a syntax error.

Thanks,

TGS
TGS is offline   Reply With Quote

Reply

Tags
cfd - post, openfaom, toposetdict


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
[cfMesh] OpenFOAM (cfmesh) - how to delete edge features in fms file foamF OpenFOAM Community Contributions 10 August 30, 2019 07:00
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM does not work any more! kiddmax OpenFOAM Installation 12 June 25, 2013 03:56


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