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

Split domain - files are overwritten

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2011, 09:55
Default Split domain - files are overwritten
  #1
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
I have a domain that I would like to be splitted in two parts according to a certain condition.
Therefore, I define two "labelHashSet" containing the corresponding cells and the two parts of the mesh are then extracted by "fvMeshSubset"

Code:
    labelHashSet Set1(Set1Cells);
    labelHashSet Set2(Set2Cells);

    // define condition and insert cells in each of the two sets

    fvMeshSubset subsetter(mesh);
    fvMeshSubset subsetter2(mesh);

    subsetter.setLargeCellSubset(Set1, -1, true);
    subsetter2.setLargeCellSubset(Set2, -1, true);

    subsetter.subMesh().write();
    subsetter2.subMesh().write();
The problem is that I have no control over the write() function directory and therefore the files are overwritten.
I also assume it would not be a good idea to mess with the library file. Any ideas?
anon_a 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
Default domain jaho CFX 5 February 16, 2014 01:00
Multiple domain interfaces on a single surface mike CFX 2 January 26, 2009 18:03
Split ICEM .tin files - how? Bernhard CFX 5 June 27, 2007 09:41
Fluid domain split Russ FLUENT 1 August 20, 2004 00:21
[making animations] fclose fails to close files? Mika FLUENT 0 March 30, 2001 09:19


All times are GMT -4. The time now is 11:49.