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

how to merge two separate triSurface

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2017, 08:54
Default how to merge two separate triSurface
  #1
Member
 
Join Date: Jun 2011
Posts: 42
Rep Power: 15
mikeP is on a distinguished road
I wonder if it is possible to merge two separate triSurface. To be more specific, I have two separate distributedTriSurfaceMesh as defined in viewFactorsGen/searchingEngine.H:

Code:
distributedTriSurfaceMesh surfacesMesh
(
    IOobject
    (
        "wallSurface.stl",
        runTime.constant(),     // directory
        "triSurface",           // instance
        runTime,                // registry
        IOobject::NO_READ,
        IOobject::NO_WRITE
    ),
    localSurface,
    dict
);

distributedTriSurfaceMesh surfacesMesh2
(
    IOobject
    (
        "wallSurface2.stl",
        runTime.constant(),     // directory
        "triSurface",           // instance
        runTime,                // registry
        IOobject::NO_READ,
        IOobject::NO_WRITE
    ),
    localSurface2,
    dict
);
Is it possible to merge these two into single one?
mikeP is offline   Reply With Quote

Old   June 26, 2017, 10:43
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Mike,

I am not so familiar with the tools that FOAM provides in that section because for me FOAM is the calculator which handles matrix systems etc. My suggestion (maybe not the one you would like) is to use Blender for that. Open both STL files and join them, save it and done.

A brief instruction:

  • Open blender
  • Press the a key twice (selects the box, camera and light)
  • Press the del key and delete it
  • Load STL1
  • Load STL2
  • Press the a key twice (selects both)
  • Press CNTR-j (join)
  • Export as STL
  • Done
tfuwa likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 26, 2017, 13:06
Default
  #3
Member
 
Join Date: Jun 2011
Posts: 42
Rep Power: 15
mikeP is on a distinguished road
Dear Tobias,

Thank you for the suggestion. Actually, I am trying to handle radiation exchange in a domain with cyclic boundary conditions. That is the main reason I am trying to do it within the utility.

So far, I have found that the utility surfaceAdd deals with something similar. I have been able to implement it in a similar way within the searchingEngine.H. Basically, I translated the triSurface in all directions and then merged them in a similar way to what's done in surfaceAdd. Currently, I am testing this.
mikeP 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
[ICEM] ICE Mesh in ICEM - Block merge AA29 ANSYS Meshing & Geometry 19 March 23, 2018 07:08
[blockMesh] How to merge blocks? Match, merge or stitch? gerritgroot OpenFOAM Meshing & Mesh Conversion 0 November 13, 2015 21:59
merge two connectors v_herw Pointwise & Gridgen 1 August 28, 2014 10:14
[ICEM] Two boxes connected by a cylinder, blocks merge where I don't want them to merge. Polarbear ANSYS Meshing & Geometry 4 April 30, 2014 16:21
about merge mesh lian Main CFD Forum 3 February 29, 2008 11:47


All times are GMT -4. The time now is 03:07.