|
[Sponsors] |
July 24, 2019, 11:55 |
topoSet for stl files
|
#1 |
Member
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 7 |
Dear All,
I am starting to work with topoSet and it is slightly confusing when it comes to using .stl files in it. My goal is bring set of batteries generating heat due to charging in chtMultiRegion solver. I have few questions that if someone could answer, it will be highly appreciated. 1) In snappyHexMeshDict when I set Code:
refinementSurfaces { batteries_c3 { level (2 2); faceZone batt1; cellZone batt1; cellZoneInside inside; } } 2) My geometry composes of 32 rectangular boxes, but when I try topoSet using Code:
name battCellSet; type cellSet; action new; source surfaceToCell; sourceInfo { file "/mnt/...../refined1x_cht_toposet/constant/triSurface/batteries_c3.stl"; useSurfaceOrientation false; outsidePoints ((0.46 0.0345 -0.1445183)); //vector chosen from ASCII stl file line 18 includeCut true; includeInside true; includeOutside false; nearDistance -1; curvature 0.9; } } { name batt; type cellZoneSet; action new; source setToCellZone; sourceInfo { set battCellSet; } } 3) I would highly appreciate if someone could explain nearDistance and curvature values to me, what are the ranges of the values, etc. I tried reading through the topoSet.C file but my knowledge of understanding it is very low. Attaching my *Dict files. Thanks Owais - new to OFv6 |
|
July 25, 2019, 05:13 |
Resolved but splitMeshRegions gives a fatal error
|
#2 |
Member
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 7 |
Hi all,
I was able to resolve it. I figured out all the cells saved through SHMDict were saved in constant/polyMesh/cellZones so the right settings for topoSet to utilise were these: Code:
{ name battCellSet; type cellSet; action new; source zoneToCell; sourceInfo { name "batt1"; //name assigned in SHMDict } } { name batteries; type cellZoneSet; action new; source setToCellZone; sourceInfo { set batteriesCellSet; } } Problem is when I use splitMeshRegions I get a Fatal Error! Create time Create mesh for time = 0 Using current faceZones to divide inter-region interfaces into multiple patches. Code:
--> FOAM FATAL ERROR: Cell 0 with cell centre (-0.026349986 -0.0021249995 -0.17876937) is multiple zones. This is not allowed. It is in zone batt1 and in zone fluid From function void getZoneID(const Foam::polyMesh&, const cellZoneMesh&, Foam::labelList&, Foam::labelList&) in file splitMeshRegions.C at line 1225. FOAM exiting Any help! Thanks Owais |
|
July 25, 2019, 06:46 |
Solution
|
#3 |
Member
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 7 |
Dear All,
So I figured out the error (well not really an error) was due to polyMesh/cellZones. There were 3 regions instead of 2. 1st cellzone: batt1 defined by SHMDict 2nd cellzone: defined by topoSet called batteries 3rd cellzone: also defined by topoSet called fluid learning: So just don't have additional names and it should be simple. Chose batt1 for both SHMDict and topoSet. Have a nice day. |
|
October 21, 2020, 12:04 |
request
|
#4 |
New Member
|
Dear Sir,
Would you please contact me by aerospace1365@gmail.com. Sincerely yours, Hosein Faramarzpour |
|
November 8, 2020, 18:42 |
|
#5 | |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Dear Owais Shabbir
I have a problem with my STL file. it must be binary or ascii? where should I put as external point? exactly at the surface? Thanks, Farzad Quote:
|
||
Tags |
chtmultiregion, toposet, toposet.c, toposetdict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem compiling with header files | jreiter164 | Fluent UDF and Scheme Programming | 2 | August 14, 2015 18:31 |
attaching trn files | hossein_sml | CFX | 1 | August 5, 2015 20:17 |
How to call FORTRAN files as UDF? | Ehsan-F | Fluent UDF and Scheme Programming | 6 | September 11, 2012 12:03 |
Writing Case and Data Files Using Journal/Scheme Files | svp | Fluent UDF and Scheme Programming | 0 | April 5, 2011 12:04 |
Problems with result files | Kasper | CFX | 5 | December 14, 2006 03:41 |