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

trying to understand topoSet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2024, 13:51
Default trying to understand topoSet
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 278
Rep Power: 6
boffin5 is on a distinguished road
Having shifted my efforts to validate the Meredith effect from chtMultiRegion to buoyantSimpleFoam, I am encountering behavior of topoSet that I don't understand.

Starting with a mesh from an outside meshing tool, initially I used topoSet to find the mesh cells corresponding to my heat exchanger, and then assign them to a porous zone.

In the process of doing this, the output says, "Create mesh for time = 0.25". Apparently, this time comes from the controlDict deltaT of 0.25. Why does topoSet need to create a mesh at a following time? It could just create a new polyMesh, with no associated time. Anyway, a folder is created, named '0.25'.

Then, if I clean the case, deleting the 0.25 folder and re-run it, it fails, saying "Cannot find patchField entry" for one of the boundary conditions. So now, I am compelled to keep the 0.25 folder forever, for the case not to fail.

This doesn't seem right. What am I missing here?
boffin5 is offline   Reply With Quote

Old   May 13, 2024, 07:11
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

This is what happens if you do not use the -overwrite option when running topoSet. It will create a new polyMesh folder inside a time step folder (in your case 0.25). You can just move this polyMesh folder into constant overwriting the mesh there and then remove the 0.25 folder. Of course if you prefer to keep the original mesh you can rename constant/polyMesh to constant/polyMesh.org before moving the 0.25/polyMesh folder into constant.

Regards,
Tom
tomf is offline   Reply With Quote

Old   May 13, 2024, 10:59
Default Thanks tomf
  #3
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 278
Rep Power: 6
boffin5 is on a distinguished road
your reply makes perfect sense. While I feel a bit stupid, you've helped me to never make that mistake again.

Alan
boffin5 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



All times are GMT -4. The time now is 21:44.